tn5250j/src/org/tn5250j/framework/tn5250 Screen5250.java,1.10,1.11 ScreenField.java,1.5,1.6 ScreenFields.java,1.2,1.3 ScreenPlanes.java,1.7,1.8
"Kenneth J. Pouncey" <[email protected]> Wed, 11 Aug 2004 06:21:31 +0000
| Newsgroups | gmane.comp.java.tn5250j.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tn5250j/tn5250j/src/org/tn5250j/framework/tn5250
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18889
Modified Files:
Screen5250.java ScreenField.java ScreenFields.java
ScreenPlanes.java
Log Message:
fixes for web interface for fields
Index: ScreenPlanes.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/framework/tn5250/ScreenPlanes.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** ScreenPlanes.java 2 Aug 2004 17:20:07 -0000 1.7
--- ScreenPlanes.java 11 Aug 2004 06:21:28 -0000 1.8
***************
*** 1,1115 ****
! /**
! * Title: ScreenPlanes.java
! * Copyright: Copyright (c) 2001
! * Company:
! * @author Kenneth J. Pouncey
! * @version 0.5
! *
! * Description:
! *
! * This program is free software; you can redistribute it and/or modify
[...2203 lines suppressed...]
! // now lets make sure there are no more than numSuff spaces after option
! while (hs && (++sp < lenScreen && screen[sp] <= ' '
! || screen[sp] == suff )) {
! if (sp - x >= numSuff || screen[sp] == suff ||
! screen[sp] == '.' ||
! screen[sp] == '*') {
! hs =false;
! break;
! }
! }
! if (hs && !Character.isLetterOrDigit(screen[sp]))
! hs = false;
! if (hs) {
! return os;
! }
! return -1;
! }
!
}
\ No newline at end of file
Index: ScreenField.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/framework/tn5250/ScreenField.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** ScreenField.java 2 Aug 2004 17:20:07 -0000 1.5
--- ScreenField.java 11 Aug 2004 06:21:28 -0000 1.6
***************
*** 1,585 ****
! /**
! * Title: tn5250J
! * Copyright: Copyright (c) 2001
! * Company:
! * @author Kenneth J. Pouncey
! * @version 0.4
! *
! * Description:
! *
! * This program is free software; you can redistribute it and/or modify
[...1144 lines suppressed...]
! boolean mdt = false;
! protected boolean checkCanSend;
! protected boolean rightAdjd;
! protected boolean manditoried;
! boolean canSend = true;
! int attr = 0;
! int length = 0;
! int ffw1 = 0;
! int ffw2 = 0;
! int fcw1 = 0;
! int fcw2 = 0;
! int cursorPos = 0;
! Screen5250 s;
! int cursorProg = 0;
! int fieldId = 0;
! ScreenField next = null;
! ScreenField prev = null;
!
}
\ No newline at end of file
Index: ScreenFields.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/framework/tn5250/ScreenFields.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ScreenFields.java 30 Jul 2004 05:03:57 -0000 1.2
--- ScreenFields.java 11 Aug 2004 06:21:28 -0000 1.3
***************
*** 403,406 ****
--- 403,425 ----
}
+ public ScreenField getFirstInputField() {
+
+ if (sizeFields <= 0)
+ return null;
+
+ int f = 0;
+ ScreenField sf = screenFields[f];
+
+ while (sf.isBypassField() && f++ < sizeFields) {
+ sf = screenFields[f];
+ }
+
+ if (sf.isBypassField())
+ return null;
+ else
+ return sf;
+
+ }
+
public void gotoFieldNext() {
Index: Screen5250.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** Screen5250.java 2 Aug 2004 17:20:07 -0000 1.10
--- Screen5250.java 11 Aug 2004 06:21:28 -0000 1.11
***************
*** 1,3983 ****
! /**
! * Title: Screen5250.java
! * Copyright: Copyright (c) 2001 - 2004
! * Company:
! * @author Kenneth J. Pouncey
! * @version 0.5
! *
! * Description:
! *
! * This program is free software; you can redistribute it and/or modify
[...7940 lines suppressed...]
! ScreenOIA.OIA_LEVEL_INPUT_ERROR);
! }
!
! if (oia.getLevel() == ScreenOIA.OIA_LEVEL_INPUT_INHIBITED) {
! oia.setInputInhibited(ScreenOIA.INPUTINHIBITED_SYSTEM_WAIT,
! ScreenOIA.OIA_LEVEL_INPUT_INHIBITED);
! }
!
! if (oia.isMessageWait())
! oia.setMessageLightOn();
! setCursorOn();
! }
!
! // ADDED BY BARRY - changed by Kenneth to use the character plane
! // This should be replaced with the getPlane methods when they are implemented
! public char[] getCharacters() {
! return planes.screen;
! }
!
! }
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285