public class FlexUIMovieClip extends FlexDisplayObject
UIMovieClip 类实施 Flash 组件所需的界面以如正常 Flex 组件一样使用。因此,UIMovieClip 子类可用作 Flex 容器子级或外观,它可以对事件作出响应,定义视图状态和转换并以与 Flex 组件相同的方式工作。
Modifier | Constructor and Description |
---|---|
protected |
FlexUIMovieClip(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 FlexUIMovieClip。
|
Modifier and Type | Method and Description |
---|---|
void |
changeFocus()
定义 keyFocusChange 事件对象的类型属性值。
|
void |
changeFocus(boolean shiftKey)
定义 keyFocusChange 事件对象的类型属性值。
|
void |
changeFocus(boolean shiftKey,
String keyCode)
定义 keyFocusChange 事件对象的类型属性值。
|
String |
getAutomationClassName()
获取 包含元素的自动化类名称的字符串。
|
String |
getAutomationIndex()
获取 包含元素的自动化索引的字符串。
|
String |
getAutomationName()
获取 可用作此对象的标识符的名称。
|
String |
getClassName()
获取 此实例类的名称,如“按钮”。
|
String |
getCurrentState()
获取 此组件的当前状态。
|
Color |
getErrorColor()
获取 验证失败时组件突出显示的颜色。
|
String |
getErrorString()
获取 当监视组件并验证失败时,按照组件的错误提示显示的文本。
|
String |
getId()
获取 组件的 ID。
|
int |
getNumAutomationChildren()
获取 容器具有的自动化子级的数量。
|
double |
getPercentHeight()
获取 指定组件高度占其父级大小的百分比的数字。
|
double |
getPercentWidth()
获取 指定组件宽度占其父级大小的百分比的数字。
|
double |
getScaleX()
获取 根据套准点所应用的对象水平缩放(百分比)。
|
double |
getScaleY()
获取 根据套准点所应用的对象垂直缩放(百分比)。
|
Color |
getThemeColor()
获取 组件的主题颜色。
|
String |
getToolTip()
获取 可显示在工具提示中的文本。
|
boolean |
isEnabled()
获取 电影剪辑是否已启用。
|
boolean |
isFocusEnabled()
获取 被选定后组件是否可以接收焦点。
|
boolean |
isUseHandCursor()
获取 鼠标在子画面上滚动时是否出现手指状光标,在此情况下,buttonMode 属性设置为 true。
|
void |
setFocus()
当组件接收焦点时由 FocusManager 调用。
|
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 FlexUIMovieClip(JtfObjectHandle handle, Desktop desktop)
handle
- 可确定 FlexUIMovieClip 的句柄desktop
- 此对象所在的桌面public void changeFocus()
public void changeFocus(boolean shiftKey)
shiftKey
- 如果激活 Shift 键修饰符,则为 true;否则为 falsepublic void changeFocus(boolean shiftKey, String keyCode)
shiftKey
- 如果激活 Shift 键修饰符,则为 true;否则为 falsekeyCode
- 按下以触发 keyFocusChange 事件的键的键码值public void setFocus()
public String getAutomationClassName()
public String getAutomationIndex()
public String getAutomationName()
public String getClassName()
public String getCurrentState()
对于 UIMovieClip,currentState 属性值为当前框架标签。
public boolean isEnabled()
默认值为 true。如果已启用设置为 false,则电影剪辑的 Over、Down 和 Up 帧将被禁用。电影剪辑会继续接收事件(例如 mouseDown、mouseUp、keyDown 和 keyUp)。
public Color getErrorColor()
public String getErrorString()
public boolean isFocusEnabled()
public String getId()
此值将成为对象的实例名称并且不应包含空格或特殊字符。应用程序内的每个组件都应具有唯一名称。分配有意义的名称会使脚本更具可读性。例如,设置按钮值为 close_button,而非 b1 或 button1。
public int getNumAutomationChildren()
public double getPercentHeight()
public double getPercentWidth()
public double getScaleX()
public double getScaleY()
public Color getThemeColor()
public String getToolTip()
public boolean isUseHandCursor()
默认值为 true。如果 useHandCursor 设置为 true,则当鼠标在按钮子画面上滚动时用于按钮的手指状光标会出现。如果 useHandCursor 为 false,则出现箭头光标。
Copyright 2009-2012 Micro Focus. All Rights Reserved.