diff src/org/tn5250j/framework/tn5250/Screen5250.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 d9b27288a9d2
children c56032728742
line wrap: on
line diff
--- a/src/org/tn5250j/framework/tn5250/Screen5250.java	Fri Jun 13 16:24:59 2014 -0700
+++ b/src/org/tn5250j/framework/tn5250/Screen5250.java	Fri Jun 13 19:06:01 2014 -0700
@@ -2682,6 +2682,24 @@
         updateCursorLoc();
     }
 
+    /*
+     * set the content of the field at (l,c) to d
+     * if l == -1, set the current field contents to d
+     */
+    public void setField(int l, int c, char [] d) {
+        ScreenField cf;
+        if (l >= 0) {
+            int position = l * numCols + c;
+            isInField(position, true);
+        }
+        if ((d != null) && (d.length > 0)) {
+            cf = screenFields.getCurrentField();
+            cf.setString(new String(d));
+            lastPos = cf.getStartPos();
+        }
+        updateDirty();
+    }
+
     /**
      * Set the current working field to the field number specified.
      *
@@ -2690,6 +2708,7 @@
      * @return true or false whether it was sucessful
      */
     public boolean gotoField(int f) {
+    public boolean gotoField(int f) {
 
         int sizeFields = screenFields.getSize();