public class MobileTextField extends MobileObject
Modifier | Constructor and Description |
---|---|
protected |
MobileTextField(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 MobileTextField。
|
Modifier and Type | Method and Description |
---|---|
void |
clearText()
清除文本框中的所有内容。
|
void |
setText(String text)
替换文本字段中的文本为新文本。
|
void |
typePasswordKeys(String keys)
将加密的密码输入文本字段。
|
void |
typePasswordKeys(String keys,
int delay)
将加密的密码输入文本字段。
|
void |
typePasswordKeys(String keys,
int delay,
boolean ensureFocus)
将加密的密码输入文本字段。
|
click, click, drag, dragTo, dragToObject, getText, isEnabled, isFocused, isSelected, longClick, longClick, multiTouch, pinchIn, pinchIn, pinchOut, pinchOut, swipe, swipe, swipe, swipeDown, swipeDown, swipeDown, swipeLeft, swipeLeft, swipeLeft, swipeRight, swipeRight, swipeRight, swipeUp, swipeUp, swipeUp, swipeWithSegments, swipeWithSegments, swipeWithSegments, twoPointerMultiTouch, twoPointerMultiTouch, twoPointerMultiTouch, typeKeys, typeKeys, typeKeys
captureBitmap, 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, 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 MobileTextField(JtfObjectHandle handle, Desktop desktop)
handle
- 可确定 MobileTextField 的句柄desktop
- 此对象所在的桌面public void clearText()
public void setText(String text)
text
- 可设置的文本public void typePasswordKeys(String keys)
在输入加密的密码之前清除任何现有文本的文本字段。
keys
- 加密密码public void typePasswordKeys(String keys, int delay)
在输入加密的密码之前清除任何现有文本的文本字段。
keys
- 加密密码delay
- 按键之间延迟时间(毫秒)public void typePasswordKeys(String keys, int delay, boolean ensureFocus)
在输入加密的密码之前清除任何现有文本的文本字段。
keys
- 加密密码delay
- 按键之间延迟时间(毫秒)ensureFocus
- 确定控件是否一定具有按键焦点。默认为 true
Copyright 2009-2012 Micro Focus. All Rights Reserved.