diff 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
line wrap: on
line diff
--- a/src/org/tn5250j/framework/tn5250/ScreenField.java	Fri Jun 13 16:24:59 2014 -0700
+++ b/src/org/tn5250j/framework/tn5250/ScreenField.java	Fri Jun 13 19:06:01 2014 -0700
@@ -51,13 +51,12 @@
 
 //      startRow = row;
 //      startCol = col;
-      startPos = (row * s.getColumns()) + col;
-      endPos = startPos + length -1;
       cursorProg = 0;
-      fieldId = 0;
-      length = len;
-      endPos = startPos + length -1;
-      this.attr = attr;
+      fieldId    = 0;
+      length     = len;
+      startPos   = (row * s.getColumns()) + col;
+      endPos     = startPos + length - 1;
+      this.attr  = attr;
       setFFWs(ffw1,ffw2);
       setFCWs(fcw1,fcw2);
 
@@ -169,8 +168,6 @@
    }
 
    protected String getText() {
-
-
       StringBuffer text = new StringBuffer();
       getKeyPos(endPos);
       int x = length;
@@ -372,7 +369,7 @@
       return (getFieldShift() == 7);
 
    }
-   
+
    public boolean isRightToLeft() {
 	   return (getFieldShift() == 0x04);
    }
@@ -580,6 +577,10 @@
             " mdt = " + mdt;
    }
 
+    public int getStartPos() {
+        return startPos;
+    }
+
    int startPos = 0;
    int endPos = 0;
    boolean mdt = false;