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

java.lang.Object
com.hp.lft.sdk.DescriptionBase.Init<T>
com.hp.lft.sdk.java.UiObjectBaseDescription.Init<T>
Direct Known Subclasses:
AppletDescription.Init, ButtonDescription.Init, CalendarDescription.Init, CheckBoxDescription.Init, EditorDescription.Init, ExpandBarDescription.Init, LabelDescription.Init, LinkDescription.Init, ListDescription.Init, MenuDescription.Init, RadioButtonDescription.Init, SliderDescription.Init, SpinBoxDescription.Init, TabControlDescription.Init, TableDescription.Init, ToolBarDescription.Init, TreeViewDescription.Init, TreeViewTableDescription.Init, UiObjectDescription.Init, WindowDescription.Init
Enclosing class:
UiObjectBaseDescription

protected abstract static class UiObjectBaseDescription.Init<T extends UiObjectBaseDescription.Init<T>> extends DescriptionBase.Init<T>
Helper class for derived Builder classes.
  • Constructor Details

    • Init

      protected Init()
  • Method Details

    • nativeClass

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

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

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

      public T tagName(String tagName)
      Initializes test object's name.
      Parameters:
      tagName - test object's name.
      Returns:
      the description instance with the update state (builder pattern).
    • label

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

      public T label(String label)
      Initializes object's label.
      Parameters:
      label - object's label.
      Returns:
      the description instance with the update state (builder pattern).
    • path

      public T path(StringProperty path)
      Initializes the object's hierarchy (object ancestors).
      Parameters:
      path - a StringProperty or RegExpProperty.
      Returns:
      the description instance with the update state (builder pattern).
    • path

      public T path(String path)
      Initializes the object's hierarchy (object ancestors).
      Parameters:
      path - the object's hierarchy (object ancestors).
      Returns:
      the description instance with the update state (builder pattern).
    • objectName

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

      public T objectName(String objectName)
      Initializes object's internal name.
      Parameters:
      objectName - object's internal name.
      Returns:
      the description instance with the update state (builder pattern).
    • attachedText

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

      public T attachedText(String attachedText)
      Initializes the static text that is attached to an object.
      Parameters:
      attachedText - the static text that is attached to an object.
      Returns:
      the description instance with the update state (builder pattern).
    • backgroundColor

      public T backgroundColor(String backgroundColor)
      Initializes the object's background color.
      Parameters:
      backgroundColor - the object's background color.
      Returns:
      the description instance with the update state (builder pattern).
    • backgroundColor

      public T backgroundColor(StringProperty backgroundColor)
      Initializes the object's background color.
      Parameters:
      backgroundColor - a StringProperty or RegExpProperty.
      Returns:
      the description instance with the update state (builder pattern).
    • foregroundColor

      public T foregroundColor(String foregroundColor)
      Initializes the object's foreground color.
      Parameters:
      foregroundColor - the object's foreground color.
      Returns:
      the description instance with the update state (builder pattern).
    • foregroundColor

      public T foregroundColor(StringProperty foregroundColor)
      Initializes the object's foreground color.
      Parameters:
      foregroundColor - a StringProperty or RegExpProperty.
      Returns:
      the description instance with the update state (builder pattern).
    • enabled

      public T enabled(Boolean isEnabled)
      Initializes whether this object is enabled.
      Parameters:
      isEnabled - true if enabled.
      Returns:
      the description instance with the update state (builder pattern).
    • focused

      public T focused(Boolean isFocused)
      Initializes whether this object has focus.
      Parameters:
      isFocused - true if has focus.
      Returns:
      the description instance with the update state (builder pattern).
    • visible

      public T visible(Boolean isVisible)
      Initializes whether this object is visible.
      Parameters:
      isVisible - true if visible.
      Returns:
      the description instance with the update state (builder pattern).
    • wrapped

      public T wrapped(Boolean isWrapped)
      Initializes whether this object is wrapped.
      Parameters:
      isWrapped - tr if wrapped.
      Returns:
      the description instance with the update state (builder pattern).
    • location

      public T location(Integer x, Integer y)
      Initializes this object's coordinates in pixels relative to the parent window.
      Parameters:
      x - in pixels.
      y - in pixels.
      Returns:
      the description instance with the update state (builder pattern).
    • location

      public T location(LocationProperty location)
      Initializes this object's coordinates in pixels relative to the parent window.
      Parameters:
      location - the object's coordinates relative to the parent window.
      Returns:
      the description instance with the update state (builder pattern).
    • location

      public T location(Point location)
      Initializes this object's coordinates in pixels relative to the parent window.
      Parameters:
      location - the object's coordinates relative to the parent window.
      Returns:
      the description instance with the update state (builder pattern).
    • absoluteLocation

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

      public T absoluteLocation(LocationProperty absLocation)
      Initializes the object's coordinates in pixels relative to the screen. 0,0 is the top-left corner of the primary monitor.
      Parameters:
      absLocation - the object's coordinates.
      Returns:
      the description instance with the update state (builder pattern).
    • absoluteLocation

      public T absoluteLocation(Point absLocation)
      Initializes the object's coordinates in pixels relative to the screen. 0,0 is the top-left corner of the primary monitor.
      Parameters:
      absLocation - the object's coordinates.
      Returns:
      the description instance with the update state (builder pattern).
    • size

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

      public T size(Integer width, Integer height)
      Initializes the test object's size in pixels.
      Parameters:
      width - in pixels.
      height - in pixels.
      Returns:
      the description instance with the update state (builder pattern).
    • size

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