com.hp.lft.sdk.powerbuilder

Class UiObjectBaseDescription.Init<T extends UiObjectBaseDescription.Init<T>>

    • Constructor Detail

      • Init

        protected Init()
    • Method Detail

      • nativeClass

        public T nativeClass(StringProperty nativeClass)
        Initializes the object's window class name.
        Parameters:
        nativeClass - a StringProperty (or RegExpProperty) representing the object's window class name.
        Returns:
        the description instance with the update state (builder pattern).
      • nativeClass

        public T nativeClass(String nativeClass)
        Sets the object's window class name.
        Parameters:
        nativeClass - the object's window class name.
        Returns:
        the description instance with the update state (builder pattern).
      • windowId

        public T windowId(Integer windowId)
        Sets the object's window identifier.
        Parameters:
        windowId - object's window identifier.
        Returns:
        the description instance with the update state (builder pattern).
      • objectName

        public T objectName(StringProperty objectName)
        Sets the object's name as set by the developer.
        Parameters:
        objectName - a StringProperty (or RegExpProperty) representing the object's name as set by the developer.
        Returns:
        the description instance with the update state (builder pattern).
      • objectName

        public T objectName(String objectName)
        Sets the object's name as set by the developer.
        Parameters:
        objectName - the object's name as set by the developer.
        Returns:
        the description instance with the update state (builder pattern).
      • attachedText

        public T attachedText(StringProperty attachedText)
        Sets the static text that is attached to this object.
        Parameters:
        attachedText - a StringProperty (or RegExpProperty) representing the static text that is attached to a control.
        Returns:
        the description instance with the update state (builder pattern).
      • attachedText

        public T attachedText(String attachedText)
        Sets the static text that is attached to this object.
        Parameters:
        attachedText - the static text that is attached to a control.
        Returns:
        the description instance with the update state (builder pattern).
      • enabled

        public T enabled(Boolean isEnabled)
        Sets whether the current object is enabled.
        Parameters:
        isEnabled - sets whether the current object is enabled.
        Returns:
        the description instance with the update state (builder pattern).
      • focused

        public T focused(Boolean isFocused)
        Sets whether the current object is focused.
        Parameters:
        isFocused - the indication whether the current object is focused.
        Returns:
        the description instance with the update state (builder pattern).
      • windowClassRegExp

        public T windowClassRegExp(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.
        Returns:
        the description instance with the update state (builder pattern).
      • windowClassRegExp

        public T windowClassRegExp(String windowClassRegExp)
        Sets the permanent part of the MFC window class.
        Parameters:
        windowClassRegExp - the permanent part of the MFC window class.
        Returns:
        the description instance with the update state (builder pattern).
      • windowTitleRegExp

        public T windowTitleRegExp(StringProperty windowTitleRegExp)
        Sets the permanent part of the constant part of the window title.
        Parameters:
        windowTitleRegExp - a StringProperty (or RegExpProperty) representing the constant part of the window title.
        Returns:
        the description instance with the update state (builder pattern).
      • windowTitleRegExp

        public T windowTitleRegExp(String windowTitleRegExp)
        Sets the permanent part of the constant part of the window title.
        Parameters:
        windowTitleRegExp - the constant part of the window title.
        Returns:
        the description instance with the update state (builder pattern).
      • visible

        public T visible(Boolean isVisible)
        Sets whether the current element is visible.
        Parameters:
        isVisible - sets whether the current element is visible.
        Returns:
        the description instance with the update state (builder pattern).
      • text

        public T text(StringProperty text)
        Sets the permanent part of the text associated with the object.
        Parameters:
        text - a StringProperty (or RegExpProperty) representing text associated with the object.
        Returns:
        the description instance with the update state (builder pattern).
      • text

        public T text(String text)
        Sets the permanent part of the text associated with the object.
        Parameters:
        text - the text associated with the object.
        Returns:
        the description instance with the update state (builder pattern).
      • windowExtendedStyle

        public T windowExtendedStyle(Long windowExtendedStyle)
        Sets the extended window style of the object as long.
        Note: the two windowExtendedStyle overloads are mutually exclusive, using both causes a runtime exception.
        Parameters:
        windowExtendedStyle - the extended window style of the object as long.
        Returns:
        the extended window style of the object.
      • windowStyle

        public T windowStyle(Long windowStyle)
        Sets the window style of the object as long.
        Note: the two windowStyle overloads are mutually exclusive, using both causes a runtime exception.
        Parameters:
        windowStyle - the window style of the object as long.
        Returns:
        the window style of the object.
      • location

        public T location(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.
        Returns:
        the description instance with the update state (builder pattern).
      • location

        public T location(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).
        Returns:
        the description instance with the update state (builder pattern).
      • location

        public T location(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).
        Returns:
        the description instance with the update state (builder pattern).
      • absoluteLocation

        public T absoluteLocation(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.
        Returns:
        the description instance with the update state (builder pattern).
      • absoluteLocation

        public T absoluteLocation(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).
        Returns:
        the description instance with the update state (builder pattern).
      • absoluteLocation

        public T absoluteLocation(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).
        Returns:
        the description instance with the update state (builder pattern).
      • size

        public T size(SizeProperty size)
        Sets the test object's size (in pixels).
        Parameters:
        size - the test object's size (in pixels).
        Returns:
        the description instance with the update state (builder pattern).
      • size

        public T size(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).
        Returns:
        the description instance with the update state (builder pattern).
      • size

        public T size(Dimension size)
        Sets the test object's size (in pixels).
        Parameters:
        size - the test object's size (in pixels).
        Returns:
        the description instance with the update state (builder pattern).