Package org.tn5250j.framework.tn5250
Class ScreenField
- java.lang.Object
-
- org.tn5250j.framework.tn5250.ScreenField
-
public class ScreenField extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected booleancheckCanSendprotected booleanmanditoriedprotected booleanrightAdjd
-
Constructor Summary
Constructors Modifier Constructor Description protectedScreenField(Screen5250 s)
-
Method Summary
Modifier and Type Method Description protected voidchangePos(int i)intendPos()intgetAdjustment()intgetAttr()intgetCurrentPos()intgetCursorCol()intgetCursorProgression()intgetCursorRow()intgetFCW1()intgetFCW2()intgetFFW1()intgetFFW2()intgetFieldId()intgetFieldLength()intgetFieldShift()intgetHighlightedAttr()protected intgetKeyPos(int pos)protected intgetKeyPos(int row1, int col1)intgetLength()java.lang.StringgetString()protected java.lang.StringgetText()booleanisAutoEnter()booleanisBypassField()protected booleanisCanSend()booleanisContinued()booleanisContinuedFirst()booleanisContinuedLast()booleanisContinuedMiddle()booleanisDupEnabled()booleanisFER()booleanisHiglightedEntry()booleanisMandatoryEnter()booleanisNumeric()booleanisRightToLeft()booleanisSelectionField()booleanisSignedNumeric()booleanisToUpper()protected voidresetMDT()protected voidsetFCWs(int fcw1, int fcw2)protected booleansetFFWs(int ffw1, int ffw2)protected ScreenFieldsetField(int attr, int len, int ffw1, int ffw2, int fcw1, int fcw2)protected ScreenFieldsetField(int attr, int row, int col, int len, int ffw1, int ffw2, int fcw1, int fcw2)voidsetFieldChar(char c)voidsetFieldChar(int lastPos, char c)protected voidsetFieldId(int fi)protected voidsetManditoryEntered()protected voidsetMDT()protected voidsetRightAdjusted()voidsetSelectionFieldInfo(int type, int index, int position)voidsetString(java.lang.String text)Sets the field's text plane to the specified string.intstartCol()Get the starting column of the field.intstartPos()intstartRow()Get the starting row of the field.java.lang.StringtoString()booleanwithinField(int pos)
-
-
-
Constructor Detail
-
ScreenField
protected ScreenField(Screen5250 s)
-
-
Method Detail
-
setField
protected ScreenField setField(int attr, int len, int ffw1, int ffw2, int fcw1, int fcw2)
-
setField
protected ScreenField setField(int attr, int row, int col, int len, int ffw1, int ffw2, int fcw1, int fcw2)
-
getAttr
public int getAttr()
-
getHighlightedAttr
public int getHighlightedAttr()
-
getLength
public int getLength()
-
setFFWs
protected boolean setFFWs(int ffw1, int ffw2)
-
getFFW1
public int getFFW1()
-
getFFW2
public int getFFW2()
-
setFCWs
protected void setFCWs(int fcw1, int fcw2)
-
getFCW1
public int getFCW1()
-
getFCW2
public int getFCW2()
-
getFieldLength
public int getFieldLength()
-
getCursorProgression
public int getCursorProgression()
-
getFieldId
public int getFieldId()
-
setFieldId
protected void setFieldId(int fi)
-
getCursorRow
public int getCursorRow()
-
getCursorCol
public int getCursorCol()
-
changePos
protected void changePos(int i)
-
getText
protected java.lang.String getText()
-
getString
public java.lang.String getString()
-
setFieldChar
public void setFieldChar(char c)
-
setFieldChar
public void setFieldChar(int lastPos, char c)
-
setRightAdjusted
protected void setRightAdjusted()
-
setManditoryEntered
protected void setManditoryEntered()
-
resetMDT
protected void resetMDT()
-
setMDT
protected void setMDT()
-
isBypassField
public boolean isBypassField()
-
getAdjustment
public int getAdjustment()
-
isFER
public boolean isFER()
-
isMandatoryEnter
public boolean isMandatoryEnter()
-
isToUpper
public boolean isToUpper()
-
getFieldShift
public int getFieldShift()
-
isHiglightedEntry
public boolean isHiglightedEntry()
-
isAutoEnter
public boolean isAutoEnter()
-
isSignedNumeric
public boolean isSignedNumeric()
-
isRightToLeft
public boolean isRightToLeft()
-
isNumeric
public boolean isNumeric()
-
isDupEnabled
public boolean isDupEnabled()
-
isContinued
public boolean isContinued()
-
isContinuedFirst
public boolean isContinuedFirst()
-
isContinuedMiddle
public boolean isContinuedMiddle()
-
isContinuedLast
public boolean isContinuedLast()
-
isCanSend
protected boolean isCanSend()
-
isSelectionField
public boolean isSelectionField()
-
setSelectionFieldInfo
public void setSelectionFieldInfo(int type, int index, int position)
-
getKeyPos
protected int getKeyPos(int row1, int col1)
-
getKeyPos
protected int getKeyPos(int pos)
-
getCurrentPos
public int getCurrentPos()
-
withinField
public boolean withinField(int pos)
-
startPos
public int startPos()
-
startRow
public int startRow()
Get the starting row of the field. Offset is 0 so row 6 returned is row 7 mapped to screen- Returns:
- int starting row of the field offset 0
-
startCol
public int startCol()
Get the starting column of the field. Offset is 0 so column 6 returned is column 7 mapped to screen- Returns:
- int starting column of the field offset 0
-
endPos
public int endPos()
-
setString
public void setString(java.lang.String text)
Sets the field's text plane to the specified string. If the string is shorter than the length of the field, the rest of the field is cleared. If the string is longer than the field, the text is truncated. A subsequent call to getText on this field will not show the changed text. To see the changed text, do a refresh on the iOhioFields collection and retrieve the refreshed field object.- Parameters:
text- - The text to be placed in the field's text plane.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-