public class FlexObject extends FlexDisplayObject
Modifier | Constructor and Description |
---|---|
protected |
FlexObject(JtfObjectHandle handle,
Desktop desktop)
Creates a new FlexObject with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
void |
changeFocus()
Changes the current focus.
|
void |
changeFocus(boolean shiftKey)
Changes the current focus.
|
void |
changeFocus(boolean shiftKey,
String keyCode)
Changes the current focus.
|
String |
getAutomationClassName()
Gets a string containing the automation class name for the element.
|
String |
getAutomationIndex()
Gets a string containing the automation index for the element.
|
String |
getAutomationName()
Gets the name that can be used as an identifier for this object.
|
String |
getClassName()
Gets the name of this instance's class, such as
Button . |
String |
getCurrentState()
Gets the current view state of the component.
|
Color |
getErrorColor()
Gets the color of the component highlight when validation fails.
|
String |
getErrorString()
Gets the text that will be displayed by a component's error tip when a component is monitored and validation fails.
|
String |
getId()
Gets the ID of the component.
|
int |
getNumAutomationChildren()
Gets the number of automation children this container has.
|
double |
getPercentHeight()
Gets the number that specifies the height of a component as a percentage of its parent's size.
|
double |
getPercentWidth()
Gets the number that specifies the width of a component as a percentage of its parent's size.
|
double |
getScaleX()
Gets the number that specifies the horizontal scaling factor.
|
double |
getScaleY()
Gets the number that specifies the vertical scaling factor.
|
Color |
getThemeColor()
Gets the theme color of a component.
|
String |
getToolTip()
Gets the text to display in the ToolTip.
|
boolean |
isEnabled()
Gets whether the component can accept user interaction.
|
boolean |
isFocusEnabled()
Gets whether the component can receive focus when tabbed to.
|
boolean |
isUseHandCursor()
Gets whether the pointing hand cursor appears when the mouse rolls over an element.
|
void |
move()
Moves the component to a specified position within its parent.
|
void |
move(int x)
Moves the component to a specified position within its parent.
|
void |
move(int x,
int y)
Moves the component to a specified position within its parent.
|
void |
setFocus()
Sets the focus to this component.
|
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getAlpha, getHeight, getStyle, getTabIndex, getWidth, getX, getY, isMouseEnabled, isTabChildren, isTabEnabled, isVisible, mouseMove, mouseMove, nativeToString, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, typeKeys, typeKeys, typeKeys, typePasswordKeys, typePasswordKeys, typePasswordKeys
captureBitmap, captureBitmap, exists, exists, generateLocator, getChildren, getDynamicMethodList, getParent, getPropertyList, getRect, getRect, getText, getValue, highlightObject, highlightObject, highlightObject, invokeMethods, textCapture, textCapture, textClick, textClick, textClick, textClick, textClick, textClick, textExists, textExists, textExists, textExists, textExists, textRectangle, textRectangle, textRectangle, textRectangle, textRectangle, waitForChildDisappearance, waitForChildDisappearance, waitForDisappearance, waitForDisappearance, waitForObject, waitForObject, waitForProperty, waitForProperty
equals, exists, find, find, findAll, findAll, getCustomTypeName, getDesktop, getHandle, getLocator, getProperty, getTypeName, hashCode, imageClick, imageClick, imageClick, imageClick, imageClick, imageClick, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageExists, imageExists, imageExists, imageExistsFile, imageExistsFile, imageExistsFile, imageRectangle, imageRectangle, imageRectangle, imageRectangleFile, imageRectangleFile, imageRectangleFile, invoke, preventFinalLocator, setProperty, toString
protected FlexObject(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the FlexObjectdesktop
- the desktop on which this object livespublic void changeFocus()
public void changeFocus(boolean shiftKey)
shiftKey
- true to activate the shift key modifierpublic void changeFocus(boolean shiftKey, String keyCode)
shiftKey
- true to activate the shift key modifierkeyCode
- the key code value of the key pressed or releasedpublic void move()
public void move(int x)
x
- left position of the component within its parentpublic void move(int x, int y)
x
- left position of the component within its parenty
- top position of the component within its parentpublic void setFocus()
Note: Only the TextInput and TextArea controls show a highlight when this method sets the focus. All controls show a highlight when the user tabs to the control.
public String getAutomationClassName()
public String getAutomationIndex()
public String getAutomationName()
public String getClassName()
Button
.public String getCurrentState()
Set to "" or null
to reset the component back to its base state.
public boolean isEnabled()
After setting the enabled property to false, some components still respond to mouse interactions such as mouseOver. As a result, to fully disable UIComponents, you should also set the value of the mouseEnabled property to false. If you set the enabled property to false for a container, Flex dims the color of the container and of all of its children, and blocks user input to the container and to all of its children.
public Color getErrorColor()
Flex also sets the borderColor style of the component to this errorColor on a validation failure. The default value is 0xFF0000.
public String getErrorString()
public boolean isFocusEnabled()
You can set focusEnabled to false when a UIComponent is used as a subcomponent of another component so that the outer component becomes the focusable entity. If this property is false, focus will be transferred to the first parent that has focusEnable set to true.
public String getId()
This value becomes the instance name of the object and should not contain any white space or special characters. Each component throughout an application should have a unique id.
public int getNumAutomationChildren()
This sum should not include any composite children, though it does include those children not significant within the automation hierarchy.
public double getPercentHeight()
Allowed values are 0-100. The default value is NaN. Setting the height or explicitHeight properties resets this property to NaN.
This property returns a numeric value only if the property was previously set; it does not reflect the exact size of the component in percent.
This property is always set to NaN for the UITextField control.
public double getPercentWidth()
This property returns a numeric value only if the property was previously set; it does not reflect the exact size of the component in percent.
This property is always set to NaN for the UITextField control.
public double getScaleX()
The default value is 1.0, which means that the object is not scaled. A scaleX of 2.0 means the object has been magnified by a factor of 2, and a scaleX of 0.5 means the object has been reduced by a factor of 2.
A value of 0.0 is an invalid value. Rather than setting it to 0.0, set it to a small value, or set the visible property to false to hide the component.
The default value is 1.0.
This property can be used as the source for data binding. When this property is modified, it dispatches the scaleXChanged event.
public double getScaleY()
The default value is 1.0, which means that the object is not scaled. A scaleY of 2.0 means the object has been magnified by a factor of 2, and a scaleY of 0.5 means the object has been reduced by a factor of 2.
A value of 0.0 is an invalid value. Rather than setting it to 0.0, set it to a small value, or set the visible property to false to hide the component.
The default value is 1.0.
This property can be used as the source for data binding. When this property is modified, it dispatches the scaleYChanged event.
public Color getThemeColor()
This property controls the appearance of highlights, appearance when a component is selected, and other similar visual cues, but it does not have any effect on the regular borders or background colors of the component. The preferred values are haloGreen, haloBlue, haloOrange, and haloSilver, although any valid color value can be used.
The default values of the rollOverColor and selectionColor styles are based on the themeColor value.
The default value is haloBlue
.
public String getToolTip()
public boolean isUseHandCursor()
Copyright 2009-2012 Micro Focus. All Rights Reserved.