comparison 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
comparison
equal deleted inserted replaced
68:cc7e3588a0f3 69:294435151b0c
2680 lastPos = pos; 2680 lastPos = pos;
2681 // setCursorOn(); 2681 // setCursorOn();
2682 updateCursorLoc(); 2682 updateCursorLoc();
2683 } 2683 }
2684 2684
2685 /*
2686 * set the content of the field at (l,c) to d
2687 * if l == -1, set the current field contents to d
2688 */
2689 public void setField(int l, int c, char [] d) {
2690 ScreenField cf;
2691 if (l >= 0) {
2692 int position = l * numCols + c;
2693 isInField(position, true);
2694 }
2695 if ((d != null) && (d.length > 0)) {
2696 cf = screenFields.getCurrentField();
2697 cf.setString(new String(d));
2698 lastPos = cf.getStartPos();
2699 }
2700 updateDirty();
2701 }
2702
2685 /** 2703 /**
2686 * Set the current working field to the field number specified. 2704 * Set the current working field to the field number specified.
2687 * 2705 *
2688 * @param f - 2706 * @param f -
2689 * numeric field number on the screen 2707 * numeric field number on the screen
2690 * @return true or false whether it was sucessful 2708 * @return true or false whether it was sucessful
2691 */ 2709 */
2710 public boolean gotoField(int f) {
2692 public boolean gotoField(int f) { 2711 public boolean gotoField(int f) {
2693 2712
2694 int sizeFields = screenFields.getSize(); 2713 int sizeFields = screenFields.getSize();
2695 2714
2696 if (f > sizeFields || f <= 0) 2715 if (f > sizeFields || f <= 0)