Package com.iizix.term
Class HostField
java.lang.Object
com.iizix.term.HostField
This class holds the definition of a the host fields on the screen of the terminal connector.
- Author:
- Christopher Mindus
- Field SummaryFieldsModifier and TypeFieldDescription- static final intField justification: Field is entirely filled.- static final intField justification: No justification.- static final intField justification: Right justified, blank-filled.- static final intField justification: Right justified, zero-filled.- static final intHost field type: Alphanumeric characters only.- static final intHost field type: Alpha characters only.- static final intHost field type: Any character allowed.- static final intHost field type: Digits only.- static final intHost field type: Implied decimal number.- static final intHost field type: Katakana shift.- static final intHost field type: Numeric only.- static final intHost field type: Numeric shift.- static final intHost field type: Signed numeric.- static final intHost field type: Upper case any character.- booleanThe field exit key is required to exit this field.- booleanThis field is hidden (non-display).- booleanAll characters in this field are automatically converted to upper case.- booleanThis field is protected.- intField justification: the values HFJ_*.- intThe length of the field.The next host field.- intPosition of the host field in the host screen.- intThe width of the host screen.- intField type: the values HFT_*.- intPosition in X.- intPosition in Y.
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- void- append- (SendTransaction trans) Appends the data for this host field to a transaction.Gets the string representation of the justification.Gets the next host field.- int- getPos()Gets the zero-based position of this field on the screen.Gets the string representation of the type.- boolean- isEmpty- (HostScreen screen) Checks if this field is protected and empty.
- Field Details- HFT_AnyCharacterpublic static final int HFT_AnyCharacterHost field type: Any character allowed.- See Also:
 
- HFT_AlphaOnlypublic static final int HFT_AlphaOnlyHost field type: Alpha characters only.- See Also:
 
- HFT_Alphanumericpublic static final int HFT_AlphanumericHost field type: Alphanumeric characters only.- See Also:
 
- HFT_UpperOnlypublic static final int HFT_UpperOnlyHost field type: Upper case any character.- See Also:
 
- HFT_NumericOnlypublic static final int HFT_NumericOnlyHost field type: Numeric only.- See Also:
 
- HFT_DigitsOnlypublic static final int HFT_DigitsOnlyHost field type: Digits only.- See Also:
 
- HFT_SignedNumericpublic static final int HFT_SignedNumericHost field type: Signed numeric.- See Also:
 
- HFT_ImpliedDecimalpublic static final int HFT_ImpliedDecimalHost field type: Implied decimal number.- See Also:
 
- HFT_NumericShiftpublic static final int HFT_NumericShiftHost field type: Numeric shift.- See Also:
 
- HFT_KatakanaShiftpublic static final int HFT_KatakanaShiftHost field type: Katakana shift.- See Also:
 
- HFJ_NoAdjustpublic static final int HFJ_NoAdjustField justification: No justification.- See Also:
 
- HFJ_RightZeropublic static final int HFJ_RightZeroField justification: Right justified, zero-filled.- See Also:
 
- HFJ_RightBlankpublic static final int HFJ_RightBlankField justification: Right justified, blank-filled.- See Also:
 
- HFJ_Fillpublic static final int HFJ_FillField justification: Field is entirely filled.- See Also:
 
- typepublic int typeField type: the values HFT_*.
- justificationpublic int justificationField justification: the values HFJ_*.
- isFieldExitRequiredpublic boolean isFieldExitRequiredThe field exit key is required to exit this field.
- isHiddenpublic boolean isHiddenThis field is hidden (non-display).
- isProtectedpublic boolean isProtectedThis field is protected.
- isLowerTranslatedToUpperpublic boolean isLowerTranslatedToUpperAll characters in this field are automatically converted to upper case.
- xpublic int xPosition in X. The position in X and Y is filled in through the position member if X is -1.
- ypublic int yPosition in Y. The position in X and Y is filled in through the position member if X is -1.
- positionpublic int positionPosition of the host field in the host screen. The HostFields class sets this member when adding new host fields if the position is -1. The position is taken from the x and y members.
- lengthpublic int lengthThe length of the field.
- screenWidthpublic int screenWidthThe width of the host screen. The HostFields class sets this member when adding new host fields.
- nextFieldThe next host field. The HostFields class sets this member when adding new host fields.
 
- Constructor Details- HostFieldpublic HostField()
 
- Method Details- getNextFieldGets the next host field.- Returns:
- null if no field is found.
 
- getPospublic int getPos()Gets the zero-based position of this field on the screen.- Returns:
- The position.
 
- isEmptyChecks if this field is protected and empty. If the field is non-display contains characters, the field is assumed to be empty.- Parameters:
- screen- The host screen.
- Returns:
- true if empty.
 
- appendAppends the data for this host field to a transaction.- Parameters:
- trans- The transaction to append the host fields to.
 
- getJustificationStringGets the string representation of the justification.- Returns:
- String description.
 
- getTypeStringGets the string representation of the type.- Returns:
- String description.