|
Standard Java (AWT, Swing) Object.
Behavior Pattern: JavaObjectGenericBehavior
Property Summary
Property
|
Description
|
Getter
|
Setter
|
ControlType
|
Type of the object.
|
GetControlType
|
|
Height
|
Height of the object.
|
GetHeight
|
|
Width
|
Width of the object.
|
GetWidth
|
|
X
|
X-coordinate of the top left corner of the object.
|
GetX
|
|
Y
|
Y-coordinate of the top left corner of the object.
|
GetY
|
|
Action Summary
Property Detail
ControlType
Type of the object.
Accessors: GetControlType
Height
Height of the object.
Accessors: GetHeight
Width
Width of the object.
Accessors: GetWidth
X
X-coordinate of the top left corner of the object.
Accessors: GetX
Y
Y-coordinate of the top left corner of the object.
Accessors: GetY
Action Detail
DoAction()
Clicks in the middle of the control.
Returns:
'true' if success, 'false' otherwise.
DoDumpWidget(dumpProperties, maxDepth, trimValue, indent, filePath, append)
Dumps Spy data for the object.
Parameters:
Name
|
Type
|
Description
|
dumpProperties
|
boolean
|
If 'true' then includes properties to the result.
Optional, Default: false.
|
maxDepth
|
number
|
Determines max recursion depth. If '0' then dumps current object only, if '1' - dumps direct children as well, etc. If '-1' then dumps the whole subtree of objects.
Optional, Default: 0.
|
trimValue
|
number
|
Determines maximum length of a proprty value. Excess characters are truncated.
Optional, Default: 256.
|
indent
|
string
|
Indentation string for child objects and properties.
Optional, Default: \.
|
filePath
|
string
|
If 'filePath' is set then outputs result to corresponding file.
Optional.
|
append
|
boolean
|
If 'true' then file should be overwritten, if 'false' then data should be appended.
Optional, Default: false.
|
Returns:
Object data if 'filePath' is not set, 'true' if file write succeeded, 'false' - otherwise.
DoGetWidgetProperty(name)
Returns the value of a property with a given name. Names of available properties can be seen in Spy.
Parameters:
Name
|
Type
|
Description
|
name
|
string
|
Property name.
|
Returns:
Property value if successful, an empty string if the property can not be found.
|