Package com.iizix.term.prop
Class ScreenIdentificationProp
- All Implemented Interfaces:
EventListener
,IGProp<GProp<?>[]>
,IPropCnr
,Cloneable
,Comparable<ScreenIdentificationProp>
- Direct Known Subclasses:
EditorScreenIdentificationProp
public class ScreenIdentificationProp extends PropCnr implements Comparable<ScreenIdentificationProp>
This Screen identification property container for a terminal host screen.
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identification type: Alphanumeric.static final int
Identification type: Alphanumeric Without Space.static final int
Identification type: Exact Rectangle contents.static final int
Identification type: Field: same position and length.static final int
Identification type: No Space.static final int
Identification type: Not rectangle contents.static final int
Identification type: Not pop-up window.static final int
Identification type: Numeric (0-9).static final int
Identification type: Only Space.static final int
Identification type: Numeric (0-9, +-,.:).static final String
The property name for "match" data string.static final String
The property name for "type" of identification.static final String[]
The types.Fields inherited from class com.iizix.prop.PropCnr
EMPTY, EMPTY_CLASSES, EMPTY_CNRS, EXTENDS_FRAMEWORK_ERROR_ID
Fields 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_2
Fields 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_PRIVATE
Constructor Summary
ConstructorDescriptionCreates the screen identification property container without a name.ScreenIdentificationProp
(Atom propertyAtom) Creates the screen identification property container with the specified name.Method Summary
Modifier and TypeMethodDescriptionint
Compares two screen identifications by type then rectangle positions and then size.int
getCX()
Gets the width.int
getCY()
Gets the height.Gets the matching string for this identification.int
getType()
Gets the type.static String
getTypeDescription
(int type) Gets the type string for an identification type.int
getX()
Gets the X position.int
getY()
Gets the Y position.boolean
isMatching
(HostScreen screen, int xOffset, int yOffset) Checks if this identification matches the host screen.static boolean
isMatchingLax
(int type, String data, int x, int y, int cx, int cy, HostScreen screen, int xOffset, int yOffset) Checks if this identification matches the host screen.void
setMatchString
(String data) Sets the matching string for this identification.protected void
Updates the cached values.boolean
This property is index based.Methods inherited from class com.iizix.prop.PropCnr
__transferChildProps, addPredefinedProps, addProp, addProp, addProp2, addProp2, appendPropValue, canRequestFocus, clone, 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, virtualize
Methods 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, warning
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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, warning
Methods inherited from interface com.iizix.prop.IPropCnr
canRequestFocus, canRequestFocus, couldRequestFocusIfVirtualized, couldRequestFocusIfVirtualized
Field Details
NAME_TYPE
The property name for "type" of identification.- See Also:
NAME_MATCH
The property name for "match" data string.- See Also:
ID_EXACT
public static final int ID_EXACTIdentification type: Exact Rectangle contents.- See Also:
ID_ALPHA
public static final int ID_ALPHAIdentification type: Alphanumeric.- See Also:
ID_ALPHANOSPACE
public static final int ID_ALPHANOSPACEIdentification type: Alphanumeric Without Space.- See Also:
ID_NUM
public static final int ID_NUMIdentification type: Numeric (0-9).- See Also:
ID_VALUE
public static final int ID_VALUEIdentification type: Numeric (0-9, +-,.:).- See Also:
ID_NOSPACE
public static final int ID_NOSPACEIdentification type: No Space.- See Also:
ID_SPACE
public static final int ID_SPACEIdentification type: Only Space.- See Also:
ID_FIELDLEN
public static final int ID_FIELDLENIdentification type: Field: same position and length.- See Also:
ID_NOTEXACT
public static final int ID_NOTEXACTIdentification type: Not rectangle contents.- See Also:
ID_NOTPOPUPWIN
public static final int ID_NOTPOPUPWINIdentification type: Not pop-up window.- See Also:
TYPES
The types.
Constructor Details
ScreenIdentificationProp
public ScreenIdentificationProp()Creates the screen identification property container without a name. The name must be set in all cases using thesetPropertyAtom
call.ScreenIdentificationProp
Creates the screen identification 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
getTypeDescription
Gets the type string for an identification type.- Parameters:
type
- The identification type as ID_* value.- Returns:
- A descriptive text.
usesPropIndex
public boolean usesPropIndex()This property is index based.- Specified by:
usesPropIndex
in interfaceIPropCnr
- Overrides:
usesPropIndex
in classPropCnr
- Returns:
- true.
updateCachedValues
protected void updateCachedValues()Updates the cached values.getX
public int getX()Gets the X position.- Returns:
- X, zero based.
getY
public int getY()Gets the Y position.- Returns:
- Y, zero based.
getCX
public int getCX()Gets the width.- Returns:
- Character width.
getCY
public int getCY()Gets the height.- Returns:
- Character height.
getType
public int getType()Gets the type.- Returns:
- Value for the identification type ID_*.
getMatchString
Gets the matching string for this identification. It should not be called if the type is not ID_EXACT or ID_NOTEXACT, otherwise the string returned is null.- Returns:
- The match string or null for ID_EXACT or ID_NOTEXACT.
setMatchString
Sets the matching string for this identification.- Parameters:
data
- Match string, not null.
isMatching
Checks if this identification matches the host screen.- Parameters:
screen
- The screen.xOffset
- Offset on screen for pop-up window, zero-based.yOffset
- Offset on screen for pop-up window, zero-based.- Returns:
- Match flag.
isMatchingLax
public static boolean isMatchingLax(int type, String data, int x, int y, int cx, int cy, HostScreen screen, int xOffset, int yOffset) Checks if this identification matches the host screen.compareTo
Compares two screen identifications by type then rectangle positions and then size.- Specified by:
compareTo
in interfaceComparable<ScreenIdentificationProp>