# HG changeset patch # User Carl Byington # Date 1401824339 25200 # Node ID ad194aedeaab2275b51c34a32536cb0e07e24d8f # Parent b29b39f386a4a68b947ca5130c32f3df98093e2b adding tn5250 files, native android logging diff -r b29b39f386a4 -r ad194aedeaab src/org/tn5250j/framework/Tn5250jEvent.java --- a/src/org/tn5250j/framework/Tn5250jEvent.java Tue Jun 03 12:29:12 2014 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,62 +0,0 @@ -/**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 (bvansomeren@seagull.nl) -*/ -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; - } -} diff -r b29b39f386a4 -r ad194aedeaab src/org/tn5250j/framework/Tn5250jKeyEvents.java --- a/src/org/tn5250j/framework/Tn5250jKeyEvents.java Tue Jun 03 12:29:12 2014 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +0,0 @@ -/**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 (bvansomeren@seagull.nl) -*/ -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; - } - -}