public class FlexAlert extends FlexPanel
Alert 控件为模式控件,这意味着用户关闭此控件前它一直处于焦点。
| Modifier | Constructor and Description |
|---|---|
protected |
FlexAlert(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 FlexAlert。
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDefaultButtonFlag()
获取 包含可指定默认按钮的 Alert.OK、Alert.CANCEL、Alert.YES 或 Alert.NO 的位标志。
|
String |
getText()
获取 提示对话框中显示的文本。
|
void |
type(String keyCode)
用户按键时发送。
|
void |
type(String keyCode,
ModifierKey keyModifier)
用户按键时发送。
|
getFooterColors, getHeaderColors, getHeaderHeight, getStatus, getTitle, isDropShadowEnableddragCancel, dragCancel, dragDrop, dragDrop, dragDrop, dragStart, dragStart, getBackgroundAlpha, getBackgroundColor, getBackgroundDisabledColor, getBackgroundImage, getBackgroundSize, getColumnNames, getCreationIndex, getCreationPolicy, getFillAlphas, getFillColors, getFirstVisibleRow, getFontFamily, getFontSize, getFontStyle, getFontWeight, getLabel, getLastVisibleRow, getNumChildren, getNumColumns, getNumRows, getValues, mouseScroll, mouseScroll, scrollchangeFocus, changeFocus, changeFocus, getAutomationClassName, getAutomationIndex, getAutomationName, getClassName, getCurrentState, getErrorColor, getErrorString, getId, getNumAutomationChildren, getPercentHeight, getPercentWidth, getScaleX, getScaleY, getThemeColor, getToolTip, isEnabled, isFocusEnabled, isUseHandCursor, move, move, move, setFocusclick, 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, typePasswordKeyscaptureBitmap, captureBitmap, exists, exists, generateLocator, getChildren, getDynamicMethodList, getParent, getPropertyList, getRect, getRect, 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, waitForPropertyequals, 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, toStringprotected FlexAlert(JtfObjectHandle handle, Desktop desktop)
handle - 可确定 FlexAlert 的句柄desktop - 此对象所在的桌面public void type(String keyCode)
keyCode - 按下或松开的键的键码值public void type(String keyCode, ModifierKey keyModifier)
keyCode - 按下或松开的键的键码值keyModifier - 可使用的键修饰符(例如 Ctrl 键)public double getDefaultButtonFlag()
public String getText()
getText in class TestObjectCopyright 2009-2012 Micro Focus. All Rights Reserved.