com.hp.lft.sdk.powerbuilder

Class UiObjectBaseDescription

    • Constructor Detail

      • UiObjectBaseDescription

        public UiObjectBaseDescription()
        Initializes a new instance of the UiObjectBaseDescription class.
      • 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

      • setNativeClass

        public void setNativeClass(String nativeClass)
        Sets the object's window class name.
        Parameters:
        nativeClass - the object's window class name.
      • setNativeClass

        public void setNativeClass(StringProperty nativeClass)
        Sets the object's window class name.
        Parameters:
        nativeClass - a StringProperty (or RegExpProperty) representing the object's window class name.
      • getNativeClass

        public StringProperty getNativeClass()
        Returns the object's window class name.
        Returns:
        the object's window class name.
      • setWindowId

        public void setWindowId(Integer windowId)
        Sets the object's window identifier.
        Parameters:
        windowId - then window ID for this object.
      • getWindowId

        public Integer getWindowId()
        Returns the object's window identifier.
        Returns:
        the object's window identifier.
      • setObjectName

        public void setObjectName(String objectName)
        Sets the object's name as set by the developer.
        Parameters:
        objectName - Sets the object's name as set by the developer.
      • setObjectName

        public void setObjectName(StringProperty objectName)
        Sets the object's name as set by the developer.
        Parameters:
        objectName - the object's name as a StringProperty (or RegExProperty).
      • getObjectName

        public StringProperty getObjectName()
        Returns the object's name as set by the developer.
        Returns:
        the object's name as set by the developer.
      • setAttachedText

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

        public void setAttachedText(StringProperty attachedText)
        Sets the static text that is attached to this object.
        Parameters:
        attachedText - a StringProperty (or RegExpProperty) with the static text attached to this object.
      • getAttachedText

        public StringProperty getAttachedText()
        Returns the static text that is attached to this control.
        Returns:
        the static text that is attached to this control.
      • setEnabled

        public void setEnabled(Boolean isEnabled)
        Sets whether this object is enabled.
        Parameters:
        isEnabled - sets whether this object is enabled.
      • isEnabled

        public Boolean isEnabled()
        Indicates whether this object is enabled.
        Returns:
        true when enabled.
      • setFocused

        public void setFocused(Boolean isFocused)
        Sets whether this object is in focus.
        Parameters:
        isFocused - sets whether this object has focus.
      • isFocused

        public Boolean isFocused()
        Indicates whether this object is in focus.
        Returns:
        true when this object is in focus.
      • setWindowClassRegExp

        public void setWindowClassRegExp(StringProperty windowClassRegExp)
        Sets the permanent part of the MFC window class.
        Parameters:
        windowClassRegExp - a StringProperty (or RegExpProperty) representing the permanent part of the MFC window class.
      • setWindowClassRegExp

        public void setWindowClassRegExp(String windowClassRegExp)
        Sets the permanent part of the MFC window class.
        Parameters:
        windowClassRegExp - the permanent part of the MFC window class.
      • getWindowClassRegExp

        public StringProperty getWindowClassRegExp()
        Returns the permanent part of the MFC window class.
        Returns:
        the permanent part of the MFC window class.
      • setWindowTitleRegExp

        public void setWindowTitleRegExp(StringProperty windowTitleRegExp)
        Sets the constant part of the window title.
        Parameters:
        windowTitleRegExp - a StringProperty (or RegExpProperty) representing the constant part of the window title.
      • setWindowTitleRegExp

        public void setWindowTitleRegExp(String windowTitleRegExp)
        Sets the constant part of the window title.
        Parameters:
        windowTitleRegExp - constant part of the window title.
      • getWindowTitleRegExp

        public StringProperty getWindowTitleRegExp()
        Returns the constant part of the window title.
        Returns:
        the constant part of the window title.
      • setVisible

        public void setVisible(Boolean isVisible)
        Sets the visibility state of the test object.
        Parameters:
        isVisible - the visibility state of the test object.
      • isVisible

        public Boolean isVisible()
        Indicates whether this object is visible.
        Returns:
        true when visible.
      • setText

        public void setText(StringProperty text)
        Sets the text associated with the object.
        Parameters:
        text - the text associated with the object.
      • setText

        public void setText(String text)
        Sets the text associated with the object.
        Parameters:
        text - a StringProperty (or RegExpProperty) representing the text associated with the object.
      • getText

        public StringProperty getText()
        Returns the text associated with the object.
        Returns:
        the text associated with the object.
      • getWindowExtendedStyle

        public Long getWindowExtendedStyle()
        Returns the extended window style of the object as long.
        Returns:
        the extended window style of the object as long.
      • setWindowExtendedStyle

        public void setWindowExtendedStyle(Long windowExtendedStyle)
        Sets the extended window style of the object as long.
        Parameters:
        windowExtendedStyle - the extended window style of the object as long.
      • getWindowStyle

        public Long getWindowStyle()
        Returns the window style of the object as long.
        Returns:
        the window style of the object as long.
      • setWindowStyle

        public void setWindowStyle(Long windowStyles)
        Sets window style of the object as long.
        Parameters:
        windowStyles - window style of the object as long.
      • setLocation

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

        public void setLocation(Integer x,
                                Integer y)
        Sets the object's coordinates relative to the parent window (in pixels).
        Parameters:
        x - the X coordinate of the test object location.
        y - the Y coordinate of the test object location.
      • setLocation

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

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

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

        public void setAbsoluteLocation(Integer absX,
                                        Integer absY)
        Sets the object's absolute coordinates relative to the screen (in pixels). 0,0 is the top-left corner of the (primary) monitor.
        Parameters:
        absX - the absolute X coordinate of the test object location.
        absY - the absolute Y coordinate of the test object location.
      • setAbsoluteLocation

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

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

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

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

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

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