Class ScreenFieldProp
- All Implemented Interfaces:
EventListener,IGProp<GProp<?>[]>,IPropCnr,IVSColumnBestValueListener,IVSColumnListener,IVSComponentListener,IVSComponentReferenceProvider,IVSComponentState,IVSFieldListener,Cloneable
- Direct Known Subclasses:
EditorScreenFieldProp
Nested Class Summary
Nested classes/interfaces inherited from interface com.iizix.prop.vs.IVSComponentState
IVSComponentState.StateField Summary
FieldsModifier and TypeFieldDescriptionstatic final intLeft justification.static final intNo justification.static final intRight justification.static final intField type: Alphanumeric characters only.static final intField type: Alpha characters only.static final intField type: Any character allowed.static final intField type: Digits only.static final intField type: Implied decimal number.static final intField type: Katakana shift.static final intField type: Marked field.static final intField type: Numeric only.static final intField type: Numeric shift.static final intField type: Signed numeric.static final intField type: Upper case any character.static final Stringstatic final StringName for the relative VirtualSpace connection property.static final StringFields inherited from class com.iizix.prop.PropCnr
EMPTY, EMPTY_CLASSES, EMPTY_CNRS, EXTENDS_FRAMEWORK_ERROR_IDFields inherited from class com.iizix.prop.GProp
GPDEBUG, PROP_ATTR_STRING_EDITOR_PROP, PROP_ATTR_STRING_ERRORED_NAME, PROP_ATTR_STRING_EXTENDS, PROP_ATTR_STRING_EXTENDS_FINAL, PROP_ATTR_STRING_EXTENDS_PRIVATE, PROP_ATTR_STRING_NULLABLE, PROP_ATTR_STRING_PRIVATE, PROP_ATTR_STRING_PRIVATE_CHANGE_EVENT, PROP_ATTR_STRING_READ_ONLY, PROP_USER_1, PROP_USER_2Fields inherited from interface com.iizix.prop.IGProp
EQC_ERROR_IGNORE_ALL, EQC_ERROR_IGNORE_REFERENCES, EQC_IGNORE_ARRAY, EQC_IGNORE_VOLATILE_OR_EDITOR, EQC_INCLUDE_PRIVATE, EQC_SAVE_FILE, EXT_CONTAINER_EXTENDS, EXT_CONTAINER_EXTENDS_VALID, EXT_EXTENDED, EXT_FINAL, EXT_OVERRIDES, EXT_OVERRIDES_FINAL_ERR, EXT_PRIVATEConstructor Summary
ConstructorsConstructorDescriptionCreates the Screen Field property container without a name.ScreenFieldProp(Atom propertyAtom) Creates the Screen Field property container with the specified name.Method Summary
Modifier and TypeMethodDescriptionclone()Creates a clone out of this property.booleandoesScreenMatch(HostScreen screen) Checks if this host field belongs to a screen that is currently matching or not.booleandoesScreenMatch(HostSession hostSession) Checks if this host field belongs to a screen that is currently matching or not.getBestVSColumnHeaderValueType(VSRelativeReference<?> reference) Requests the value type that would best suit the listener.getBestVSFieldValueType(VSRelativeReference<?> reference) Requests the value type that would best suit the listener.intgetColor(HostScreen screen) Gets the CGA color of this field.intgetColor(HostScreen screen, boolean isDynamic) Gets the CGA color of this field.intgetColor(HostScreen screen, int line) Gets the CGA color of a line in this field.intgetColor(HostScreen screen, int line, boolean doCheckMatch) Gets the CGA color of a line in this field.intgetColor2(HostScreen screen, boolean doCheckMatch) Gets the CGA color of this field.getCurrentHostSession(String logMsg) Gets the current host session from the Application properties.intgetCX()Get the width.intgetCY()Get the height.Gets the class reference for the field processing used to getting/setting host field and providing conversion/mapping/translation support.getHiddenHostFieldColumn(HostScreen screen) Gets an array of all host field cells in a column.getHiddenHostString(HostScreen screen) Gets the contents of this host field.getHiddenHostString(HostScreen screen, boolean isDynamic) Gets the contents of this host field.getHiddenHostString(HostScreen screen, boolean isDynamic, boolean dontWrap) Gets the contents of this host field.getHiddenHostString(HostScreen screen, int line) Gets the contents of this host field.getHostField(HostScreen screen) Gets the corresponding host field on the current host screen.getHostField(HostScreen screen, boolean isDynamic) Gets the corresponding host field on the current host screen.getHostField(HostScreen screen, int line) Gets the corresponding host field on the current host screen.getHostFieldColumn(HostScreen screen) Gets an array of all host field cells in a column.getHostFieldColumn(HostScreen screen, boolean doGetHidden) Gets an array of all host field cells in a column.getHostString(HostScreen screen) Gets the contents of this host field.getHostString(HostScreen screen, boolean doGetHidden) Gets the contents of this host field.getHostString(HostScreen screen, boolean doGetHidden, boolean isDynamic) Gets the contents of this host field.getHostString(HostScreen screen, boolean doGetHidden, boolean isDynamic, boolean dontWrap, boolean doCheckMatch) Gets the contents of this host field.getHostString(HostScreen screen, boolean doGetHidden, int line) Gets the contents of this host field at a certain line.getHostString(HostScreen screen, boolean doGetHidden, int line, boolean doCheckMatch) Gets the contents of this host field at a certain line.getHostString(HostScreen screen, int line) Gets the contents of this host field.Gets the IHostFieldData instance.intGets the line count in this host field.Gets the next continued field.Gets the reference Type.Gets the screen property.intGet this field total width.intgetTotalWidth(HostScreen screen, boolean isDynamic) Get this field total width.intgetTotalWidth(HostScreen screen, boolean isDynamic, boolean dontWrap) Get this field total width.intgetType()Gets the type.Gets the field type string.static StringgetTypeString(int type) Gets the string for a field type.Gets the VS Column Header connected to the screen field.Gets the VSComponentReference.Class<?>[]Gets the possible component classes for the references, i.e.Gets the VS Field connected to the screen field.Gets the relative VS connection.intgetWidth(int line) Gets the with of a specific line in the host field.intgetX()Get the horizontal position.intgetY()Get the vertical position.booleanChecks for connection to VS.booleanChecks if this field is a continuation of a field, i.e.booleanChecks if the field is continued, i.e.booleanGets the definition of the dynamic property "snap".booleanCheck if data is to be retrieved from this screen and it's not the current pop-up screen, rather a "main screen" behind, then methods fetching data using "relative" methods should use "absolute" ones instead.booleanisVSComponentReferenceValid(Atom refAtom, VSComponent component) Validates the VS component reference that has been looked up when the reference property doesn't exist.booleanGets the definition of the dynamic property "wrap".voidonBroken(VSRelativeReference<?> reference, VSColumnHeader column) Called when the property reference has been broken, i.e.voidonBroken(VSRelativeReference<?> reference, VSField field) Called when the property reference has been broken, i.e.voidonCellValueChanged(VSColumnHeader column, VSField cell, Value value, GProp<?> trigger, IPostEventProcessing postProcessing) Called when the cell value is set in the column.voidonParentStateChanged(IVSComponent parent, IVSComponentState.State state, boolean on) Called when the column changes state.voidonResolved(VSRelativeReference<?> reference, VSColumnHeader column) Called when the property reference has been resolved.voidonResolved(VSRelativeReference<?> reference, VSField field) Called when the property reference has been resolved.voidonRowAdded(VSColumnHeader column, VSRow row, int rowIndex) Called when a row has been added to the table.voidonRowRemoved(VSColumnHeader column, VSRow row, int rowIndex) Called when a row has been removed from the table.voidonSelectionChanged(VSColumnHeader column, VSRow row, int rowIndex, boolean isSelected) Called when the row selection is changed to forward to column listeners.voidonSingleSelectionChanged(VSColumnHeader column, int rowIndex) Called when the row selection in table single-selection mode is changed to forward to column listeners.voidonStateChanged(VSColumnHeader table, IVSComponentState.State state, boolean on) Called when the table changes state.voidonStateChanged(VSColumnHeader column, VSField cell, IVSComponentState.State state, boolean on) Called when a cell in the column changes state.voidonStateChanged(VSField field, IVSComponentState.State state, boolean on) Called when the field changes state.voidonValueChanged(VSField field, Value value, GProp<?> trigger, IPostEventProcessing postProcessing) Called when the field value is set.booleansetCursor(HostSession hostSession) Set cursor to the position of this field, first line.booleansetCursor(HostSession hostSession, boolean isDynamic) Set cursor to the position of this field, first line.booleansetCursor(HostSession hostSession, int line) Set cursor to the position of this field with line offset.booleansetCursor(HostSession hostSession, int line, int charpos) Set cursor to the position of this field with line offset and the character offset.setHostField(HostSession hostSession, String text) Sets the corresponding host field on the current host screen to the specified string.setHostField(HostSession hostSession, String text, boolean isDynamic) Sets the corresponding host field on the current host screen to the specified string.setHostField(HostSession hostSession, String text, int line) Sets the corresponding host field on the current host screen to the specified string.protected voidUpdates the cached values.booleanThis property is index based.Methods inherited from class com.iizix.prop.PropCnr
__transferChildProps, addPredefinedProps, addProp, addProp, addProp2, addProp2, appendPropValue, canRequestFocus, completeVirtualize, containsProp, containsProp, convertLoadedProp, couldRequestFocusIfVirtualized, createCopyOfAtom, createUniqueAtom, createUniqueAtom, createUniqueAtom, createVSReference, doPropEqualsArrayValues, enablePropCommunication, enablePropHashMap, equalsTree, equalsTree, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getBool, getBool, getBool, getBool, getChildPropError, getChildPropError, getChildPropErrorSeverity, getChildPropErrorSeverity, getErrorsProp, getExtendsContainer, getExtendsError, getExtendsName, getExtendsOverride, getExtendsPossibleClasses, getFirstProp, getFirstProp, getFocusEngine, getInt, getInt, getInt, getInt, getLong, getLong, getLong, getLong, getNumber, getNumber, getNumber, getNumber, getPossibleChildren, getPredefinedProps, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getPropBaseReference, getPropCnr, getPropCount, getPropCount, getPropIndex, getPropIndex, getPropIndexes, getProps, getProps, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue0, getRetargetedVerifyContainer, getString, getString, getString, getString, getValueClasses, getVSReference, hasFocus, hasSendData, initializeElement, initializeExtendsFramework, initializeProp, initializeValue, initPropCnr, insertProp, insertProp2, isChild, isExtendsOverriden, isExtendsPropertyValid, isExtendsRoot, isPropAddRemoveAllowed, isPropCommunicating, isPropExtended, list, list, logPropNotFound, maybeAddProp, onInsertProp, onPropDispose, onPropRemoved, onPropTreeInitialized, onReferenceEvent, onVirtualContainerCreated, onVirtualizationCompleted, paramString, prepare, removeAllProps, removeAllProps2, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, reorderProps, replaceProps, requestFocus, requestFocus, requestFocusEx, requestFocusEx, resolveReferences, resolveRuntimeReferences, setBool, setBool, setBool, setBool, setCreateRequiredProp, setExtendsName, setExtendsOverride, setInt, setInt, setInt, setLong, setLong, setLong, setLong, setNumber, setNumber, setNumber, setNumber, setProp, setProp, setProp, setProp2, setProp2, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setString, setString, setString, setString, shouldCreateProps, shouldSerializeToXML, toElementString, toNativeValue0, usePropHashMap, validateChildPropInValue, validateClassInstances, validatePropType, validatePropValue, verify, verifyInternalUseOnly, verifyTree, virtualizeMethods inherited from class com.iizix.prop.GProp
addPropError, addPropListener, appendProp, convertPropError, dispose, equals, equals, equalsErrors, equalsObj, equalsPropValue, equalValues, finalize, fine, fine, finer, finer, finest, finest, fromElementString, getAliasName, getAppSessionGyro, getAppWorker, getAtomPath, getAttribute, getChildReferencePropName, getClientSessionGyro, getClientWorker, getConstraints, getEnvironment, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropName, getFullPropNameDebug, getFullPropNameDebug, getListeners, getModuleFolder, getModuleFolder, getParent, getParent, getProjectName, getPropAtom, getPropError, getPropError, getPropErroredName, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromPath, getPropFromReference, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropReferenceTarget, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getPropValueObject, getReferencePropName, getReferencePropNameNoAssert, getRelativePropName, getRootFromName, getRootName, getRootParent, getRootParentNoAssert, getTreeLock, hasChanged, hasCircularReferencesError, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeGElement, initializeGProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCreateRequired, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropForEditor, isPropNullable, isPropPrivate, isPropPrivateAtCreation, isPropReadOnly, isPropReferenceTreeValid, isPropRoot, isPropRootLoading, isPropRootTreeModificationsAllowed, isPropUSER, isPropValueTreeLockNeeded, isPropVirtualized, isPropVirtualizing, isPropVolatile, isPropVolatileOrEditorOnly, isProxied, isSibling, list, list, list, mapAliasToReference, mapAliasToReference, mapReferenceToAlias, mapReferenceToAlias, mapReferenceToProjectRelative, modifyPropValue, moveProp, moveProp, moveProp, onEvent, onEventSelf, onPrepare, onPropInvalidateCache, onPropParentChanged, onPropValueSet, onRemoteEvent, paramString, paramValue, post, post, removePropError, removePropListener, removePropUSER, renameProp, renameProp2, resetChangedTree, setChanged, setConstraints, setConstraints, setParent, setPrivateChangeEventProp, setPrivateCreateRequiredProp, setPropError, setPropErroredName, setPropExtended, setPropExtendsFinal, setPropExtendsPrivate, setPropForEditor, setPropNullable, setPropPrivate, setPropReadOnly, setPropUSER, setPropValue, setPropValue, setPropValue, setPropValueIncognito, setPropVolatile, severe, severe, severe, shouldSerializeToXML, throwIfReadOnly, toNativeValue, toString, toString, triggerRemoteEvent, triggerRemoteEvent, validateProp, warning, warning, warningMethods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.iizix.prop.IGProp
addPropError, addPropListener, dispose, equals, fine, fine, finer, finer, finest, finest, fromElementString, getAppSessionGyro, getAtomPath, getClientSessionGyro, getConstraints, getEnvironment, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropNameDebug, getModuleFolder, getModuleFolder, getParent, getParent, getPropAtom, getPropError, getPropError, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getReferencePropName, getRelativePropName, getRootParent, getTreeLock, hasChanged, hasCircularReferencesError, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeGElement, initializeGProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCreateRequired, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropNullable, isPropPrivate, isPropReadOnly, isPropReferenceTreeValid, isPropRoot, isPropVirtualized, isSibling, list, list, list, mapAliasToReference, mapReferenceToAlias, mapReferenceToProjectRelative, moveProp, moveProp, moveProp, onEvent, onEventSelf, onRemoteEvent, removePropError, removePropListener, renameProp, setChanged, setConstraints, setConstraints, setParent, setPrivateChangeEventProp, setPropError, setPropExtendsFinal, setPropExtendsPrivate, setPropNullable, setPropPrivate, setPropReadOnly, setPropValue, setPropValue, severe, severe, severe, toNativeValue, triggerRemoteEvent, triggerRemoteEvent, validateProp, warning, warning, warningMethods inherited from interface com.iizix.prop.IPropCnr
canRequestFocus, canRequestFocus, couldRequestFocusIfVirtualized, couldRequestFocusIfVirtualizedMethods inherited from interface com.iizix.prop.vs.IVSComponentReferenceProvider
isVSComponentReferenceValid
Field Details
RELATIVE_VIRTUALSPACE
Name for the relative VirtualSpace connection property.- See Also:
ADJ_LEFT
public static final int ADJ_LEFTLeft justification.- See Also:
ADJ_RIGHT
public static final int ADJ_RIGHTRight justification.- See Also:
ADJ_NONE
public static final int ADJ_NONENo justification.- See Also:
FT_Marked
public static final int FT_MarkedField type: Marked field.- See Also:
FT_AnyCharacter
public static final int FT_AnyCharacterField type: Any character allowed.- See Also:
FT_AlphaOnly
public static final int FT_AlphaOnlyField type: Alpha characters only.- See Also:
FT_Alphanumeric
public static final int FT_AlphanumericField type: Alphanumeric characters only.- See Also:
FT_UpperOnly
public static final int FT_UpperOnlyField type: Upper case any character.- See Also:
FT_NumericOnly
public static final int FT_NumericOnlyField type: Numeric only.- See Also:
FT_DigitsOnly
public static final int FT_DigitsOnlyField type: Digits only.- See Also:
FT_SignedNumeric
public static final int FT_SignedNumericField type: Signed numeric.- See Also:
FT_ImpliedDecimal
public static final int FT_ImpliedDecimalField type: Implied decimal number.- See Also:
FT_NumericShift
public static final int FT_NumericShiftField type: Numeric shift.- See Also:
FT_KatakanaShift
public static final int FT_KatakanaShiftField type: Katakana shift.- See Also:
SCREEN_NULL
- See Also:
NO_MATCH
- See Also:
Constructor Details
ScreenFieldProp
public ScreenFieldProp()Creates the Screen Field property container without a name. The name must be set in all cases using thesetPropertyAtomcall.ScreenFieldProp
Creates the Screen Field property container with the specified name. All system-reserved names for components begins with "$".- Parameters:
propertyAtom- the name of the component, unique within it's parent.
Method Details
getTypeString
Gets the string for a field type.usesPropIndex
public boolean usesPropIndex()This property is index based.- Specified by:
usesPropIndexin interfaceIPropCnr- Overrides:
usesPropIndexin classPropCnr- Returns:
- true.
clone
Creates a clone out of this property. The cloning is overridden by the subclasses in order to handle cloning of its class variables appropriately.Cloning is used for "virtualization" of a property tree in the server. Client property classes will therefore throw
CloneNotSupportedException.Once a tree has been cloned, the change-flag is reset, and the create-flag is set. All listeners are also removed! The new cloned property is an orphan, i.e. has no parent set. All children properties are also (deep) cloned.
Note that the cloning process is done WITHOUT thread synchronization for performance reasons, thus no modifications should be done to the tree!
- Overrides:
clonein classPropCnr- Throws:
CloneNotSupportedException- If a subclass doesn't allow cloning, e.g. the client properties.
updateCachedValues
protected void updateCachedValues()Updates the cached values.getType
public int getType()Gets the type.getTypeString
Gets the field type string.isDynamic
public boolean isDynamic()Gets the definition of the dynamic property "snap".- Returns:
- true if defined as dynamic screen field, false otherwise.
isWrappingAllowed
public boolean isWrappingAllowed()Gets the definition of the dynamic property "wrap".- Returns:
- true if dynamic screen fields are allowed to wrap, false otherwise.
isContinued
public boolean isContinued()Checks if the field is continued, i.e. if there is a next-continued field.getNextContinued
Gets the next continued field.- Returns:
- null for none.
isContinuation
public boolean isContinuation()Checks if this field is a continuation of a field, i.e. a "child" field.getScreen
Gets the screen property.doesScreenMatch
Checks if this host field belongs to a screen that is currently matching or not.doesScreenMatch
Checks if this host field belongs to a screen that is currently matching or not.getX
public int getX()Get the horizontal position.getY
public int getY()Get the vertical position.getCX
public int getCX()Get the width.getCY
public int getCY()Get the height.getWidth
public int getWidth(int line) Gets the with of a specific line in the host field. If the index is negative, the total with is returned.- Returns:
- -1 if not found, otherwise the width.
- See Also:
getTotalWidth
public int getTotalWidth()Get this field total width. If the field is continued or has multiple lines, the entire size is calculated. This size is mostly used for e.g. an entry field that is connected to a host field that wraps over the screen (and is therefore continued).getTotalWidth
Get this field total width. If the field is continued or has multiple lines, the entire size is calculated. This size is mostly used for e.g. an entry field that is connected to a host field that wraps over the screen (and is therefore continued).getTotalWidth
Get this field total width. If the field is continued or has multiple lines, the entire size is calculated. This size is mostly used for e.g. an entry field that is connected to a host field that wraps over the screen (and is therefore continued).The "dontWrap" flag is only valid when the flag "isDynamic" is true.
isScreenNonCurrentPopup
public boolean isScreenNonCurrentPopup()Check if data is to be retrieved from this screen and it's not the current pop-up screen, rather a "main screen" behind, then methods fetching data using "relative" methods should use "absolute" ones instead.Typically his would be used when e,g, REXX used HostGetFld('MAINSCREEN','SOMEFLD') and without this method it wouldn't work.
- Returns:
- true if this PhantomScreen is not a pop-up.
getLineCount
public int getLineCount()Gets the line count in this host field.getHostString
Gets the contents of this host field. Hidden characters are returned as spaces.- Returns:
- null if the host field is not inside screen (because there has been a screen change).
getHostString
Gets the contents of this host field. Hidden characters are returned as spaces.- Returns:
- null if the host field is not inside screen (because there has been a screen change).
getHostString
Gets the contents of this host field.- Returns:
- null if the host field is not inside screen (because there has been a screen change).
getHostString
Gets the contents of this host field.- Returns:
- null if the host field is not inside screen (because there has been a screen change).
getHostString
public String getHostString(HostScreen screen, boolean doGetHidden, boolean isDynamic, boolean dontWrap, boolean doCheckMatch) Gets the contents of this host field.The "dontWrap" flag is only valid when "isDynamic" is true.
- Returns:
- null if the host field is not inside screen (because there has been a screen change).
getHostString
Gets the contents of this host field at a certain line.- Returns:
- null if the host field is not inside screen (because there has been a screen change).
getHostString
Gets the contents of this host field at a certain line.- Returns:
- null if the host field is not inside screen (because there has been a screen change).
getHiddenHostString
Gets the contents of this host field.- Returns:
- null if the host field is not inside screen (because there has been a screen change).
getHiddenHostString
Gets the contents of this host field.- Returns:
- null if the host field is not inside screen (because there has been a screen change).
getHiddenHostString
Gets the contents of this host field.The "dontWrap" flag is only valid when "isDynamic" is true.
- Returns:
- null if the host field is not inside screen (because there has been a screen change).
getHiddenHostString
Gets the contents of this host field.- Returns:
- null if the host field is not inside screen (because there has been a screen change).
getColor
Gets the CGA color of this field.- Returns:
- -1 if the host field is not inside screen (because there has been a screen change).
getColor2
Gets the CGA color of this field.- Returns:
- -1 if the host field is not inside screen (because there has been a screen change).
getColor
Gets the CGA color of this field.- Returns:
- -1 if the host field is not inside screen (because there has been a screen change).
getColor
Gets the CGA color of a line in this field.- Returns:
- -1 if the host field is not inside screen (because there has been a screen change).
getColor
Gets the CGA color of a line in this field.- Returns:
- -1 if the host field is not inside screen (because there has been a screen change).
getHostField
Gets the corresponding host field on the current host screen.- Returns:
- null if the host field is not found. or if the host field is not inside screen (because there has been a screen change).
getHostField
Gets the corresponding host field on the current host screen.- Returns:
- null if the host field is not found. or if the host field is not inside screen (because there has been a screen change).
getHostField
Gets the corresponding host field on the current host screen. The line number indicates the Y offset in the Phantom Host Field.- Returns:
- null if the host field is not found. or if the host field is not inside screen (because there has been a screen change).
setCursor
Set cursor to the position of this field with line offset. If line offset is larger than field height, search for continue field.- Returns:
- false if cursor cannot be set or if line is invalid.
setCursor
Set cursor to the position of this field with line offset and the character offset. If line offset is larger than field height, search for continue field.- Returns:
- false if cursor cannot be set or if line is invalid.
setCursor
Set cursor to the position of this field, first line.- Returns:
- false if cursor cannot be set in the host session.
setCursor
Set cursor to the position of this field, first line.- Returns:
- false if cursor cannot be set in the host session.
setHostField
Sets the corresponding host field on the current host screen to the specified string.- Returns:
- null for success, otherwise an error message.
setHostField
Sets the corresponding host field on the current host screen to the specified string.- Returns:
- null for success, otherwise an error message.
setHostField
Sets the corresponding host field on the current host screen to the specified string.The line number indicates the Y offset in the Phantom Host Field.
- Returns:
- null for success, otherwise an error message.
getHiddenHostFieldColumn
Gets an array of all host field cells in a column. This is typically used with list boxes and business graphics.- Returns:
- null if the host session is not the current one.
getHostFieldColumn
Gets an array of all host field cells in a column. This is typically used with list boxes and business graphics.- Returns:
- null if the host session is not the current one.
getHostFieldColumn
Gets an array of all host field cells in a column. This is typically used with list boxes and business graphics.- Returns:
- null if the host session is not the current one.
hasRelateVirtualSpaceConnection
public boolean hasRelateVirtualSpaceConnection()Checks for connection to VS.getVSRelativeReference
Gets the relative VS connection.getFieldClassReference
Gets the class reference for the field processing used to getting/setting host field and providing conversion/mapping/translation support. The class implements theIHostFieldDatainterface.- Returns:
- The ClassReference, or null for none.
getIHostFieldData
Gets the IHostFieldData instance.The instance is created if one is present.
- Returns:
- The IHostFieldData instance or null for none.
getCurrentHostSession
Gets the current host session from the Application properties.- Parameters:
logMsg- Message to prepend an error in the host session, null to avoid logging.- Returns:
- The current host session, or null for none (always null when not running in Server or Server Development modes).
getVSComponentReferenceClasses
Gets the possible component classes for the references, i.e. combination of VSTable, VSColumnHeader, VSField.- Specified by:
getVSComponentReferenceClassesin interfaceIVSComponentReferenceProvider- Parameters:
ref- The reference holder.- Returns:
- An array of the valid classes.
isVSComponentReferenceValid
Validates the VS component reference that has been looked up when the reference property doesn't exist.- Specified by:
isVSComponentReferenceValidin interfaceIVSComponentReferenceProvider- Parameters:
refAtom- The reference holder's atom.component- The VS component to validate.- Returns:
- true if valid, false otherwise.
getReferenceType
Gets the reference Type.- Specified by:
getReferenceTypein interfaceIVSComponentReferenceProvider- Parameters:
ref- The reference holder.- Returns:
- The reference type, generally a value from the enum
IPropReference.RefType, otherwise a static final implementation of the reference type with locale support. Returns e.g.RefType.VSFieldorRefType.VSTable.
getVSComponentReference
Gets the VSComponentReference.- Returns:
- The reference instance, or null for none.
getBestVSFieldValueType
Requests the value type that would best suit the listener.- Specified by:
getBestVSFieldValueTypein interfaceIVSFieldListener- Parameters:
reference- The VSRelativeReference instance holding the reference.- Returns:
- null if none is available.
getVSField
Gets the VS Field connected to the screen field.- Returns:
- The field, or null for none.
onResolved
Called when the property reference has been resolved. UI components use this method to set its state according to the field.- Specified by:
onResolvedin interfaceIVSFieldListener- Parameters:
reference- The VSRelativeReference instance holding the reference.field- The target reference.
onBroken
Called when the property reference has been broken, i.e. unresolved.- Specified by:
onBrokenin interfaceIVSFieldListener- Parameters:
reference- The VSRelativeReference instance holding the reference.field- The target reference.
onStateChanged
Called when the field changes state.- Specified by:
onStateChangedin interfaceIVSFieldListener- Parameters:
field- The VS field.state- The state change.on- New state.
onValueChanged
public void onValueChanged(VSField field, Value value, GProp<?> trigger, IPostEventProcessing postProcessing) Called when the field value is set.- Specified by:
onValueChangedin interfaceIVSFieldListener- Parameters:
field- The VS field.value- The value, never null, butvalue.isNull()could be true.trigger- The trigger property that may be null.postProcessing- Post-processing instance.
getBestVSColumnHeaderValueType
Requests the value type that would best suit the listener.- Specified by:
getBestVSColumnHeaderValueTypein interfaceIVSColumnBestValueListener- Parameters:
reference- The VSRelativeReference instance holding the reference.- Returns:
- null if none is available.
getVSColumnHeader
Gets the VS Column Header connected to the screen field.- Returns:
- The column header, or null for none.
onResolved
Called when the property reference has been resolved. UI components use this method to set its state according to the field.- Specified by:
onResolvedin interfaceIVSColumnListener- Parameters:
reference- The VSRelativeReference instance holding the reference.column- The target reference.
onBroken
Called when the property reference has been broken, i.e. unresolved.- Specified by:
onBrokenin interfaceIVSColumnListener- Parameters:
reference- The VSRelativeReference instance holding the reference.column- The target reference.
onStateChanged
Called when the table changes state.- Specified by:
onStateChangedin interfaceIVSColumnListener- Parameters:
table- The VS table column.state- The state change.on- New state.
onParentStateChanged
Called when the column changes state.- Specified by:
onParentStateChangedin interfaceIVSComponentListener- Parameters:
parent- The parent who's state was changed.state- The state change, possible values PARENT_ENABLED, PARENT_READONLY, PARENT_VISIBLE.on- New state.
onSingleSelectionChanged
Called when the row selection in table single-selection mode is changed to forward to column listeners.- Specified by:
onSingleSelectionChangedin interfaceIVSColumnListener- Parameters:
column- The column.rowIndex- The row index selected, -1 for none.
onSelectionChanged
Called when the row selection is changed to forward to column listeners.- Specified by:
onSelectionChangedin interfaceIVSColumnListener- Parameters:
column- The column.row- The row that was changed.rowIndex- The row index.isSelected- The selected state.
onRowAdded
Called when a row has been added to the table.- Specified by:
onRowAddedin interfaceIVSColumnListener- Parameters:
column- The column.row- The row that was added.rowIndex- The row index where it was inserted.
onRowRemoved
Called when a row has been removed from the table.- Specified by:
onRowRemovedin interfaceIVSColumnListener- Parameters:
column- The column.row- The row that was removed.rowIndex- The row index before removal.
onStateChanged
public void onStateChanged(VSColumnHeader column, VSField cell, IVSComponentState.State state, boolean on) Called when a cell in the column changes state.- Specified by:
onStateChangedin interfaceIVSColumnListener- Parameters:
column- The VS column.cell- The VS field.state- The state change.on- New state.
onCellValueChanged
public void onCellValueChanged(VSColumnHeader column, VSField cell, Value value, GProp<?> trigger, IPostEventProcessing postProcessing) Called when the cell value is set in the column.- Specified by:
onCellValueChangedin interfaceIVSColumnListener- Parameters:
column- The VS column.cell- The VS field.value- The value, never null, butvalue.isNull()could be true.trigger- The trigger property that may be null.postProcessing- Post-processing instance.