comparison src/org/tn5250j/framework/tn5250/ScreenField.java @ 69:294435151b0c tn5250

use 5250 encryption config entry
author Carl Byington <carl@five-ten-sg.com>
date Fri, 13 Jun 2014 19:06:01 -0700
parents e8d2a24e85c6
children 77ac18bc1b2f
comparison
equal deleted inserted replaced
68:cc7e3588a0f3 69:294435151b0c
49 protected ScreenField setField(int attr, int row, int col, int len, int ffw1, int ffw2, 49 protected ScreenField setField(int attr, int row, int col, int len, int ffw1, int ffw2,
50 int fcw1, int fcw2) { 50 int fcw1, int fcw2) {
51 51
52 // startRow = row; 52 // startRow = row;
53 // startCol = col; 53 // startCol = col;
54 startPos = (row * s.getColumns()) + col;
55 endPos = startPos + length -1;
56 cursorProg = 0; 54 cursorProg = 0;
57 fieldId = 0; 55 fieldId = 0;
58 length = len; 56 length = len;
59 endPos = startPos + length -1; 57 startPos = (row * s.getColumns()) + col;
60 this.attr = attr; 58 endPos = startPos + length - 1;
59 this.attr = attr;
61 setFFWs(ffw1,ffw2); 60 setFFWs(ffw1,ffw2);
62 setFCWs(fcw1,fcw2); 61 setFCWs(fcw1,fcw2);
63 62
64 next = null; 63 next = null;
65 prev = null; 64 prev = null;
167 cursorPos += i; 166 cursorPos += i;
168 167
169 } 168 }
170 169
171 protected String getText() { 170 protected String getText() {
172
173
174 StringBuffer text = new StringBuffer(); 171 StringBuffer text = new StringBuffer();
175 getKeyPos(endPos); 172 getKeyPos(endPos);
176 int x = length; 173 int x = length;
177 text.setLength(x); 174 text.setLength(x);
178 while (x-- > 0) { 175 while (x-- > 0) {
370 public boolean isSignedNumeric () { 367 public boolean isSignedNumeric () {
371 368
372 return (getFieldShift() == 7); 369 return (getFieldShift() == 7);
373 370
374 } 371 }
375 372
376 public boolean isRightToLeft() { 373 public boolean isRightToLeft() {
377 return (getFieldShift() == 0x04); 374 return (getFieldShift() == 0x04);
378 } 375 }
379 376
380 public boolean isNumeric () { 377 public boolean isNumeric () {
577 " first continued edit field = " + isContinuedFirst() + 574 " first continued edit field = " + isContinuedFirst() +
578 " middle continued edit field = " + isContinuedMiddle() + 575 " middle continued edit field = " + isContinuedMiddle() +
579 " last continued edit field = " + isContinuedLast() + 576 " last continued edit field = " + isContinuedLast() +
580 " mdt = " + mdt; 577 " mdt = " + mdt;
581 } 578 }
579
580 public int getStartPos() {
581 return startPos;
582 }
582 583
583 int startPos = 0; 584 int startPos = 0;
584 int endPos = 0; 585 int endPos = 0;
585 boolean mdt = false; 586 boolean mdt = false;
586 protected boolean checkCanSend; 587 protected boolean checkCanSend;