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
FieldsModifier and TypeFieldDescriptionstatic final intIdentification type: Alphanumeric.static final intIdentification type: Alphanumeric Without Space.static final intIdentification type: Exact Rectangle contents.static final intIdentification type: Field: same position and length.static final intIdentification type: No Space.static final intIdentification type: Not rectangle contents.static final intIdentification type: Not pop-up window.static final intIdentification type: Numeric (0-9).static final intIdentification type: Only Space.static final intIdentification type: Numeric (0-9, +-,.:).static final StringThe property name for "match" data string.static final StringThe 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, nameTableFields 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_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 identification property container without a name.ScreenIdentificationProp(Atom propertyAtom) Creates the screen identification property container with the specified name.Method Summary
Modifier and TypeMethodDescriptionintCompares two screen identifications by type then rectangle positions and then size.intgetCX()Gets the width.intgetCY()Gets the height.Gets the matching string for this identification.intgetType()Gets the type.static StringgetTypeDescription(int type) Gets the type string for an identification type.intgetX()Gets the X position.intgetY()Gets the Y position.booleanisMatching(HostScreen screen, int xOffset, int yOffset) Checks if this identification matches the host screen.static booleanisMatchingLax(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.voidsetMatchString(String data) Sets the matching string for this identification.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, 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, isSibling, 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, convertPropError, dispose, equals, equals, equalsErrors, equalsObj, equalsPropValue, equalValues, extendsClone, 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, 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, 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, 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 thesetPropertyAtomcall.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:
usesPropIndexin interfaceIPropCnr- Overrides:
usesPropIndexin 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:
compareToin interfaceComparable<ScreenIdentificationProp>