public class SapTextEdit extends SapShell
Modifier | Constructor and Description |
---|---|
protected |
SapTextEdit(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 SapTextEdit。
|
Modifier and Type | Method and Description |
---|---|
void |
contextMenu()
请求上下文菜单。
|
void |
doubleClick()
双击文本编辑控件。
|
int |
getCurrentColumn()
获取 脱字号当前所在的列索引。.
|
SapContextMenu |
getCurrentContextMenu()
获取 当前上下文菜单。
|
int |
getCurrentLine()
获取 脱字号当前所在的行索引。.
|
int |
getFirstVisibleLine()
获取 在文本编辑控件的上边框上显示的第一个可见行。.
|
int |
getLastVisibleLine()
获取 在文本编辑控件的下边框上显示的最后一个可见行。.
|
int |
getLineCount()
获取 文本编辑控件中的总行数。
|
String |
getLineText(int line)
返回指定行的文本。
|
String |
getSelectedText()
获取 当前所选文本。
|
int |
getSelectionEndColumn()
获取 选定内容结束所在的列索引。.
|
int |
getSelectionEndLine()
获取 选定内容结束所在的行索引。.
|
int |
getSelectionIndexEnd()
获取 文本选定内容的总体末尾索引。.
|
int |
getSelectionIndexStart()
获取 文本选定内容的总体起始索引。.
|
int |
getSelectionStartColumn()
获取 文本选定内容的列起始索引。.
|
int |
getSelectionStartLine()
获取 选定内容开始所在的行索引。.
|
boolean |
isBreakpointLine(int line)
指定行是否包含断点。
|
boolean |
isCommentLine(int line)
如果指定行为注释行,则返回 ture。
|
boolean |
isHighlightedLine(int line)
如果指定行突出显示,则返回 ture。
|
boolean |
isProtectedLine(int line)
如果指定行受保护,则返回 ture。
|
void |
pressF1()
按 F1 键。
|
void |
pressF4()
按 F4 键。
|
void |
setSelectionIndexes(int start,
int end)
选择指定范围内的文本。
|
void |
setText(String text)
设置文本编辑控件中的指定文本。
|
isDragDropSupported
getAccessibilityText, getAccessibilityTextOnRequest, getAccessibilityTooltip, getDefaultTooltip, getHeight, getIconName, getLeft, getName, getScreenLeft, getScreenTop, getTooltip, getTop, getWidth, isChangeable, isFocused, isModified, isSymbolFont, setFocus, showContextMenu
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 SapTextEdit(JtfObjectHandle handle, Desktop desktop)
handle
- 可确定 SapTextEdit 的句柄desktop
- 此对象所在的桌面public void contextMenu()
public void doubleClick()
public String getLineText(int line)
line
- 行的索引. The value is zero-based.public boolean isBreakpointLine(int line)
line
- 行的索引. The value is zero-based.public boolean isCommentLine(int line)
line
- 行的索引. The value is zero-based.public boolean isHighlightedLine(int line)
line
- 行的索引. The value is zero-based.public boolean isProtectedLine(int line)
line
- 行的索引. The value is zero-based.public void pressF1()
public void pressF4()
public void setSelectionIndexes(int start, int end)
start
- 起始索引(非独占). The value is zero-based.end
- 末尾索引(独占). The value is zero-based.public void setText(String text)
text
- 文本public int getCurrentColumn()
public SapContextMenu getCurrentContextMenu()
public int getCurrentLine()
public int getFirstVisibleLine()
public int getLastVisibleLine()
public int getLineCount()
public String getSelectedText()
public int getSelectionEndColumn()
public int getSelectionEndLine()
public int getSelectionIndexEnd()
public int getSelectionIndexStart()
public int getSelectionStartColumn()
public int getSelectionStartLine()
Copyright 2009-2012 Micro Focus. All Rights Reserved.