public class FlexPopUpButton extends FlexButton
PopUpButton 控件表面上可以有文本标签、图标或两者均有。当用户单击 PopUpButton 控件的主要部分时,它会发送单击事件。
PopUpButton 控件的一个常用功能是让弹出按钮打开 List 控件或 Menu 控件,其更改主要按钮的功能和标签。
Modifier | Constructor and Description |
---|---|
protected |
FlexPopUpButton(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 FlexPopUpButton。
|
Modifier and Type | Method and Description |
---|---|
void |
close()
指定 UIComponent 关闭时发送。
|
void |
close(FlexTriggerEvent triggerEvent)
指定 UIComponent 关闭时发送。
|
void |
open()
指定 UIComponent 打开时发送。
|
void |
open(FlexTriggerEvent triggerEvent)
指定 UIComponent 打开时发送。
|
getColor, getDisabledColor, getFillAlphas, getFillColors, getFocusAlpha, getFontFamily, getFontSize, getFontStyle, getFontWeight, getLabel, getLabelPlacement, getTextAlign, getTextDecoration, getTextIndent, getTextRollOverColor, getTextSelectedColor, isSelected, isToggle, type, type
changeFocus, changeFocus, changeFocus, getAutomationClassName, getAutomationIndex, getAutomationName, getClassName, getCurrentState, getErrorColor, getErrorString, getId, getNumAutomationChildren, getPercentHeight, getPercentWidth, getScaleX, getScaleY, getThemeColor, getToolTip, isEnabled, isFocusEnabled, isUseHandCursor, move, move, move, setFocus
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 FlexPopUpButton(JtfObjectHandle handle, Desktop desktop)
handle
- 可确定 FlexPopUpButton 的句柄desktop
- 此对象所在的桌面public void close()
DropdownEvent.CLOSE 常数定义关闭事件的事件对象的类型属性值。
public void close(FlexTriggerEvent triggerEvent)
DropdownEvent.CLOSE 常数定义关闭事件的事件对象的类型属性值。
triggerEvent
- 表明触发了事件的输入操作类型的值public void open()
DropdownEvent.OPEN 常数定义打开事件的事件对象的类型属性值。
public void open(FlexTriggerEvent triggerEvent)
DropdownEvent.OPEN 常数定义打开事件的事件对象的类型属性值。
triggerEvent
- 表明触发了事件的输入操作类型的值Copyright 2009-2012 Micro Focus. All Rights Reserved.