Class UiObjectDescriptionBase.Init<T extends UiObjectDescriptionBase.Init<T>>

java.lang.Object
com.hp.lft.sdk.DescriptionBase.Init<T>
com.hp.lft.sdk.sap.nwbc.UiObjectDescriptionBase.Init<T>
Direct Known Subclasses:
OKCodeDescription.Init, ShellWindowDescription.Init, TabStripDescription.Init, ToggleButtonDescription.Init, UiObjectDescriptionBase.Builder
Enclosing class:
UiObjectDescriptionBase

protected abstract static class UiObjectDescriptionBase.Init<T extends UiObjectDescriptionBase.Init<T>> extends DescriptionBase.Init<T>
  • Constructor Details

    • Init

      protected Init()
  • Method Details

    • build

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

      public T objectName(StringProperty objectName)
      Sets the object name property of the test object description.
      Parameters:
      objectName - The object name to set.
      Returns:
      The description instance with the updated property.
    • objectName

      public T objectName(String objectName)
      Sets the object name property of the test object description.
      Parameters:
      objectName - The object name to set.
      Returns:
      The description instance with the updated property.
    • fullNamePath

      public T fullNamePath(StringProperty fullNamePath)
      Sets the full name path property of the test object description.
      Parameters:
      fullNamePath - The full name path to set.
      Returns:
      The description instance with the updated property.
    • fullNamePath

      public T fullNamePath(String fullNamePath)
      Sets the full name path property of the test object description.
      Parameters:
      fullNamePath - The full name path to set.
      Returns:
      The description instance with the updated property.
    • fullType

      public T fullType(StringProperty fullType)
      Sets the full type property of the test object description.
      Parameters:
      fullType - The full type to set.
      Returns:
      The description instance with the updated property.
    • fullType

      public T fullType(String fullType)
      Sets the full type property of the test object description.
      Parameters:
      fullType - The full type to set.
      Returns:
      The description instance with the updated property.
    • name

      public T name(StringProperty name)
      Sets the name property of the test object description.
      Parameters:
      name - The name to set.
      Returns:
      The description instance with the updated property.
    • name

      public T name(String name)
      Sets the name property of the test object description.
      Parameters:
      name - The name to set.
      Returns:
      The description instance with the updated property.
    • enabled

      public T enabled(Boolean isEnabled)
      Sets the is enabled property of the test object description.
      Parameters:
      isEnabled - The is enabled value to set.
      Returns:
      The description instance with the updated property.
    • focused

      public T focused(Boolean isFocused)
      Sets whether the object is focused.
      Parameters:
      isFocused - true if the object is focused, false otherwise.
      Returns:
      The description instance with the updated property.
    • windowTitleRegExp

      public T windowTitleRegExp(StringProperty windowTitleRegExp)
      Sets the constant part of the window title.
      Parameters:
      windowTitleRegExp - the constant part of the window title as a StringProperty or RegExpProperty.
      Returns:
      The description instance with the updated property.
    • windowTitleRegExp

      public T windowTitleRegExp(String windowTitleRegExp)
      Sets the constant part of the window title.
      Parameters:
      windowTitleRegExp - the constant part of the window title as a String.
      Returns:
      The description instance with the updated property.
    • visible

      public T visible(Boolean isVisible)
      Sets the is visible property of the test object description.
      Parameters:
      isVisible - The is visible value to set.
      Returns:
      The description instance with the updated property.
    • text

      public T text(StringProperty text)
      Sets the text property of the test object description.
      Parameters:
      text - The text to set.
      Returns:
      The description instance with the updated property.
    • 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).