com.hp.lft.sdk.java

Class UiObjectBaseDescription

    • Constructor Detail

      • UiObjectBaseDescription

        public UiObjectBaseDescription()
        Constructs a new instance of UiObjectDescriptionBase.
      • UiObjectBaseDescription

        protected UiObjectBaseDescription(UiObjectBaseDescription.Init<?> init)
        Initializes a new instance of the UiObjectBaseDescription class using the Builder pattern.
        Parameters:
        init - the Builder pattern.
    • Method Detail

      • setAttachedText

        public void setAttachedText(java.lang.String attachedText)
        Sets the static text that is attached to an object.
        Parameters:
        attachedText - static text that is attached to an object.
      • getAttachedText

        public StringProperty getAttachedText()
        Returns static text that is attached to an object.
        Returns:
        static text that is attached to an object.
      • setForegroundColor

        public void setForegroundColor(java.lang.String color)
        Sets the object's foreground color.
        Parameters:
        color - object's foreground color.
      • getForegroundColor

        public StringProperty getForegroundColor()
        Returns the object's foreground color.
        Returns:
        the object's foreground color.
      • setBackgroundColor

        public void setBackgroundColor(java.lang.String color)
        Sets the object's background color.
        Parameters:
        color - object's background color.
      • getBackgroundColor

        public StringProperty getBackgroundColor()
        Returns the object's background color.
        Returns:
        the object's background color.
      • setObjectName

        public void setObjectName(java.lang.String name)
        Sets the test object description's ObjectName property.
        Parameters:
        name - the ObjectName property.
      • getObjectName

        public StringProperty getObjectName()
        Returns the test object's ObjectName. Given the statement "Editbox newEditBox = new Editbox(0,0)", the default test object name is "newEditBox". The default test object name can be overridden using setObjectName(java.lang.String).
        Returns:
        the instance variable name.
      • setEnabled

        public void setEnabled(java.lang.Boolean isEnabled)
        Sets whether the object is enabled.
        Parameters:
        isEnabled - true if enabled.
      • isEnabled

        public java.lang.Boolean isEnabled()
        Indicates whether the object is enabled.
        Returns:
        true if enabled.
      • setFocused

        public void setFocused(java.lang.Boolean isFocused)
        Sets whether the object has focus.
        Parameters:
        isFocused - true if has focus.
      • isFocused

        public java.lang.Boolean isFocused()
        Indicates whether the object has focus.
        Returns:
        true if has focus.
      • setVisible

        public void setVisible(java.lang.Boolean isVisible)
        Sets the object is visible.
        Parameters:
        isVisible - true to make visible.
      • isVisible

        public java.lang.Boolean isVisible()
        Indicates whether the object is visible.
        Returns:
        true, if visible.
      • setLabel

        public void setLabel(java.lang.String label)
        Sets the test object's label.
        Parameters:
        label - the test object's label.
      • getLabel

        public StringProperty getLabel()
        Returns the test object's label.
        Returns:
        the test object's label.
      • setPath

        public void setPath(java.lang.String path)
        Sets the object's hierarchy (object ancestors).
        Parameters:
        path - the object's hierarchy (object ancestors).
      • getPath

        public StringProperty getPath()
        Returns the object's hierarchy (object ancestors).
        Returns:
        the object's hierarchy (object ancestors).
      • setTagName

        public void setTagName(java.lang.String tagName)
        Sets the test object's name.
        Parameters:
        tagName - the test object's name.
      • getTagName

        public StringProperty getTagName()
        Returns the test object's name.
        Returns:
        the test object's name.
      • setNativeClass

        public void setNativeClass(java.lang.String nativeClass)
        Sets the object's Java class name.
        Parameters:
        nativeClass - the object's Java class name.
      • getNativeClass

        public StringProperty getNativeClass()
        Returns the object's Java class name.
        Returns:
        the object's Java class name.
      • setLocation

        public void setLocation(LocationProperty location)
        Sets the object's coordinates in pixels relative to the parent window.
        Parameters:
        location - the coordinates relative to the parent window.
      • setLocation

        public void setLocation(java.lang.Integer x,
                                java.lang.Integer y)
        Sets the object's coordinates in pixels relative to the parent window.
        Parameters:
        x - in pixels.
        y - in pixels.
      • setLocation

        public void setLocation(java.awt.Point location)
        Sets the object's coordinates in pixels relative to the parent window.
        Parameters:
        location - the coordinates relative to the parent window.
      • getLocation

        public LocationProperty getLocation()
        Returns the object's coordinates in pixels relative to the parent window.
        Returns:
        the coordinates relative to the parent window.
      • setAbsoluteLocation

        public void setAbsoluteLocation(LocationProperty absLocation)
        Sets the object's coordinates in pixels relative to the screen. 0,0 is the top-left corner of the primary monitor.

        In a virtual device multi-screen environment in which the desktop area could span multiple physical screen devices, this coordinate is relative to the virtual coordinate system. Otherwise, this coordinate is relative to the coordinate system associated with the Component's GraphicsConfiguration.

        Parameters:
        absLocation - the coordinates relative to the screen.
      • setAbsoluteLocation

        public void setAbsoluteLocation(java.lang.Integer absX,
                                        java.lang.Integer absY)
        Sets the object's coordinates in pixels relative to the screen. 0,0 is the top-left corner of the primary monitor.

        In a virtual device multi-screen environment in which the desktop area could span multiple physical screen devices, this coordinate is relative to the virtual coordinate system. Otherwise, this coordinate is relative to the coordinate system associated with the Component's GraphicsConfiguration.

        Parameters:
        absX - in pixels.
        absY - in pixels.
      • setAbsoluteLocation

        public void setAbsoluteLocation(java.awt.Point absLocation)
        Sets the object's coordinates in pixels relative to the screen. 0,0 is the top-left corner of the primary monitor.
        Parameters:
        absLocation - the coordinates relative to the screen.
      • getAbsoluteLocation

        public LocationProperty getAbsoluteLocation()
        Returns the object's coordinates in pixels relative to the screen.

        In a virtual device multi-screen environment in which the desktop area could span multiple physical screen devices, this coordinate is relative to the virtual coordinate system. Otherwise, this coordinate is relative to the coordinate system associated with the Component's GraphicsConfiguration.

        Returns:
        the coordinates relative to the screen.
      • setSize

        public void setSize(SizeProperty size)
        Sets the test object's size in pixels.
        Parameters:
        size - the size.
      • setSize

        public void setSize(java.awt.Dimension size)
        Sets the test object's size in pixels.
        Parameters:
        size - the size.
      • setSize

        public void setSize(java.lang.Integer width,
                            java.lang.Integer height)
        Sets the test object's size in pixels.
        Parameters:
        width - in pixels.
        height - in pixels.
      • getSize

        public SizeProperty getSize()
        Returns the test object's size in pixels.
        Returns:
        the size.