Share this page

com.hp.lft.sdk.sap.gui

## Class ElementDescription.Init<T extends ElementDescription.Init<T>>

- java.lang.Object
- - com.hp.lft.sdk.DescriptionBase.Init<T>
  - - com.hp.lft.sdk.sap.gui.ElementDescription.Init<T>

- Direct Known Subclasses:
    ButtonDescription.Init, CalendarDescription.Init, CheckBoxDescription.Init, ComboBoxDescription.Init, EditFieldDescription.Init, EditorDescription.Init, ElementDescription.Builder, LabelDescription.Init, MenubarDescription.Init, OKCodeDescription.Init, RadioButtonDescription.Init, StatusBarDescription.Init, TabControlDescription.Init, TableBaseDescription.Init, ToolBarDescription.Init, TreeViewDescription.Init, WindowDescription.Init
  Enclosing class:
    ElementDescription

      protected abstract static class ElementDescription.Init<T extends ElementDescription.Init<T>>
      extends DescriptionBase.Init<T>

  Helper class for ElementDescription.Builder.

- - ### 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 element's coordinates in pixels relative to the screen.
    `T` | `absoluteLocation(LocationProperty absLocation)` Initializes the element's coordinates in pixels relative to the screen.
    `T` | `absoluteLocation(java.awt.Point absLocation)` Initializes the element's coordinates in pixels relative to the screen.
    `ElementDescription` | `build()` Returns the built description instance (builder pattern).
    `T` | `id(java.lang.String id)` Initializes the element's unique identifier in text format.
    `T` | `id(StringProperty id)` Initializes the element's unique identifier in text format.
    `T` | `location(java.lang.Integer x, java.lang.Integer y)` Initializes this element's coordinates in pixels relative to the parent window.
    `T` | `location(LocationProperty location)` Initializes this element's coordinates in pixels relative to the parent window.
    `T` | `location(java.awt.Point location)` Initializes this element's coordinates in pixels relative to the parent window.
    `T` | `name(java.lang.String name)` Initializes the name of the element.
    `T` | `name(StringProperty name)` Initializes the name of the element.
    `T` | `size(java.awt.Dimension size)` Initializes the test element's size in pixels.
    `T` | `size(java.lang.Integer width, java.lang.Integer height)` Initializes the test element's size in pixels.
    `T` | `size(SizeProperty size)` Initializes the test element's size in pixels.
    `T` | `type(ComponentType type)` Initializes the GUI component type.

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

      `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

    - #### build

          public ElementDescription build()

      Description copied from class: `DescriptionBase.Init`
      Returns the built description instance (builder pattern).
      Overrides:
        `build` in class `DescriptionBase.Init<T extends ElementDescription.Init<T>>`
      Returns:
        The built description instance (builder pattern).

    - #### type

          public T type(ComponentType type)

      Initializes the GUI component type.
      Parameters:
        `type` - the GUI component type.
      Returns:
        the description instance with the update state (builder pattern).

    - #### id

          public T id(StringProperty id)

      Initializes the element's unique identifier in text format.
      Parameters:
        `id` - a `StringProperty` or `RegExpProperty`.
      Returns:
        the description instance with the update state (builder pattern).

    - #### id

          public T id(java.lang.String id)

      Initializes the element's unique identifier in text format.
      Parameters:
        `id` - the element's unique identifier in text format.
      Returns:
        the description instance with the update state (builder pattern).

    - #### name

          public T name(StringProperty name)

      Initializes the name of the element.
      Parameters:
        `name` - a `StringProperty` or `RegExpProperty`.
      Returns:
        the description instance with the update state (builder pattern).

    - #### name

          public T name(java.lang.String name)

      Initializes the name of the element.
      Parameters:
        `name` - the name of the element.
      Returns:
        the description instance with the update state (builder pattern).

    - #### location

          public T location(java.lang.Integer x,
                            java.lang.Integer y)

      Initializes this element'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 element's coordinates in pixels relative to the parent window.
      Parameters:
        `location` - the element's coordinates.
      Returns:
        the description instance with the update state (builder pattern).

    - #### location

          public T location(java.awt.Point location)

      Initializes this element's coordinates in pixels relative to the parent window.
      Parameters:
        `location` - the element's coordinates.
      Returns:
        the description instance with the update state (builder pattern).

    - #### absoluteLocation

          public T absoluteLocation(java.lang.Integer absX,
                                    java.lang.Integer absY)

      Initializes the element's coordinates in pixels relative to the screen. 0,0 is the top-left corner of the primary monitor.
      Parameters:
        `absX` - the absolute X.
        `absY` - the absolute Y.
      Returns:
        the description instance with the update state (builder pattern)

    - #### absoluteLocation

          public T absoluteLocation(LocationProperty absLocation)

      Initializes the element's coordinates in pixels relative to the screen. 0,0 is the top-left corner of the primary monitor.
      Parameters:
        `absLocation` - the element's absolute coordinates.
      Returns:
        the description instance with the update state (builder pattern)

    - #### absoluteLocation

          public T absoluteLocation(java.awt.Point absLocation)

      Initializes the element's coordinates in pixels relative to the screen. 0,0 is the top-left corner of the primary monitor.
      Parameters:
        `absLocation` - the element's absolute coordinates.
      Returns:
        the description instance with the update state (builder pattern)

    - #### size

          public T size(SizeProperty size)

      Initializes the test element'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 element'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 element'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: