Package org.tn5250j.framework.tn5250
Class ScreenFields
- java.lang.Object
-
- org.tn5250j.framework.tn5250.ScreenFields
-
public class ScreenFields extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected booleancurrentModified
-
Constructor Summary
Constructors Constructor Description ScreenFields(Screen5250 s)
-
Method Summary
Modifier and Type Method Description protected voidclearFFT()protected booleanexistsAtPos(int lastPos)ScreenFieldfindByPosition(int targetPosition)Searches the collection for the target position and returns the ScreenField object containing that position.ScreenFieldfindByPosition(int row, int col)Searches the collection for the target position and returns the ScreenField object containing that position.ScreenFieldfindByString(java.lang.String targetString, int startPos, int length, int dir, boolean ignoreCase)Searches the collection for the target string and returns the iOhioField object containing that string.ScreenFieldgetCurrentField()intgetCurrentFieldHighlightedAttr()intgetCurrentFieldPos()protected intgetCurrentFieldShift()java.lang.StringgetCurrentFieldText()ScreenFieldgetField(int index)intgetFieldCount()ScreenField[]getFields()ScreenFieldgetFirstInputField()intgetSize()voidgotoFieldNext()voidgotoFieldPrev()booleanisCanSendAid()This routine is used to check if we can send the Aid key to the host Taken from Section 16.2.1.2 Enter/Rec Adv Key In the normal unlocked state, when the workstation operator presses the Enter/Rec Adv key: 1.booleanisCurrentField()booleanisCurrentFieldAutoEnter()booleanisCurrentFieldBypassField()booleanisCurrentFieldContinued()booleanisCurrentFieldContinuedFirst()booleanisCurrentFieldContinuedLast()booleanisCurrentFieldContinuedMiddle()booleanisCurrentFieldDupEnabled()booleanisCurrentFieldFER()booleanisCurrentFieldHighlightedEntry()booleanisCurrentFieldModified()booleanisCurrentFieldToUpper()protected booleanisInField()protected booleanisInField(int pos)protected booleanisInField(int pos, boolean chgToField)booleanisMasterMDT()protected voidreadFormatTable(java.io.ByteArrayOutputStream baosp, int readType, ICodePage codePage)protected voidrestoreCurrentField()protected voidsaveCurrentField()protected voidsetCurrentField(ScreenField sf)protected voidsetCurrentFieldFFWs(int ffw1, int ffw2)protected voidsetCurrentFieldMDT()protected ScreenFieldsetField(int attr, int row, int col, int len, int ffw1, int ffw2, int fcw1, int fcw2)protected voidsetMasterMDT()booleanwithinCurrentField(int pos)
-
-
-
Constructor Detail
-
ScreenFields
public ScreenFields(Screen5250 s)
-
-
Method Detail
-
clearFFT
protected void clearFFT()
-
existsAtPos
protected boolean existsAtPos(int lastPos)
-
isMasterMDT
public boolean isMasterMDT()
-
setMasterMDT
protected void setMasterMDT()
-
isCurrentField
public boolean isCurrentField()
-
isCurrentFieldFER
public boolean isCurrentFieldFER()
-
isCurrentFieldDupEnabled
public boolean isCurrentFieldDupEnabled()
-
isCurrentFieldToUpper
public boolean isCurrentFieldToUpper()
-
isCurrentFieldBypassField
public boolean isCurrentFieldBypassField()
-
isCurrentFieldHighlightedEntry
public boolean isCurrentFieldHighlightedEntry()
-
isCurrentFieldAutoEnter
public boolean isCurrentFieldAutoEnter()
-
withinCurrentField
public boolean withinCurrentField(int pos)
-
isCurrentFieldContinued
public boolean isCurrentFieldContinued()
-
isCurrentFieldContinuedFirst
public boolean isCurrentFieldContinuedFirst()
-
isCurrentFieldContinuedMiddle
public boolean isCurrentFieldContinuedMiddle()
-
isCurrentFieldContinuedLast
public boolean isCurrentFieldContinuedLast()
-
isCurrentFieldModified
public boolean isCurrentFieldModified()
-
isCanSendAid
public boolean isCanSendAid()
This routine is used to check if we can send the Aid key to the host Taken from Section 16.2.1.2 Enter/Rec Adv Key In the normal unlocked state, when the workstation operator presses the Enter/Rec Adv key: 1. The 5494 checks for the completion of mandatory-fill, self-check, and right-adjust fields when in an active field. (An active field is one in which the workstation operator has begun entering data.) If the requirements of the field have not been satisfied, an error occurs.- Returns:
- flag
-
saveCurrentField
protected void saveCurrentField()
-
restoreCurrentField
protected void restoreCurrentField()
-
setCurrentField
protected void setCurrentField(ScreenField sf)
-
setCurrentFieldMDT
protected void setCurrentFieldMDT()
-
setCurrentFieldFFWs
protected void setCurrentFieldFFWs(int ffw1, int ffw2)
-
setField
protected ScreenField setField(int attr, int row, int col, int len, int ffw1, int ffw2, int fcw1, int fcw2)
-
getField
public ScreenField getField(int index)
-
getCurrentField
public ScreenField getCurrentField()
-
getCurrentFieldPos
public int getCurrentFieldPos()
-
getCurrentFieldShift
protected int getCurrentFieldShift()
-
getCurrentFieldText
public java.lang.String getCurrentFieldText()
-
getCurrentFieldHighlightedAttr
public int getCurrentFieldHighlightedAttr()
-
getSize
public int getSize()
-
getFieldCount
public int getFieldCount()
-
isInField
protected boolean isInField(int pos)
-
isInField
protected boolean isInField()
-
isInField
protected boolean isInField(int pos, boolean chgToField)
-
findByString
public ScreenField findByString(java.lang.String targetString, int startPos, int length, int dir, boolean ignoreCase)
Searches the collection for the target string and returns the iOhioField object containing that string. The string must be totally contained within the field to be considered a match.- Parameters:
targetString- The target string.startPos- The row and column where to start the search. The position is inclusive (for example, row 1, col 1 means that position 1,1 will be used as the starting location and 1,1 will be included in the search).length- The length from startPos to include in the search.dir- An OHIO_DIRECTION value:ignoreCase- flag
Constant Value Description ignoreCase - Indicates whether the search is case sensitive. True means that case will be ignored. False means the search will be case sensitive.summary Constant Value Description OS_OHIO_DIRECTION_FORWARD 0 Forward (beginning towards end) OS_OHIO_DIRECTION_BACKWARD 1 Backward (end towards beginning) - Returns:
- If found, an iOhioField object containing the target string. If not found, returns a null.
-
findByPosition
public ScreenField findByPosition(int targetPosition)
Searches the collection for the target position and returns the ScreenField object containing that position.- Parameters:
targetPosition- The target row and column expressed as a linear position within the presentation space.- Returns:
- If found, a ScreenField object containing the target position. If not found, returns a null.
-
findByPosition
public ScreenField findByPosition(int row, int col)
Searches the collection for the target position and returns the ScreenField object containing that position.- Parameters:
row- The beginning row to start search with in the presentation space.col- The beginning column to start search with in the presentation space.- Returns:
- If found, a ScreenField object containing the target position. If not found, returns a null.
-
getFields
public ScreenField[] getFields()
-
getFirstInputField
public ScreenField getFirstInputField()
-
gotoFieldNext
public void gotoFieldNext()
-
gotoFieldPrev
public void gotoFieldPrev()
-
readFormatTable
protected void readFormatTable(java.io.ByteArrayOutputStream baosp, int readType, ICodePage codePage)
-
-