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 Details

    • Init

      protected Init()
  • Method Details

    • 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(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(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(Integer x, 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(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(Integer absX, 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(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(Integer width, 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(Dimension size)
      Initializes the test element's size in pixels.
      Parameters:
      size - the size.
      Returns:
      the description instance with the update state (builder pattern).