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

java.lang.Object
com.hp.lft.sdk.DescriptionBase.Init<T>
com.hp.lft.sdk.wpf.UiObjectDescriptionBase.Init<T>
Direct Known Subclasses:
ButtonDescription.Init, CalendarDescription.Init, CheckBoxDescription.Init, ComboBoxDescription.Init, EditFieldDescription.Init, ImageDescription.Init, LinkDescription.Init, ListDescription.Init, MenuDescription.Init, ProgressBarDescription.Init, RadioButtonDescription.Init, ScrollBarDescription.Init, SliderDescription.Init, StatusBarDescription.Init, TableDescription.Init, TabStripDescription.Init, ToolBarDescription.Init, TreeViewDescription.Init, UiObjectDescription.Init, WindowDescription.Init
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

    • nativeClass

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

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

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

      public T focused(Boolean isFocused)
      Initializes whether the current element is focused.
      Parameters:
      isFocused - whether the current element is focused.
      Returns:
      the description instance with the update state (builder pattern)
    • windowTitleRegExp

      public T windowTitleRegExp(StringProperty windowTitleRegExp)
      Initializes the permanent part of the constant part of the window title.
      Parameters:
      windowTitleRegExp - a StringProperty (or RegExpProperty) representing the constant part of the window title.
      Returns:
      the description instance with the update state (builder pattern)
    • windowTitleRegExp

      public T windowTitleRegExp(String windowTitleRegExp)
      Initializes the permanent part of the constant part of the window title.
      Parameters:
      windowTitleRegExp - the constant part of the window title.
      Returns:
      the description instance with the update state (builder pattern)
    • visible

      public T visible(Boolean isVisible)
      Initializes whether the current element is visible.
      Parameters:
      isVisible - whether the current element is visible.
      Returns:
      the description instance with the update state (builder pattern)
    • canFocus

      public T canFocus(Boolean canFocus)
      Initializes whether the current element is can focus.
      Parameters:
      canFocus - whether the current element can focus
      Returns:
      the description instance with the update state (builder pattern)
    • text

      public T text(StringProperty text)
      Initializes the permanent part of the text associated with the object.
      Parameters:
      text - a StringProperty (or RegExpProperty) representing text associated with the object.
      Returns:
      the description instance with the update state (builder pattern)
    • text

      public T text(String text)
      Initializes the permanent part of the text associated with the object.
      Parameters:
      text - text associated with the object.
      Returns:
      the description instance with the update state (builder pattern)
    • attachedText

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

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

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

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

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

      public T absoluteLocation(Integer absX, Integer absY)
      Initializes the object's absolute coordinates relative to the screen (in pixels). 0,0 is always the top-left corner of the (primary) monitor.
      Parameters:
      absX - the absolute X coordinate of the test object location.
      absY - the absolute Y coordinate of the test object location.
      Returns:
      the description instance with the update state (builder pattern)
    • absoluteLocation

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

      public T absoluteLocation(Point absLocation)
      Initializes the object's absolute coordinates relative to the screen (in pixels). 0,0 is always the top-left corner of the (primary) monitor.
      Parameters:
      absLocation - a Point representing the object's absolute coordinates relative to the screen (in pixels).
      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 test object's size (in pixels).
      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 - the width of the test object (in pixels).
      height - the height of the test object (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 test object's size (in pixels).
      Returns:
      the description instance with the update state (builder pattern)
    • fullType

      public T fullType(String fullType)
      Initializes the full type name of the object.
      Parameters:
      fullType - the full type name of the object.
      Returns:
      the description instance with the update state (builder pattern)
    • fullType

      public T fullType(StringProperty fullType)
      Initializes the full type name of the object.
      Parameters:
      fullType - a StringProperty (or RegExpProperty) representing the full type name of the object.
      Returns:
      the description instance with the update state (builder pattern)
    • fullNamePath

      public T fullNamePath(StringProperty fullNamePath)
      Initializes the full hierarchy of ObjectName with all parent objects.
      Parameters:
      fullNamePath - a StringProperty (or RegExpProperty) representing full hierarchy of ObjectName with all parent objects.
      Returns:
      the description instance with the update state (builder pattern)
    • fullNamePath

      public T fullNamePath(String fullNamePath)
      Initializes the full hierarchy of ObjectName with all parent objects.
      Parameters:
      fullNamePath - the full hierarchy of ObjectName with all parent objects.
      Returns:
      the description instance with the update state (builder pattern)
    • objectName

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

      public T objectName(String objectName)
      Initializes the object's name as set by the developer.
      Parameters:
      objectName - the object's name as set by the developer.
      Returns:
      the description instance with the update state (builder pattern)