public class SparkButtonBase extends SparkObject
Modifier | Constructor and Description |
---|---|
protected |
SparkButtonBase(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 SparkButtonBase。
|
Modifier and Type | Method and Description |
---|---|
String |
getLabel()
获取 ButtonBase 控件上显示的文本。
|
boolean |
isAutoRepeat()
获取 如果用户按住鼠标按钮,是否发送重复的 buttonDown 事件。
|
boolean |
isStickyHighlighting()
获取 用户按下按钮时按钮是否显示其下方外观并在用户将鼠标从按钮移开时是否恢复外观的值。
|
void |
type(String keyCode)
用户按键时发送。
|
void |
type(String keyCode,
ModifierKey keyModifier)
用户按键时发送。
|
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 SparkButtonBase(JtfObjectHandle handle, Desktop desktop)
handle
- 可确定 SparkButtonBase 的句柄desktop
- 此对象所在的桌面public void type(String keyCode)
keyCode
- 按下的键的键码值public void type(String keyCode, ModifierKey keyModifier)
keyCode
- 按下的键的键码值keyModifier
- 表示当此操作发生时所按下的键或键组合的常数(如果有),其中包括:flexAlt、flexControl、flexControlAlt、flexControlShift、flexControlShiftAlt、flexShift 或 flexShiftAlt。例如,如果按下了 Shift 和 Alt 键,则值应是 flexShiftAlt。public boolean isAutoRepeat()
public String getLabel()
public boolean isStickyHighlighting()
Copyright 2009-2012 Micro Focus. All Rights Reserved.