public class WPFTextBoxBase extends WPFControl
Modifier | Constructor and Description |
---|---|
protected |
WPFTextBoxBase(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 WPFTextBoxBase。
|
Modifier and Type | Method and Description |
---|---|
void |
appendText(String textData)
附加字符串至文本控件的内容。
|
boolean |
canRedo()
获取 表示最近的撤销操作是否可以恢复的值。
|
boolean |
canUndo()
获取 表示最近的操作是否可以撤销的值。
|
void |
copy()
将文本编辑控件的当前选定内容复制到剪贴板。
|
void |
cut()
剪切文本编辑控件的当前选定内容并将其复制到剪贴板。
|
ScrollBarVisibility |
getHorizontalScrollBarVisibility()
获取 表示水平滚动条是否已显示的值。
|
String |
getText()
获取 文本控件中显示的文本。
|
ScrollBarVisibility |
getVerticalScrollBarVisibility()
获取 表示垂直滚动条是否已显示的值。
|
boolean |
isAcceptsReturn()
获取 表示用户按 ENTER 键时文本编辑控件如何做出响应的值。
|
boolean |
isAcceptsTab()
获取 表示用户按 TAB 键时文本编辑控件如何做出响应的值。
|
boolean |
isAutoWordSelection()
获取 确定用户是否通过使用鼠标拖选字以选择字的一部分以及是否选择此字的其他部分的值。
|
boolean |
isReadOnly()
获取 表示文本编辑控件是否针对与控件交互的用户只读的值。
|
boolean |
isSpellCheckEnabled()
获取 拼写检查是否已启用。
|
boolean |
isUndoEnabled()
获取 表示文本编辑控件的撤销支持是否已启用的值。
|
void |
paste()
粘贴文本编辑控件中当前选定内容上方的剪贴板的内容。
|
boolean |
redo()
撤销最近的撤销命令。
|
void |
selectAll()
选择文本编辑控件的全部内容。
|
boolean |
undo()
撤销最近的撤销命令。
|
getFontFamily, getFontSize, getTabIndex, isTabStop
getActualHeight, getActualWidth, getMaximumScrollPosition, getName, getScrollPosition, pointFromScreen, pointToScreen, scroll, scrollToPosition
bringIntoView, click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getToolTip, isEnabled, isFocused, mouseMove, mouseMove, openContextMenu, openContextMenu, openContextMenuSelect, openContextMenuSelect, openContextMenuSelect, openContextMenuSelect, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, setFocus, typeKeys, typeKeys, typeKeys, typePasswordKeys, typePasswordKeys, typePasswordKeys
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 WPFTextBoxBase(JtfObjectHandle handle, Desktop desktop)
handle
- 可确定 WPFTextBoxBase 的句柄desktop
- 此对象所在的桌面public void appendText(String textData)
textData
- 指定附加文本至文本控件当前内容的字符串public void copy()
public void cut()
public void paste()
public boolean redo()
public void selectAll()
public boolean undo()
public boolean isAcceptsReturn()
public boolean isAcceptsTab()
public boolean isAutoWordSelection()
public boolean canRedo()
public boolean canUndo()
public ScrollBarVisibility getHorizontalScrollBarVisibility()
public boolean isReadOnly()
public boolean isSpellCheckEnabled()
public boolean isUndoEnabled()
public String getText()
getText
in class TestObject
public ScrollBarVisibility getVerticalScrollBarVisibility()
Copyright 2009-2012 Micro Focus. All Rights Reserved.