Package com.hp.lft.sdk.winforms
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
The base description of all .Net Window Forms test objects.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classNested classes/interfaces inherited from class com.hp.lft.sdk.DescriptionBase
DescriptionBase.Builder -
Field Summary
Fields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
properties -
Constructor Summary
ConstructorsModifierConstructorDescriptionConstructs a new instance of UiObjectDescriptionBase.protected -
Method Summary
Modifier and TypeMethodDescriptionReturns the object's absolute coordinates in pixels relative to the screen.Returns the of this object with all parent objects.Returns the full type name of this object.Returns the object's coordinates in pixels relative to the parent window.Returns object's window class name.Returns the object's name.getSize()Returns the test object's size in pixels.getText()Returns the text associated with the object.Returns the permanent part of the MFC window class.Returns the object's window identifier.Returns the constant part of the window title.Indicates whether the object's window is a child window.Indicates whether the object is enabled.Indicates whether the object has focus.Indicates whether the object's window has an owner window.Indicates whether the current element is visible.voidsetAbsoluteLocation(LocationProperty absLocation) Sets the object's absolute coordinates in pixels relative to the screen.voidsetAbsoluteLocation(Point absLocation) Sets the object's absolute coordinates in pixels relative to the screen.voidsetAbsoluteLocation(Integer absX, Integer absY) Sets the object's absolute coordinates in pixels relative to the screen.voidsetChildWindow(Boolean value) Sets whether the object's window is a child window.voidsetEnabled(Boolean isEnabled) Sets whether the object is enabled.voidsetFocused(Boolean isFocused) Sets whether the object has focus.voidsetFullNamePath(StringProperty fullNamePath) Sets the full hierarchy of this object with all parent objects.voidsetFullNamePath(String fullNamePath) Sets the full hierarchy of this object with all parent objects.voidsetFullType(StringProperty fullType) Sets the full type name of this object.voidsetFullType(String fullType) Sets the full type name of this object.voidsetLocation(LocationProperty location) Sets the object's coordinates in pixels relative to the parent window.voidsetLocation(Point location) Sets the object's coordinates in pixels relative to the parent window.voidsetLocation(Integer x, Integer y) Sets the object's coordinates in pixels relative to the parent window.voidsetNativeClass(StringProperty nativeClass) Sets the object's window class name.voidsetNativeClass(String nativeClass) Sets the object's window class name.voidsetObjectName(StringProperty objectName) Sets the object's name.voidsetObjectName(String objectName) Sets the object's name.voidsetOwnedWindow(Boolean value) Sets whether the object's window has an owner window.voidsetSize(SizeProperty size) Sets the test object's size in pixels.voidSets the test object's size in pixels.voidSets the test object's size in pixels.voidsetText(StringProperty text) Sets the text associated with the object.voidSets text associated with the object.voidsetVisible(Boolean isVisible) Sets the visibility state of the test object.voidsetWindowClassRegExp(StringProperty windowClassRegExp) Sets the permanent part of the MFC window class.voidsetWindowClassRegExp(String windowClassRegExp) Sets the permanent part of the MFC window class.voidsetWindowId(Integer windowId) Sets the object's window identifier.voidsetWindowTitleRegExp(StringProperty windowTitleRegEx) Sets the constant part of the window title.voidsetWindowTitleRegExp(String windowTitleRegExp) Sets the constant part of the window title.Methods inherited from class com.hp.lft.sdk.DescriptionBase
cloneTo, getIndex, getIndexType, getObjectProperties, getVRI, setIndex, setIndexType, setObjectProperties, setVRI, setVRIMethods inherited from class com.hp.lft.sdk.PropertiesDescription
cloneMethods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
getValueAs, getValueAsStringProperty, insertValueMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hp.lft.sdk.CloneableObject
clone
-
Constructor Details
-
UiObjectDescriptionBase
public UiObjectDescriptionBase()Constructs a new instance of UiObjectDescriptionBase. -
UiObjectDescriptionBase
-
-
Method Details
-
setNativeClass
Sets the object's window class name.- Parameters:
nativeClass- the object's window class name
-
setNativeClass
Sets the object's window class name.- Parameters:
nativeClass- aStringPropertyorRegExpProperty
-
getNativeClass
Returns object's window class name.- Returns:
- the object's window class name.
-
setWindowId
Sets the object's window identifier.- Parameters:
windowId- the window ID
-
getWindowId
Returns the object's window identifier.- Returns:
- the window ID
-
setEnabled
Sets whether the object is enabled.- Parameters:
isEnabled- true if enabled
-
isEnabled
Indicates whether the object is enabled.- Returns:
- true if enabled
-
setFocused
Sets whether the object has focus.- Parameters:
isFocused- true if has focus
-
isFocused
Indicates whether the object has focus.- Returns:
- true if has focus
-
setWindowClassRegExp
Sets the permanent part of the MFC window class.- Parameters:
windowClassRegExp- the permanent part of the MFC window class
-
setWindowClassRegExp
Sets the permanent part of the MFC window class.- Parameters:
windowClassRegExp- the permanent part of the MFC window class
-
getWindowClassRegExp
Returns the permanent part of the MFC window class.- Returns:
- the permanent part of the MFC window class
-
setWindowTitleRegExp
Sets the constant part of the window title.- Parameters:
windowTitleRegEx- constant part of the window title
-
setWindowTitleRegExp
Sets the constant part of the window title.- Parameters:
windowTitleRegExp- constant part of the window title
-
getWindowTitleRegExp
Returns the constant part of the window title.- Returns:
- the constant part of the window title
-
setVisible
Sets the visibility state of the test object.- Parameters:
isVisible- true to make visible
-
isVisible
Indicates whether the current element is visible.- Returns:
- true if visible
-
setText
Sets the text associated with the object.- Parameters:
text- the text
-
setText
Sets text associated with the object.- Parameters:
text- aStringPropertyorRegExpProperty
-
getText
Returns the text associated with the object.- Returns:
- the text
-
setLocation
Sets the object's coordinates in pixels relative to the parent window.- Parameters:
location- the coordinates relative to the parent window
-
setLocation
Sets the object's coordinates in pixels relative to the parent window.- Parameters:
x- in pixelsy- in pixels
-
setLocation
Sets the object's coordinates in pixels relative to the parent window.- Parameters:
location- the coordinates relative to the parent window
-
getLocation
Returns the object's coordinates in pixels relative to the parent window.- Returns:
- the coordinates relative to the parent window
-
setAbsoluteLocation
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
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 pixelsabsY- the absolute Y coordinate in pixels
-
setAbsoluteLocation
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
Returns the object's absolute coordinates in pixels relative to the screen.- Returns:
- the absolute coordinates relative to the screen
-
setSize
Sets the test object's size in pixels.- Parameters:
size- the size
-
setSize
Sets the test object's size in pixels.- Parameters:
size- the size
-
setSize
Sets the test object's size in pixels.- Parameters:
width- in pixelsheight- in pixels
-
getSize
Returns the test object's size in pixels.- Returns:
- the size
-
setChildWindow
Sets whether the object's window is a child window.- Parameters:
value- true if a child window
-
isChildWindow
Indicates whether the object's window is a child window.- Returns:
- true if a child window
-
setOwnedWindow
Sets whether the object's window has an owner window.- Parameters:
value- true if has owner window
-
isOwnedWindow
Indicates whether the object's window has an owner window.- Returns:
- true if has owner window
-
setObjectName
Sets the object's name.- Parameters:
objectName- the object's name
-
setObjectName
Sets the object's name.- Parameters:
objectName- the object's name
-
getObjectName
Returns the object's name.- Returns:
- the object's name
-
setFullNamePath
Sets the full hierarchy of this object with all parent objects.- Parameters:
fullNamePath- the full hierarchy
-
setFullNamePath
Sets the full hierarchy of this object with all parent objects.- Parameters:
fullNamePath- the full hierarchy
-
getFullNamePath
Returns the of this object with all parent objects.- Returns:
- the full hierarchy
-
setFullType
Sets the full type name of this object.- Parameters:
fullType- the full type
-
setFullType
Sets the full type name of this object.- Parameters:
fullType- the full type name
-
getFullType
Returns the full type name of this object.- Returns:
- the full type name
-