Class ScreenIdentificationProp

java.lang.Object
com.iizix.prop.GProp<GProp<?>[]>
com.iizix.prop.PropCnr
com.iizix.term.prop.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 Details Link icon

    • NAME_TYPE Link icon

      public static final String NAME_TYPE
      The property name for "type" of identification.
      See Also:
    • NAME_MATCH Link icon

      public static final String NAME_MATCH
      The property name for "match" data string.
      See Also:
    • ID_EXACT Link icon

      public static final int ID_EXACT
      Identification type: Exact Rectangle contents.
      See Also:
    • ID_ALPHA Link icon

      public static final int ID_ALPHA
      Identification type: Alphanumeric.
      See Also:
    • ID_ALPHANOSPACE Link icon

      public static final int ID_ALPHANOSPACE
      Identification type: Alphanumeric Without Space.
      See Also:
    • ID_NUM Link icon

      public static final int ID_NUM
      Identification type: Numeric (0-9).
      See Also:
    • ID_VALUE Link icon

      public static final int ID_VALUE
      Identification type: Numeric (0-9, +-,.:).
      See Also:
    • ID_NOSPACE Link icon

      public static final int ID_NOSPACE
      Identification type: No Space.
      See Also:
    • ID_SPACE Link icon

      public static final int ID_SPACE
      Identification type: Only Space.
      See Also:
    • ID_FIELDLEN Link icon

      public static final int ID_FIELDLEN
      Identification type: Field: same position and length.
      See Also:
    • ID_NOTEXACT Link icon

      public static final int ID_NOTEXACT
      Identification type: Not rectangle contents.
      See Also:
    • ID_NOTPOPUPWIN Link icon

      public static final int ID_NOTPOPUPWIN
      Identification type: Not pop-up window.
      See Also:
    • TYPES Link icon

      public static final String[] TYPES
      The types.
  • Constructor Details Link icon

    • ScreenIdentificationProp Link icon

      public ScreenIdentificationProp()
      Creates the screen identification property container without a name. The name must be set in all cases using the setPropertyAtom call.
    • ScreenIdentificationProp Link icon

      public ScreenIdentificationProp(Atom propertyAtom)
      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 Link icon

    • getTypeDescription Link icon

      public static String getTypeDescription(int type)
      Gets the type string for an identification type.
      Parameters:
      type - The identification type as ID_* value.
      Returns:
      A descriptive text.
    • usesPropIndex Link icon

      public boolean usesPropIndex()
      This property is index based.
      Specified by:
      usesPropIndex in interface IPropCnr
      Overrides:
      usesPropIndex in class PropCnr
      Returns:
      true.
    • updateCachedValues Link icon

      protected void updateCachedValues()
      Updates the cached values.
    • getX Link icon

      public int getX()
      Gets the X position.
      Returns:
      X, zero based.
    • getY Link icon

      public int getY()
      Gets the Y position.
      Returns:
      Y, zero based.
    • getCX Link icon

      public int getCX()
      Gets the width.
      Returns:
      Character width.
    • getCY Link icon

      public int getCY()
      Gets the height.
      Returns:
      Character height.
    • getType Link icon

      public int getType()
      Gets the type.
      Returns:
      Value for the identification type ID_*.
    • getMatchString Link icon

      public String 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 Link icon

      public void setMatchString(String data)
      Sets the matching string for this identification.
      Parameters:
      data - Match string, not null.
    • isMatching Link icon

      public boolean isMatching(HostScreen screen, int xOffset, int yOffset)
      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 Link icon

      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 Link icon

      public int compareTo(ScreenIdentificationProp id)
      Compares two screen identifications by type then rectangle positions and then size.
      Specified by:
      compareTo in interface Comparable<ScreenIdentificationProp>