Class UiObjectDescriptionBase

java.lang.Object
com.hp.lft.sdk.internal.PropertiesDescriptionBase
com.hp.lft.sdk.PropertiesDescription
com.hp.lft.sdk.DescriptionBase
com.hp.lft.sdk.winforms.UiObjectDescriptionBase
All Implemented Interfaces:
CloneableObject, Description, com.hp.lft.sdk.internal.DescriptionWithVri, Cloneable
Direct Known Subclasses:
ButtonDescription, CalendarDescription, CheckBoxDescription, ComboBoxDescription, EditFieldDescription, EditorDescription, LabelDescription, ListBoxDescription, PropertyGridDescription, RadioButtonDescription, ScrollBarDescription, SpinBoxDescription, StatusBarDescription, TabControlDescription, TableDescription, ToolBarDescription, TreeViewDescription, UiObjectDescription, WindowDescription

public class UiObjectDescriptionBase extends DescriptionBase
The base description of all .Net Window Forms test objects.
  • Constructor Details

    • UiObjectDescriptionBase

      public UiObjectDescriptionBase()
      Constructs a new instance of UiObjectDescriptionBase.
    • UiObjectDescriptionBase

      protected UiObjectDescriptionBase(UiObjectDescriptionBase.Init<?> init)
  • Method Details

    • setNativeClass

      public void setNativeClass(String nativeClass)
      Sets the object's window class name.
      Parameters:
      nativeClass - the object's window class name
    • setNativeClass

      public void setNativeClass(StringProperty nativeClass)
      Sets the object's window class name.
      Parameters:
      nativeClass - a StringProperty or RegExpProperty
    • getNativeClass

      public StringProperty getNativeClass()
      Returns object's window class name.
      Returns:
      the object's window class name.
    • setWindowId

      public void setWindowId(Integer windowId)
      Sets the object's window identifier.
      Parameters:
      windowId - the window ID
    • getWindowId

      public Integer getWindowId()
      Returns the object's window identifier.
      Returns:
      the window ID
    • setEnabled

      public void setEnabled(Boolean isEnabled)
      Sets whether the object is enabled.
      Parameters:
      isEnabled - true if enabled
    • isEnabled

      public Boolean isEnabled()
      Indicates whether the object is enabled.
      Returns:
      true if enabled
    • setFocused

      public void setFocused(Boolean isFocused)
      Sets whether the object has focus.
      Parameters:
      isFocused - true if has focus
    • isFocused

      public Boolean isFocused()
      Indicates whether the object has focus.
      Returns:
      true if has focus
    • setWindowClassRegExp

      public void setWindowClassRegExp(StringProperty windowClassRegExp)
      Sets the permanent part of the MFC window class.
      Parameters:
      windowClassRegExp - the permanent part of the MFC window class
    • setWindowClassRegExp

      public void setWindowClassRegExp(String windowClassRegExp)
      Sets the permanent part of the MFC window class.
      Parameters:
      windowClassRegExp - the permanent part of the MFC window class
    • getWindowClassRegExp

      public StringProperty getWindowClassRegExp()
      Returns the permanent part of the MFC window class.
      Returns:
      the permanent part of the MFC window class
    • setWindowTitleRegExp

      public void setWindowTitleRegExp(StringProperty windowTitleRegEx)
      Sets the constant part of the window title.
      Parameters:
      windowTitleRegEx - constant part of the window title
    • setWindowTitleRegExp

      public void setWindowTitleRegExp(String windowTitleRegExp)
      Sets the constant part of the window title.
      Parameters:
      windowTitleRegExp - constant part of the window title
    • getWindowTitleRegExp

      public StringProperty getWindowTitleRegExp()
      Returns the constant part of the window title.
      Returns:
      the constant part of the window title
    • setVisible

      public void setVisible(Boolean isVisible)
      Sets the visibility state of the test object.
      Parameters:
      isVisible - true to make visible
    • isVisible

      public Boolean isVisible()
      Indicates whether the current element is visible.
      Returns:
      true if visible
    • setText

      public void setText(StringProperty text)
      Sets the text associated with the object.
      Parameters:
      text - the text
    • setText

      public void setText(String text)
      Sets text associated with the object.
      Parameters:
      text - a StringProperty or RegExpProperty
    • getText

      public StringProperty getText()
      Returns the text associated with the object.
      Returns:
      the text
    • setLocation

      public void setLocation(LocationProperty location)
      Sets the object's coordinates in pixels relative to the parent window.
      Parameters:
      location - the coordinates relative to the parent window
    • setLocation

      public void setLocation(Integer x, Integer y)
      Sets the object's coordinates in pixels relative to the parent window.
      Parameters:
      x - in pixels
      y - in pixels
    • setLocation

      public void setLocation(Point location)
      Sets the object's coordinates in pixels relative to the parent window.
      Parameters:
      location - the coordinates relative to the parent window
    • getLocation

      public LocationProperty getLocation()
      Returns the object's coordinates in pixels relative to the parent window.
      Returns:
      the coordinates relative to the parent window
    • setAbsoluteLocation

      public void setAbsoluteLocation(LocationProperty absLocation)
      Sets the object's absolute coordinates in pixels relative to the screen. 0,0 is the top-left corner of the primary monitor.
      Parameters:
      absLocation - the absolute coordinates relative to the screen
    • setAbsoluteLocation

      public void setAbsoluteLocation(Integer absX, Integer absY)
      Sets the object's absolute coordinates in pixels relative to the screen. 0,0 is the top-left corner of the primary monitor.
      Parameters:
      absX - the absolute X coordinate in pixels
      absY - the absolute Y coordinate in pixels
    • setAbsoluteLocation

      public void setAbsoluteLocation(Point absLocation)
      Sets the object's absolute coordinates in pixels relative to the screen. 0,0 is the top-left corner of the primary monitor.
      Parameters:
      absLocation - the absolute coordinates relative to the screen.
    • getAbsoluteLocation

      public LocationProperty getAbsoluteLocation()
      Returns the object's absolute coordinates in pixels relative to the screen.
      Returns:
      the absolute coordinates relative to the screen
    • setSize

      public void setSize(SizeProperty size)
      Sets the test object's size in pixels.
      Parameters:
      size - the size
    • setSize

      public void setSize(Dimension size)
      Sets the test object's size in pixels.
      Parameters:
      size - the size
    • setSize

      public void setSize(Integer width, Integer height)
      Sets the test object's size in pixels.
      Parameters:
      width - in pixels
      height - in pixels
    • getSize

      public SizeProperty getSize()
      Returns the test object's size in pixels.
      Returns:
      the size
    • setChildWindow

      public void setChildWindow(Boolean value)
      Sets whether the object's window is a child window.
      Parameters:
      value - true if a child window
    • isChildWindow

      public Boolean isChildWindow()
      Indicates whether the object's window is a child window.
      Returns:
      true if a child window
    • setOwnedWindow

      public void setOwnedWindow(Boolean value)
      Sets whether the object's window has an owner window.
      Parameters:
      value - true if has owner window
    • isOwnedWindow

      public Boolean isOwnedWindow()
      Indicates whether the object's window has an owner window.
      Returns:
      true if has owner window
    • setObjectName

      public void setObjectName(String objectName)
      Sets the object's name.
      Parameters:
      objectName - the object's name
    • setObjectName

      public void setObjectName(StringProperty objectName)
      Sets the object's name.
      Parameters:
      objectName - the object's name
    • getObjectName

      public StringProperty getObjectName()
      Returns the object's name.
      Returns:
      the object's name
    • setFullNamePath

      public void setFullNamePath(String fullNamePath)
      Sets the full hierarchy of this object with all parent objects.
      Parameters:
      fullNamePath - the full hierarchy
    • setFullNamePath

      public void setFullNamePath(StringProperty fullNamePath)
      Sets the full hierarchy of this object with all parent objects.
      Parameters:
      fullNamePath - the full hierarchy
    • getFullNamePath

      public StringProperty getFullNamePath()
      Returns the of this object with all parent objects.
      Returns:
      the full hierarchy
    • setFullType

      public void setFullType(String fullType)
      Sets the full type name of this object.
      Parameters:
      fullType - the full type
    • setFullType

      public void setFullType(StringProperty fullType)
      Sets the full type name of this object.
      Parameters:
      fullType - the full type name
    • getFullType

      public StringProperty getFullType()
      Returns the full type name of this object.
      Returns:
      the full type name