Class UiObjectBaseDescription
- All Implemented Interfaces:
CloneableObject
,Description
,com.hp.lft.sdk.internal.DescriptionWithVri
,Cloneable
- Direct Known Subclasses:
AppletDescription
,ButtonDescription
,CalendarDescription
,CheckBoxDescription
,EditorDescription
,ExpandBarDescription
,LabelDescription
,LinkDescription
,ListDescription
,MenuDescription
,RadioButtonDescription
,SliderDescription
,SpinBoxDescription
,TabControlDescription
,TableDescription
,ToolBarDescription
,TreeViewDescription
,TreeViewTableDescription
,UiObjectDescription
,WindowDescription
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Helper class for derived Builder classes.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
Initializes a new instance of the UiObjectBaseDescription class using the Builder pattern. -
Method Summary
Modifier and TypeMethodDescriptionReturns the object's coordinates in pixels relative to the screen.Returns static text that is attached to an object.Returns the object's background color.Returns the object's foreground color.getLabel()
Returns the test object's label.Returns the object's coordinates in pixels relative to the parent window.Returns the object's Java class name.Returns the test object's ObjectName.getPath()
Returns the object's hierarchy (object ancestors).getSize()
Returns the test object's size in pixels.Returns the test object's name.Indicates whether the object is enabled.Indicates whether the object has focus.Indicates whether the object is visible.Indicates whether the object is wrapped.void
setAbsoluteLocation
(LocationProperty absLocation) Sets the object's coordinates in pixels relative to the screen.void
setAbsoluteLocation
(Point absLocation) Sets the object's coordinates in pixels relative to the screen.void
setAbsoluteLocation
(Integer absX, Integer absY) Sets the object's coordinates in pixels relative to the screen.void
setAttachedText
(StringProperty attachedText) Sets static text that is attached to an object.void
setAttachedText
(String attachedText) Sets the static text that is attached to an object.void
setBackgroundColor
(StringProperty color) Sets the object's background color.void
setBackgroundColor
(String color) Sets the object's background color.void
setEnabled
(Boolean isEnabled) Sets whether the object is enabled.void
setFocused
(Boolean isFocused) Sets whether the object has focus.void
setForegroundColor
(StringProperty color) Sets the object's foreground color.void
setForegroundColor
(String color) Sets the object's foreground color.void
setLabel
(StringProperty label) Sets the test object's label.void
Sets the test object's label.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 Java class name.void
setNativeClass
(String nativeClass) Sets the object's Java class name.void
setObjectName
(StringProperty name) Sets the test object description's ObjectName property.void
setObjectName
(String name) Sets the test object description's ObjectName property.void
setPath
(StringProperty path) Sets the object's hierarchy (object ancestors).void
Sets the object's hierarchy (object ancestors).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
setTagName
(StringProperty tagName) Sets the test object's name.void
setTagName
(String tagName) Sets the test object's name.void
setVisible
(Boolean isVisible) Sets the object is visible.void
setWrapped
(Boolean isWrapped) Sets wether the object is wrapped.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
-
UiObjectBaseDescription
public UiObjectBaseDescription()Constructs a new instance of UiObjectDescriptionBase. -
UiObjectBaseDescription
Initializes a new instance of the UiObjectBaseDescription class using the Builder pattern.- Parameters:
init
- the Builder pattern.
-
-
Method Details
-
setAttachedText
Sets the static text that is attached to an object.- Parameters:
attachedText
- static text that is attached to an object.
-
setAttachedText
Sets static text that is attached to an object.- Parameters:
attachedText
- aStringProperty
orRegExpProperty
.
-
getAttachedText
Returns static text that is attached to an object.- Returns:
- static text that is attached to an object.
-
setForegroundColor
Sets the object's foreground color.- Parameters:
color
- object's foreground color.
-
setForegroundColor
Sets the object's foreground color.- Parameters:
color
- aStringProperty
orRegExpProperty
.
-
getForegroundColor
Returns the object's foreground color.- Returns:
- the object's foreground color.
-
setBackgroundColor
Sets the object's background color.- Parameters:
color
- object's background color.
-
setBackgroundColor
Sets the object's background color.- Parameters:
color
- aStringProperty
orRegExpProperty
.
-
getBackgroundColor
Returns the object's background color.- Returns:
- the object's background color.
-
setObjectName
Sets the test object description's ObjectName property.- Parameters:
name
- the ObjectName property.
-
setObjectName
Sets the test object description's ObjectName property.- Parameters:
name
- aStringProperty
orRegExpProperty
.
-
getObjectName
Returns the test object's ObjectName. Given the statement "Editbox newEditBox = new Editbox(0,0)", the default test object name is "newEditBox". The default test object name can be overridden usingsetObjectName(java.lang.String)
.- Returns:
- the instance variable name.
-
setEnabled
Sets whether the object is enabled.- Parameters:
isEnabled
- true if enabled.
-
isEnabled
Indicates whether the object is enabled.- Returns:
- true if enabled.
-
setWrapped
Sets wether the object is wrapped.- Parameters:
isWrapped
- true if wrapped.
-
isWrapped
Indicates whether the object is wrapped.- Returns:
- true if wrapped.
-
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.
-
setVisible
Sets the object is visible.- Parameters:
isVisible
- true to make visible.
-
isVisible
Indicates whether the object is visible.- Returns:
- true, if visible.
-
setLabel
Sets the test object's label.- Parameters:
label
- the test object's label.
-
setLabel
Sets the test object's label.- Parameters:
label
- aStringProperty
orRegExpProperty
.
-
getLabel
Returns the test object's label.- Returns:
- the test object's label.
-
setPath
Sets the object's hierarchy (object ancestors).- Parameters:
path
- the object's hierarchy (object ancestors).
-
setPath
Sets the object's hierarchy (object ancestors).- Parameters:
path
- aStringProperty
orRegExpProperty
.
-
getPath
Returns the object's hierarchy (object ancestors).- Returns:
- the object's hierarchy (object ancestors).
-
setTagName
Sets the test object's name.- Parameters:
tagName
- the test object's name.
-
setTagName
Sets the test object's name.- Parameters:
tagName
- aStringProperty
orRegExpProperty
.
-
getTagName
Returns the test object's name.- Returns:
- the test object's name.
-
setNativeClass
Sets the object's Java class name.- Parameters:
nativeClass
- the object's Java class name.
-
setNativeClass
Sets the object's Java class name.- Parameters:
nativeClass
- aStringProperty
orRegExpProperty
.
-
getNativeClass
Returns the object's Java class name.- Returns:
- the object's Java class name.
-
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 pixels.y
- 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 coordinates in pixels relative to the screen. 0,0 is the top-left corner of the primary monitor.In a virtual device multi-screen environment in which the desktop area could span multiple physical screen devices, this coordinate is relative to the virtual coordinate system. Otherwise, this coordinate is relative to the coordinate system associated with the Component's GraphicsConfiguration.
- Parameters:
absLocation
- the coordinates relative to the screen.
-
setAbsoluteLocation
Sets the object's coordinates in pixels relative to the screen. 0,0 is the top-left corner of the primary monitor.In a virtual device multi-screen environment in which the desktop area could span multiple physical screen devices, this coordinate is relative to the virtual coordinate system. Otherwise, this coordinate is relative to the coordinate system associated with the Component's GraphicsConfiguration.
- Parameters:
absX
- in pixels.absY
- in pixels.
-
setAbsoluteLocation
Sets the object's coordinates in pixels relative to the screen. 0,0 is the top-left corner of the primary monitor.- Parameters:
absLocation
- the coordinates relative to the screen.
-
getAbsoluteLocation
Returns the object's coordinates in pixels relative to the screen.In a virtual device multi-screen environment in which the desktop area could span multiple physical screen devices, this coordinate is relative to the virtual coordinate system. Otherwise, this coordinate is relative to the coordinate system associated with the Component's GraphicsConfiguration.
- Returns:
- the 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 pixels.height
- in pixels.
-
getSize
Returns the test object's size in pixels.- Returns:
- the size.
-