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 class
Nested 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.void
setAbsoluteLocation
(LocationProperty absLocation) Sets the object's absolute coordinates in pixels relative to the screen.void
setAbsoluteLocation
(Point absLocation) Sets the object's absolute coordinates in pixels relative to the screen.void
setAbsoluteLocation
(Integer absX, Integer absY) Sets the object's absolute coordinates in pixels relative to the screen.void
setChildWindow
(Boolean value) Sets whether the object's window is a child window.void
setEnabled
(Boolean isEnabled) Sets whether the object is enabled.void
setFocused
(Boolean isFocused) Sets whether the object has focus.void
setFullNamePath
(StringProperty fullNamePath) Sets the full hierarchy of this object with all parent objects.void
setFullNamePath
(String fullNamePath) Sets the full hierarchy of this object with all parent objects.void
setFullType
(StringProperty fullType) Sets the full type name of this object.void
setFullType
(String fullType) Sets the full type name of this object.void
setLocation
(LocationProperty location) Sets the object's coordinates in pixels relative to the parent window.void
setLocation
(Point location) Sets the object's coordinates in pixels relative to the parent window.void
setLocation
(Integer x, Integer y) Sets the object's coordinates in pixels relative to the parent window.void
setNativeClass
(StringProperty nativeClass) Sets the object's window class name.void
setNativeClass
(String nativeClass) Sets the object's window class name.void
setObjectName
(StringProperty objectName) Sets the object's name.void
setObjectName
(String objectName) Sets the object's name.void
setOwnedWindow
(Boolean value) Sets whether the object's window has an owner window.void
setSize
(SizeProperty size) Sets the test object's size in pixels.void
Sets the test object's size in pixels.void
Sets the test object's size in pixels.void
setText
(StringProperty text) Sets the text associated with the object.void
Sets text associated with the object.void
setVisible
(Boolean isVisible) Sets the visibility state of the test object.void
setWindowClassRegExp
(StringProperty windowClassRegExp) Sets the permanent part of the MFC window class.void
setWindowClassRegExp
(String windowClassRegExp) Sets the permanent part of the MFC window class.void
setWindowId
(Integer windowId) Sets the object's window identifier.void
setWindowTitleRegExp
(StringProperty windowTitleRegEx) Sets the constant part of the window title.void
setWindowTitleRegExp
(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, setVRI
Methods inherited from class com.hp.lft.sdk.PropertiesDescription
clone
Methods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
getValueAs, getValueAsStringProperty, insertValue
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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
- aStringProperty
orRegExpProperty
-
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
- aStringProperty
orRegExpProperty
-
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
-