tn5250j/src/org/tn5250j/framework Tn5250jEvent.java,1.5,1.6 Tn5250jKeyEvents.java,1.3,1.4 Tn5250jSession.java,1.4,1.5
"Kenneth J. Pouncey" <[email protected]> Thu, 16 Jun 2005 04:41:21 +0000
| Newsgroups | gmane.comp.java.tn5250j.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tn5250j/tn5250j/src/org/tn5250j/framework In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24279/src/org/tn5250j/framework Modified Files: Tn5250jEvent.java Tn5250jKeyEvents.java Tn5250jSession.java Log Message: the rest of the story Index: Tn5250jEvent.java =================================================================== RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/framework/Tn5250jEvent.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Tn5250jEvent.java 30 Jul 2004 05:05:44 -0000 1.5 --- Tn5250jEvent.java 16 Jun 2005 04:41:19 -0000 1.6 *************** *** 1,62 **** ! /**Copyright (C) 2004 Seagull Software ! * ! * This library is free software; you can redistribute it and/or ! * modify it under the terms of the GNU Lesser General Public ! * License as published by the Free Software Foundation; either ! * version 2.1 of the License, or (at your option) any later version. ! * ! * This library is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! * Lesser General Public License for more details. ! * ! * You should have received a copy of the GNU Lesser General Public ! * License along with this library; if not, write to the Free Software ! * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! * ! *@author bvansomeren ([email protected]) ! */ ! package org.tn5250j.framework; ! ! //import org.tn5250j.Screen5250; ! import org.tn5250j.framework.tn5250.Screen5250; ! import org.tn5250j.framework.tn5250.ScreenFields; ! //import org.tn5250j.ScreenFields; ! ! public class Tn5250jEvent { ! ! private Screen5250 screen; ! private char[] data; ! private ScreenFields fields; ! ! public Tn5250jEvent() { ! screen = null; ! } ! ! public Tn5250jEvent(Screen5250 newscreen) { ! screen = newscreen; ! // Object[] original = (Object[])screen.getCharacters(); ! // data = new ScreenChar[original.length]; ! // System.arraycopy(original, 0, data, 0, original.length); ! ! // changed by Kenneth - This should be replaced with a call to ! // getPlane method of screen object when they are implemented. These ! // new methods will also do the array copy. ! char[] original = screen.getCharacters(); ! data = new char[original.length]; ! System.arraycopy(original, 0, data, 0, original.length); ! this.fields = newscreen.getScreenFields(); ! } ! ! public char[] getData() { ! return data; ! } ! ! public Screen5250 getScreen() { ! return screen; ! } ! ! public ScreenFields getFields() { ! return this.fields; ! } ! } --- 1,62 ---- ! /**Copyright (C) 2004 Seagull Software ! * ! * This library is free software; you can redistribute it and/or ! * modify it under the terms of the GNU Lesser General Public ! * License as published by the Free Software Foundation; either ! * version 2.1 of the License, or (at your option) any later version. ! * ! * This library is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! * Lesser General Public License for more details. ! * ! * You should have received a copy of the GNU Lesser General Public ! * License along with this library; if not, write to the Free Software ! * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! * ! *@author bvansomeren ([email protected]) ! */ ! package org.tn5250j.framework; ! ! //import org.tn5250j.Screen5250; ! import org.tn5250j.framework.tn5250.Screen5250; ! import org.tn5250j.framework.tn5250.ScreenFields; ! //import org.tn5250j.ScreenFields; ! ! public class Tn5250jEvent { ! ! private Screen5250 screen; ! private char[] data; ! private ScreenFields fields; ! ! public Tn5250jEvent() { ! screen = null; ! } ! ! public Tn5250jEvent(Screen5250 newscreen) { ! screen = newscreen; ! // Object[] original = (Object[])screen.getCharacters(); ! // data = new ScreenChar[original.length]; ! // System.arraycopy(original, 0, data, 0, original.length); ! ! // changed by Kenneth - This should be replaced with a call to ! // getPlane method of screen object when they are implemented. These ! // new methods will also do the array copy. ! char[] original = screen.getCharacters(); ! data = new char[original.length]; ! System.arraycopy(original, 0, data, 0, original.length); ! this.fields = newscreen.getScreenFields(); ! } ! ! public char[] getData() { ! return data; ! } ! ! public Screen5250 getScreen() { ! return screen; ! } ! ! public ScreenFields getFields() { ! return this.fields; ! } ! } Index: Tn5250jKeyEvents.java =================================================================== RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/framework/Tn5250jKeyEvents.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Tn5250jKeyEvents.java 30 Jul 2004 05:05:44 -0000 1.3 --- Tn5250jKeyEvents.java 16 Jun 2005 04:41:19 -0000 1.4 *************** *** 1,36 **** ! /**Copyright (C) 2004 Seagull Software ! * ! * This library is free software; you can redistribute it and/or ! * modify it under the terms of the GNU Lesser General Public ! * License as published by the Free Software Foundation; either ! * version 2.1 of the License, or (at your option) any later version. ! * ! * This library is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! * Lesser General Public License for more details. ! * ! * You should have received a copy of the GNU Lesser General Public ! * License along with this library; if not, write to the Free Software ! * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! * ! *@author bvansomeren ([email protected]) ! */ ! package org.tn5250j.framework; ! ! //import org.tn5250j.Screen5250; ! import org.tn5250j.framework.tn5250.Screen5250; ! ! public class Tn5250jKeyEvents extends Tn5250jEvent { ! private String keystrokes; ! ! public Tn5250jKeyEvents(Screen5250 screen, String strokes) { ! super(screen); ! this.keystrokes = strokes; ! } ! ! public String getKeystrokes() { ! return this.keystrokes; ! } ! ! } --- 1,36 ---- ! /**Copyright (C) 2004 Seagull Software ! * ! * This library is free software; you can redistribute it and/or ! * modify it under the terms of the GNU Lesser General Public ! * License as published by the Free Software Foundation; either ! * version 2.1 of the License, or (at your option) any later version. ! * ! * This library is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! * Lesser General Public License for more details. ! * ! * You should have received a copy of the GNU Lesser General Public ! * License along with this library; if not, write to the Free Software ! * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! * ! *@author bvansomeren ([email protected]) ! */ ! package org.tn5250j.framework; ! ! //import org.tn5250j.Screen5250; ! import org.tn5250j.framework.tn5250.Screen5250; ! ! public class Tn5250jKeyEvents extends Tn5250jEvent { ! private String keystrokes; ! ! public Tn5250jKeyEvents(Screen5250 screen, String strokes) { ! super(screen); ! this.keystrokes = strokes; ! } ! ! public String getKeystrokes() { ! return this.keystrokes; ! } ! ! } Index: Tn5250jSession.java =================================================================== RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/framework/Tn5250jSession.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Tn5250jSession.java 30 Jul 2004 05:05:44 -0000 1.4 --- Tn5250jSession.java 16 Jun 2005 04:41:19 -0000 1.5 *************** *** 1,57 **** ! /**Copyright (C) 2004 Seagull Software ! * ! * This library is free software; you can redistribute it and/or ! * modify it under the terms of the GNU Lesser General Public ! * License as published by the Free Software Foundation; either ! * version 2.1 of the License, or (at your option) any later version. ! * ! * This library is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! * Lesser General Public License for more details. ! * ! * You should have received a copy of the GNU Lesser General Public ! * License along with this library; if not, write to the Free Software ! * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! * ! *@author bvansomeren ([email protected]) ! */ ! package org.tn5250j.framework; ! ! import org.tn5250j.framework.tn5250.Screen5250; ! //import org.tn5250j.Screen5250; ! import org.tn5250j.SessionGUI; ! import org.tn5250j.framework.tn5250.tnvt; ! ! public class Tn5250jSession { ! private Screen5250 sessionScreen; ! private tnvt SessionTNVT; ! private SessionGUI session; ! ! protected Tn5250jSession(Screen5250 screen, tnvt vt, SessionGUI ses) { ! sessionScreen=screen; ! SessionTNVT = vt; ! session=ses; ! } ! /** ! * @return ! */ ! public SessionGUI getSession() { ! return session; ! } ! ! /** ! * @return ! */ ! public Screen5250 getSessionScreen() { ! return sessionScreen; ! } ! ! /** ! * @return ! */ ! public tnvt getSessionTNVT() { ! return SessionTNVT; ! } ! ! } --- 1,57 ---- ! /**Copyright (C) 2004 Seagull Software ! * ! * This library is free software; you can redistribute it and/or ! * modify it under the terms of the GNU Lesser General Public ! * License as published by the Free Software Foundation; either ! * version 2.1 of the License, or (at your option) any later version. ! * ! * This library is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! * Lesser General Public License for more details. ! * ! * You should have received a copy of the GNU Lesser General Public ! * License along with this library; if not, write to the Free Software ! * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! * ! *@author bvansomeren ([email protected]) ! */ ! package org.tn5250j.framework; ! ! import org.tn5250j.framework.tn5250.Screen5250; ! //import org.tn5250j.Screen5250; ! import org.tn5250j.SessionGUI; ! import org.tn5250j.framework.tn5250.tnvt; ! ! public class Tn5250jSession { ! private Screen5250 sessionScreen; ! private tnvt SessionTNVT; ! private SessionGUI session; ! ! protected Tn5250jSession(Screen5250 screen, tnvt vt, SessionGUI ses) { ! sessionScreen=screen; ! SessionTNVT = vt; ! session=ses; ! } ! /** ! * @return ! */ ! public SessionGUI getSession() { ! return session; ! } ! ! /** ! * @return ! */ ! public Screen5250 getSessionScreen() { ! return sessionScreen; ! } ! ! /** ! * @return ! */ ! public tnvt getSessionTNVT() { ! return SessionTNVT; ! } ! ! } ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click