comparison src/org/tn5250j/framework/tn5250/Screen5250.java @ 348:29076621bab0

merge tn5250j r1227; fix spelling
author Carl Byington <carl@five-ten-sg.com>
date Fri, 01 Aug 2014 10:25:44 -0700
parents 071eccdff8ea
children da2814f6f05e
comparison
equal deleted inserted replaced
347:bb7d8a7babbe 348:29076621bab0
81 private final static int ERR_DUP_KEY_NOT_ALLOWED = 0x19; 81 private final static int ERR_DUP_KEY_NOT_ALLOWED = 0x19;
82 private final static int ERR_NUMERIC_09 = 0x10; 82 private final static int ERR_NUMERIC_09 = 0x10;
83 private final static int ERR_FIELD_MINUS = 0x16; 83 private final static int ERR_FIELD_MINUS = 0x16;
84 private final static int ERR_FIELD_EXIT_INVALID = 0x18; 84 private final static int ERR_FIELD_EXIT_INVALID = 0x18;
85 private final static int ERR_ENTER_NO_ALLOWED = 0x20; 85 private final static int ERR_ENTER_NO_ALLOWED = 0x20;
86 private final static int ERR_MANDITORY_ENTER = 0x21; 86 private final static int ERR_MANDATORY_ENTER = 0x21;
87 87
88 private boolean guiInterface = false; 88 private boolean guiInterface = false;
89 private boolean resetRequired = false; 89 private boolean resetRequired = false;
90 private boolean backspaceError = true; 90 private boolean backspaceError = true;
91 private boolean feError; 91 private boolean feError;
1906 int end = endOfField(false); // get the ending position of the first 1906 int end = endOfField(false); // get the ending position of the first
1907 // non blank character in field 1907 // non blank character in field
1908 ScreenField sf = screenFields.getCurrentField(); 1908 ScreenField sf = screenFields.getCurrentField();
1909 1909
1910 if (sf.isMandatoryEnter() && end == sf.startPos()) { 1910 if (sf.isMandatoryEnter() && end == sf.startPos()) {
1911 displayError(ERR_MANDITORY_ENTER); 1911 displayError(ERR_MANDATORY_ENTER);
1912 return false; 1912 return false;
1913 } 1913 }
1914 1914
1915 // save off the current pos of the field for checking field exit required 1915 // save off the current pos of the field for checking field exit required
1916 // positioning. the getKeyPos resets this information so it is useless 1916 // positioning. the getKeyPos resets this information so it is useless
1960 rightAdjustField(' '); 1960 rightAdjustField(' ');
1961 sf.setRightAdjusted(); 1961 sf.setRightAdjusted();
1962 break; 1962 break;
1963 1963
1964 case 7: 1964 case 7:
1965 sf.setManditoryEntered(); 1965 sf.setMandatoryEntered();
1966 break; 1966 break;
1967 } 1967 }
1968 } 1968 }
1969 else { 1969 else {
1970 // we need to right adjust signed numeric fields as well. 1970 // we need to right adjust signed numeric fields as well.
2158 * <tr> 2158 * <tr>
2159 * <td>ERR_ENTER_NOT_ALLOWED</td> 2159 * <td>ERR_ENTER_NOT_ALLOWED</td>
2160 * <td>0x20</td> 2160 * <td>0x20</td>
2161 * </tr> 2161 * </tr>
2162 * <tr> 2162 * <tr>
2163 * <td>ERR_MANDITORY_ENTER</td> 2163 * <td>ERR_MANDATORY_ENTER</td>
2164 * <td>0x21</td> 2164 * <td>0x21</td>
2165 * </tr> 2165 * </tr>
2166 * <tr> 2166 * <tr>
2167 * <td>ERR_ENTER_NOT_ALLOWED</td> 2167 * <td>ERR_ENTER_NOT_ALLOWED</td>
2168 * <td>0x20</td> 2168 * <td>0x20</td>