Share this page

com.hp.lft.sdk.java

# 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 Summary

    Modifier | Constructor and Description
    --- | ---
    `protected` | `Init()`

  - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `T` | `absoluteLocation(java.lang.Integer absX, java.lang.Integer absY)` Initializes the object's coordinates in pixels relative to the screen.
    `T` | `absoluteLocation(LocationProperty absLocation)` Initializes the object's coordinates in pixels relative to the screen.
    `T` | `absoluteLocation(java.awt.Point absLocation)` Initializes the object's coordinates in pixels relative to the screen.
    `T` | `attachedText(java.lang.String attachedText)` Initializes the static text that is attached to an object.
    `T` | `attachedText(StringProperty attachedText)` Initializes the static text that is attached to an object.
    `T` | `backgroundColor(java.lang.String backgroundColor)` Initializes the object's background color.
    `T` | `backgroundColor(StringProperty backgroundColor)` Initializes the object's background color.
    `T` | `enabled(java.lang.Boolean isEnabled)` Initializes whether this object is enabled.
    `T` | `focused(java.lang.Boolean isFocused)` Initializes whether this object has focus.
    `T` | `foregroundColor(java.lang.String foregroundColor)` Initializes the object's foreground color.
    `T` | `foregroundColor(StringProperty foregroundColor)` Initializes the object's foreground color.
    `T` | `label(java.lang.String label)` Initializes object's label.
    `T` | `label(StringProperty label)` Initializes object's label.
    `T` | `location(java.lang.Integer x, java.lang.Integer y)` Initializes this object's coordinates in pixels relative to the parent window.
    `T` | `location(LocationProperty location)` Initializes this object's coordinates in pixels relative to the parent window.
    `T` | `location(java.awt.Point location)` Initializes this object's coordinates in pixels relative to the parent window.
    `T` | `nativeClass(java.lang.String nativeClass)` Initializes object's Java class name.
    `T` | `nativeClass(StringProperty nativeClass)` Initializes object's Java class name.
    `T` | `objectName(java.lang.String objectName)` Initializes object's internal name.
    `T` | `objectName(StringProperty objectName)` Initializes object's internal name.
    `T` | `objectProperties(java.util.Map<java.lang.String,java.lang.Object> objectProperties)` Initializes the concrete test object properties, including custom properties created by the developer of the control.
    `T` | `path(java.lang.String path)` Initializes the object's hierarchy (object ancestors).
    `T` | `path(StringProperty path)` Initializes the object's hierarchy (object ancestors).
    `T` | `size(java.awt.Dimension size)` Initializes the test object's size in pixels.
    `T` | `size(java.lang.Integer width, java.lang.Integer height)` Initializes the test object's size in pixels.
    `T` | `size(SizeProperty size)` Initializes the test object's size in pixels.
    `T` | `tagName(java.lang.String tagName)` Initializes test object's name.
    `T` | `tagName(StringProperty tagName)` Initializes test object's name.
    `T` | `visible(java.lang.Boolean isVisible)` Initializes whether this object is visible.
    `T` | `wrapped(java.lang.Boolean isWrapped)` Initializes whether this object is wrapped.

    - ### Methods inherited from class com.hp.lft.sdk.DescriptionBase.Init

      `build, index, self, vri, vri`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Init

          protected Init()

  - ### Method Detail

    - #### 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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.String objectName)

      Initializes object's internal name.
      Parameters:
        `objectName` - object's internal name.
      Returns:
        the description instance with the update state (builder pattern).

    - #### objectProperties

          public T objectProperties(java.util.Map<java.lang.String,java.lang.Object> objectProperties)

      Initializes the concrete test object properties, including custom properties created by the developer of the control.
      Parameters:
        `objectProperties` - the concrete test object properties, including custom properties created by the developer of the control.
      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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.Boolean isFocused)

      Initializes whether this object has focus.
      Parameters:
        `isFocused` - true if has focus.
      Returns:
        the description instance with the update state (builder pattern).

    - #### wrapped

          public T wrapped(java.lang.Boolean isWrapped)

      Initializes whether this object is wrapped.
      Parameters:
        `isWrapped` - true if wrapped.
      Returns:
        the description instance with the update state (builder pattern).

    - #### visible

          public T visible(java.lang.Boolean isVisible)

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

    - #### location

          public T location(java.lang.Integer x,
                            java.lang.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(java.awt.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(java.lang.Integer absX,
                                    java.lang.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(java.awt.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(java.lang.Integer width,
                        java.lang.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(java.awt.Dimension size)

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

Tips to improve your search results... UFT Developer Java SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: