public class SapTextField extends SapComponent
| Modifier | Constructor and Description |
|---|---|
protected |
SapTextField(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 SapTextField。
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplayedText()
获取 屏幕上显示的文本,包括前导或尾随空格。
|
boolean |
isPassword()
获取 文本字段是否为密码文本字段。
|
void |
setPasswordText(String password)
发送加密密码至对象。
|
void |
setText(String text)
设置控件文本为指定文本。
|
getAccessibilityText, getAccessibilityTextOnRequest, getAccessibilityTooltip, getDefaultTooltip, getHeight, getIconName, getLeft, getName, getScreenLeft, getScreenTop, getTooltip, getTop, getWidth, isChangeable, isFocused, isModified, isSymbolFont, setFocus, showContextMenucaptureBitmap, 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, 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 SapTextField(JtfObjectHandle handle, Desktop desktop)
handle - 可确定 SapTextField 的句柄desktop - 此对象所在的桌面public void setPasswordText(String password)
password - 加密密码public void setText(String text)
text - 新建文本组件的文本public String getDisplayedText()
public boolean isPassword()
Copyright 2009-2012 Micro Focus. All Rights Reserved.