Mercurial > 510Connectbot
annotate src/org/tn5250j/framework/tn5250/ScreenField.java @ 316:6b424bb783a2 ganymed
add ecdsa key support everywhere
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 30 Jul 2014 16:39:13 -0700 |
parents | 77ac18bc1b2f |
children | 29076621bab0 |
rev | line source |
---|---|
3 | 1 /** |
2 * Title: tn5250J | |
3 * Copyright: Copyright (c) 2001 | |
4 * Company: | |
5 * @author Kenneth J. Pouncey | |
6 * @version 0.4 | |
7 * | |
8 * Description: | |
9 * | |
10 * This program is free software; you can redistribute it and/or modify | |
11 * it under the terms of the GNU General Public License as published by | |
12 * the Free Software Foundation; either version 2, or (at your option) | |
13 * any later version. | |
14 * | |
15 * This program is distributed in the hope that it will be useful, | |
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 * GNU General Public License for more details. | |
19 * | |
20 * You should have received a copy of the GNU General Public License | |
21 * along with this software; see the file COPYING. If not, write to | |
22 * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, | |
23 * Boston, MA 02111-1307 USA | |
24 * | |
25 */ | |
26 package org.tn5250j.framework.tn5250; | |
27 | |
28 public class ScreenField { | |
29 | |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
30 protected ScreenField(Screen5250 s) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
31 this.s = s; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
32 } |
3 | 33 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
34 protected ScreenField setField(int attr, int len, int ffw1, int ffw2, |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
35 int fcw1, int fcw2) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
36 return setField(attr, |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
37 s.getCurrentRow() - 1, |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
38 s.getCurrentCol() - 1, |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
39 len, |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
40 ffw1, |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
41 ffw2, |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
42 fcw1, |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
43 fcw2); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
44 } |
3 | 45 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
46 protected ScreenField setField(int attr, int row, int col, int len, int ffw1, int ffw2, |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
47 int fcw1, int fcw2) { |
3 | 48 // startRow = row; |
49 // startCol = col; | |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
50 cursorProg = 0; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
51 fieldId = 0; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
52 length = len; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
53 startPos = (row * s.getColumns()) + col; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
54 endPos = startPos + length - 1; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
55 this.attr = attr; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
56 setFFWs(ffw1, ffw2); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
57 setFCWs(fcw1, fcw2); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
58 next = null; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
59 prev = null; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
60 return this; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
61 } |
3 | 62 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
63 public int getAttr() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
64 return attr; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
65 } |
3 | 66 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
67 public int getHighlightedAttr() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
68 return (fcw2 & 0x0f) | 0x20; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
69 } |
3 | 70 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
71 public int getLength() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
72 return length; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
73 } |
3 | 74 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
75 protected boolean setFFWs(int ffw1, int ffw2) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
76 this.ffw1 = ffw1; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
77 this.ffw2 = ffw2; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
78 int adj = getAdjustment(); |
3 | 79 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
80 if (adj > 0) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
81 checkCanSend = true; |
3 | 82 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
83 switch (adj) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
84 case 5: |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
85 case 6: |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
86 rightAdjd = false; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
87 break; |
3 | 88 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
89 case 7: |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
90 manditoried = false; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
91 break; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
92 } |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
93 } |
3 | 94 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
95 mdt = (ffw1 & 0x8) == 0x8; |
3 | 96 // if (mdt) |
97 // s.masterMDT = true; | |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
98 return mdt; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
99 } |
3 | 100 |
101 | |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
102 public int getFFW1() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
103 return ffw1; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
104 } |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
105 public int getFFW2() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
106 return ffw2; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
107 } |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
108 |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
109 protected void setFCWs(int fcw1, int fcw2) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
110 this.fcw1 = fcw1; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
111 this.fcw2 = fcw2; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
112 |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
113 // if ((fcw1 & 0x88) == 0x88) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
114 if (fcw1 == 0x88) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
115 cursorProg = fcw2; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
116 } |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
117 } |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
118 |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
119 public int getFCW1() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
120 return fcw1; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
121 } |
3 | 122 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
123 public int getFCW2() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
124 return fcw2; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
125 } |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
126 |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
127 public int getFieldLength() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
128 return length; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
129 } |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
130 |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
131 public int getCursorProgression() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
132 return cursorProg; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
133 } |
3 | 134 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
135 public int getFieldId() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
136 return fieldId; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
137 } |
3 | 138 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
139 protected void setFieldId(int fi) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
140 fieldId = fi; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
141 } |
3 | 142 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
143 public int getCursorRow() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
144 return cursorPos / s.getColumns(); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
145 } |
3 | 146 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
147 public int getCursorCol() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
148 return cursorPos % s.getColumns(); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
149 } |
3 | 150 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
151 protected void changePos(int i) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
152 cursorPos += i; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
153 } |
3 | 154 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
155 protected String getText() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
156 StringBuffer text = new StringBuffer(); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
157 getKeyPos(endPos); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
158 int x = length; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
159 text.setLength(x); |
3 | 160 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
161 while (x-- > 0) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
162 // here we manipulate the unicode characters a little for attributes |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
163 // that are imbedded in input fields. We will offset them by unicode |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
164 // \uff00. All routines that process these fields will have to |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
165 // return them to their proper offsets. |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
166 // example: |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
167 // if we read an attribute byte of 32 for normal display the unicode |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
168 // character for this is \u0020 and the unicode character for |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
169 // a space is also \u0020 thus the offset. |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
170 if (s.planes.isAttributePlace(cursorPos)) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
171 text.setCharAt(x, (char)('\uff00' + s.planes.getCharAttr(cursorPos))); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
172 } |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
173 else { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
174 text.setCharAt(x, s.planes.getChar(cursorPos)); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
175 } |
3 | 176 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
177 changePos(-1); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
178 } |
3 | 179 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
180 // Since only the mdt of the first continued field is set we will get |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
181 // the text of the next continued field if we are dealing with continued |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
182 // fields. See routine setMDT for the whys of this. This is only |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
183 // executed if this is the first field of a continued field. |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
184 if (isContinued() && isContinuedFirst()) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
185 ScreenField sf = this; |
3 | 186 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
187 do { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
188 sf = sf.next; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
189 text.append(sf.getText()); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
190 } |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
191 while (!sf.isContinuedLast()); |
3 | 192 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
193 sf = null; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
194 } |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
195 |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
196 return text.toString(); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
197 } |
3 | 198 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
199 public String getString() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
200 StringBuffer text = new StringBuffer(); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
201 getKeyPos(endPos); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
202 int x = length; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
203 text.setLength(x); |
3 | 204 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
205 while (x-- > 0) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
206 // here we manipulate the unicode characters a little for attributes |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
207 // that are imbedded in input fields. We will offset them by unicode |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
208 // \uff00. All routines that process these fields will have to |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
209 // return them to their proper offsets. |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
210 // example: |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
211 // if we read an attribute byte of 32 for normal display the unicode |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
212 // character for this is \u0020 and the unicode character for |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
213 // a space is also \u0020 thus the offset. |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
214 if (s.planes.isAttributePlace(cursorPos)) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
215 text.setCharAt(x, (char)('\uff00' + s.planes.getCharAttr(cursorPos))); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
216 } |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
217 else { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
218 if (s.planes.getChar(cursorPos) < ' ') |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
219 text.setCharAt(x, ' '); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
220 else |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
221 text.setCharAt(x, s.planes.getChar(cursorPos)); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
222 } |
3 | 223 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
224 changePos(-1); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
225 } |
3 | 226 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
227 // Since only the mdt of the first continued field is set we will get |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
228 // the text of the next continued field if we are dealing with continued |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
229 // fields. See routine setMDT for the whys of this. This is only |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
230 // executed if this is the first field of a continued field. |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
231 if (isContinued() && isContinuedFirst()) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
232 ScreenField sf = this; |
3 | 233 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
234 do { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
235 sf = sf.next; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
236 text.append(sf.getString()); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
237 } |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
238 while (!sf.isContinuedLast()); |
3 | 239 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
240 sf = null; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
241 } |
3 | 242 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
243 return text.toString(); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
244 } |
3 | 245 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
246 public void setFieldChar(char c) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
247 int x = length; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
248 cursorPos = startPos; |
3 | 249 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
250 while (x-- > 0) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
251 s.planes.setChar(cursorPos, c); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
252 changePos(1); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
253 } |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
254 } |
3 | 255 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
256 public void setFieldChar(int lastPos, char c) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
257 int x = endPos - lastPos + 1; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
258 cursorPos = lastPos; |
3 | 259 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
260 while (x-- > 0) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
261 s.planes.setChar(cursorPos, c); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
262 s.setDirty(cursorPos); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
263 changePos(1); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
264 } |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
265 } |
3 | 266 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
267 protected void setRightAdjusted() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
268 rightAdjd = true; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
269 } |
3 | 270 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
271 protected void setManditoryEntered() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
272 manditoried = true; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
273 } |
69
294435151b0c
use 5250 encryption config entry
Carl Byington <carl@five-ten-sg.com>
parents:
3
diff
changeset
|
274 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
275 protected void resetMDT() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
276 mdt = false; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
277 } |
3 | 278 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
279 protected void setMDT() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
280 // get the first field of a continued edit field if it is continued |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
281 if (isContinued() && !isContinuedFirst()) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
282 ScreenField sf = prev; |
3 | 283 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
284 while (sf.isContinued() && !sf.isContinuedFirst()) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
285 sf = sf.prev; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
286 } |
3 | 287 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
288 sf.setMDT(); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
289 sf = null; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
290 } |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
291 else { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
292 mdt = true; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
293 } |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
294 } |
3 | 295 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
296 public boolean isBypassField() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
297 return (ffw1 & 0x20) == 0x20; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
298 } |
3 | 299 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
300 public int getAdjustment() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
301 return (ffw2 & 0x7); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
302 } |
3 | 303 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
304 // is field exit required |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
305 public boolean isFER() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
306 return (ffw2 & 0x40) == 0x40; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
307 } |
3 | 308 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
309 // is field manditory enter |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
310 public boolean isMandatoryEnter() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
311 return (ffw2 & 0x8) == 0x8; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
312 } |
3 | 313 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
314 public boolean isToUpper() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
315 return (ffw2 & 0x20) == 0x20; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
316 } |
3 | 317 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
318 // bits 5 - 7 |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
319 public int getFieldShift() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
320 return (ffw1 & 0x7); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
321 } |
3 | 322 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
323 public boolean isHiglightedEntry() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
324 return (fcw1 == 0x89); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
325 } |
3 | 326 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
327 public boolean isAutoEnter() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
328 return (ffw2 & 0x80) == 0x80; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
329 } |
3 | 330 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
331 public boolean isSignedNumeric() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
332 return (getFieldShift() == 7); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
333 } |
3 | 334 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
335 public boolean isRightToLeft() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
336 return (getFieldShift() == 0x04); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
337 } |
3 | 338 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
339 public boolean isNumeric() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
340 return (getFieldShift() == 3); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
341 } |
3 | 342 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
343 public boolean isDupEnabled() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
344 return (ffw1 & 0x10) == 0x10; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
345 } |
3 | 346 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
347 public boolean isContinued() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
348 return (fcw1 & 0x86) == 0x86 && (fcw2 >= 1 && fcw2 <= 3) ; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
349 } |
3 | 350 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
351 public boolean isContinuedFirst() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
352 return (fcw1 & 0x86) == 0x86 && (fcw2 == 1); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
353 } |
3 | 354 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
355 public boolean isContinuedMiddle() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
356 return (fcw1 & 0x86) == 0x86 && (fcw2 == 3); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
357 } |
3 | 358 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
359 public boolean isContinuedLast() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
360 return (fcw1 & 0x86) == 0x86 && (fcw2 == 2); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
361 } |
3 | 362 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
363 protected boolean isCanSend() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
364 int adj = getAdjustment(); |
3 | 365 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
366 // here we need to check the Field Exit Required value first before checking |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
367 // the adjustments. If the last character has been entered and we are |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
368 // now setting past the last position then we are allowed to process the |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
369 // the field without continuing. |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
370 if (isFER() && cursorPos > endPos) { |
3 | 371 return true; |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
372 } |
3 | 373 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
374 // signed numeric fields need to be checked as well. |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
375 if (isSignedNumeric() && cursorPos < endPos - 1) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
376 return false; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
377 } |
3 | 378 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
379 if (adj > 0) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
380 switch (adj) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
381 case 5: |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
382 case 6: |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
383 return rightAdjd; |
3 | 384 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
385 case 7: |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
386 return manditoried; |
3 | 387 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
388 default: |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
389 return true; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
390 } |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
391 } |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
392 |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
393 return true; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
394 } |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
395 |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
396 public boolean isSelectionField() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
397 return isSelectionField; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
398 } |
3 | 399 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
400 public void setSelectionFieldInfo(int type, int index, int position) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
401 selectionFieldType = type; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
402 selectionIndex = index; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
403 selectionPos = position; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
404 isSelectionField = true; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
405 } |
3 | 406 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
407 protected int getKeyPos(int row1, int col1) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
408 int x = ((row1 * s.getColumns()) + col1); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
409 int y = x - startPos(); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
410 cursorPos = x; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
411 return y; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
412 } |
3 | 413 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
414 protected int getKeyPos(int pos) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
415 int y = pos - startPos(); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
416 cursorPos = pos; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
417 return y; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
418 } |
3 | 419 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
420 public int getCurrentPos() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
421 return cursorPos; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
422 } |
3 | 423 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
424 public boolean withinField(int pos) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
425 if (pos >= startPos && pos <= endPos) |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
426 return true; |
3 | 427 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
428 return false; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
429 } |
3 | 430 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
431 public int startPos() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
432 return startPos; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
433 } |
3 | 434 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
435 /** |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
436 * Get the starting row of the field. Offset is 0 so row 6 returned |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
437 * is row 7 mapped to screen |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
438 * @return int starting row of the field offset 0 |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
439 */ |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
440 public int startRow() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
441 return startPos / s.getColumns(); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
442 } |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
443 |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
444 /** |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
445 * Get the starting column of the field. Offset is 0 so column 6 returned |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
446 * is column 7 mapped to screen |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
447 * @return int starting column of the field offset 0 |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
448 */ |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
449 public int startCol() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
450 return startPos % s.getColumns(); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
451 } |
3 | 452 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
453 public int endPos() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
454 return endPos; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
455 } |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
456 |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
457 /** |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
458 * Sets the field's text plane to the specified string. If the string is |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
459 * shorter than the length of the field, the rest of the field is cleared. |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
460 * If the string is longer than the field, the text is truncated. A subsequent |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
461 * call to getText on this field will not show the changed text. To see the |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
462 * changed text, do a refresh on the iOhioFields collection and retrieve the |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
463 * refreshed field object. |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
464 * |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
465 * @param text - The text to be placed in the field's text plane. |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
466 */ |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
467 public void setString(String text) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
468 int y = length; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
469 cursorPos = startPos; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
470 int len = text.length(); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
471 char[] c = text.toCharArray(); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
472 char tc = ' '; |
3 | 473 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
474 for (int x = 0; x < y; x++) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
475 tc = ' '; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
476 |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
477 if (x < len) { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
478 tc = c[x]; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
479 } |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
480 |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
481 s.getPlanes().setChar(cursorPos, tc); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
482 changePos(1); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
483 } |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
484 |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
485 setMDT(); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
486 s.getScreenFields().setMasterMDT(); |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
487 } |
3 | 488 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
489 public String toString() { |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
490 int fcw = (fcw1 & 0xff) << 8 | fcw2 & 0xff; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
491 return "startRow = " + startRow() + " startCol = " + startCol() + |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
492 " length = " + length + " ffw1 = (0x" + Integer.toHexString(ffw1) + |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
493 ") ffw2 = (0x" + Integer.toHexString(ffw2) + |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
494 ") fcw1 = (0x" + Integer.toHexString(fcw1) + |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
495 ") fcw2 = (0x" + Integer.toHexString(fcw2) + |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
496 ") fcw = (" + Integer.toBinaryString(fcw) + |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
497 ") fcw hex = (0x" + Integer.toHexString(fcw) + |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
498 ") is bypass field = " + isBypassField() + |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
499 ") is autoenter = " + isAutoEnter() + |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
500 ") is manditoryenter = " + isMandatoryEnter() + |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
501 ") is field exit required = " + isFER() + |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
502 ") is Numeric = " + isNumeric() + |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
503 ") is Signed Numeric = " + isSignedNumeric() + |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
504 ") is cursor progression = " + (fcw1 == 0x88) + |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
505 ") next progression field = " + fcw2 + |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
506 ") field id " + fieldId + |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
507 " continued edit field = " + isContinued() + |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
508 " first continued edit field = " + isContinuedFirst() + |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
509 " middle continued edit field = " + isContinuedMiddle() + |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
510 " last continued edit field = " + isContinuedLast() + |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
511 " mdt = " + mdt; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
512 } |
3 | 513 |
69
294435151b0c
use 5250 encryption config entry
Carl Byington <carl@five-ten-sg.com>
parents:
3
diff
changeset
|
514 public int getStartPos() { |
294435151b0c
use 5250 encryption config entry
Carl Byington <carl@five-ten-sg.com>
parents:
3
diff
changeset
|
515 return startPos; |
294435151b0c
use 5250 encryption config entry
Carl Byington <carl@five-ten-sg.com>
parents:
3
diff
changeset
|
516 } |
294435151b0c
use 5250 encryption config entry
Carl Byington <carl@five-ten-sg.com>
parents:
3
diff
changeset
|
517 |
112
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
518 int startPos = 0; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
519 int endPos = 0; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
520 boolean mdt = false; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
521 protected boolean checkCanSend; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
522 protected boolean rightAdjd; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
523 protected boolean manditoried; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
524 boolean canSend = true; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
525 int attr = 0; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
526 int length = 0; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
527 int ffw1 = 0; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
528 int ffw2 = 0; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
529 int fcw1 = 0; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
530 int fcw2 = 0; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
531 int cursorPos = 0; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
532 Screen5250 s; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
533 int cursorProg = 0; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
534 int fieldId = 0; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
535 ScreenField next = null; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
536 ScreenField prev = null; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
537 boolean isSelectionField; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
538 int selectionFieldType; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
539 int selectionIndex; |
77ac18bc1b2f
cleanup java formatting
Carl Byington <carl@five-ten-sg.com>
parents:
69
diff
changeset
|
540 int selectionPos; |
3 | 541 } |