Class ScreenIdentificationProp

    • Field Detail

      • NAME_TYPE

        public static final java.lang.String NAME_TYPE
        The property name for "type" of identification.
        See Also:
        Constant Field Values
      • NAME_MATCH

        public static final java.lang.String NAME_MATCH
        The property name for "match" data string.
        See Also:
        Constant Field Values
      • ID_EXACT

        public static final int ID_EXACT
        Identification type: Exact Rectangle contents.
        See Also:
        Constant Field Values
      • ID_ALPHA

        public static final int ID_ALPHA
        Identification type: Alphanumeric.
        See Also:
        Constant Field Values
      • ID_ALPHANOSPACE

        public static final int ID_ALPHANOSPACE
        Identification type: Alphanumeric Without Space.
        See Also:
        Constant Field Values
      • ID_VALUE

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

        public static final int ID_NOSPACE
        Identification type: No Space.
        See Also:
        Constant Field Values
      • ID_FIELDLEN

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

        public static final int ID_NOTEXACT
        Identification type: Not rectangle contents.
        See Also:
        Constant Field Values
      • ID_NOTPOPUPWIN

        public static final int ID_NOTPOPUPWIN
        Identification type: Not pop-up window.
        See Also:
        Constant Field Values
      • TYPES

        public static final java.lang.String[] TYPES
        The types.
    • Constructor Detail

      • ScreenIdentificationProp

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

        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 Detail

      • getTypeDescription

        public static java.lang.String getTypeDescription​(int type)
        Gets the type string for an identification type.
        Parameters:
        type - The identification type as ID_* value.
        Returns:
        A descriptive text.
      • 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

        public java.lang.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

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

        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

        public static boolean isMatchingLax​(int type,
                                            java.lang.String data,
                                            int x,
                                            int y,
                                            int cx,
                                            int cy,
                                            HostScreen screen,
                                            int xOffset,
                                            int yOffset)
        Checks if this identification matches the host screen.