public class SapTextEdit extends SapShell
Modifier | Constructor and Description |
---|---|
protected |
SapTextEdit(JtfObjectHandle handle,
Desktop desktop)
Creates a new SapTextEdit with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
void |
contextMenu()
Requests the context menu.
|
void |
doubleClick()
Double clicks the text edit control.
|
int |
getCurrentColumn()
Gets the column index in which the caret is currently positioned.
|
SapContextMenu |
getCurrentContextMenu()
Gets the current context menu.
|
int |
getCurrentLine()
Gets the line index in which the caret is currently positioned.
|
int |
getFirstVisibleLine()
Gets the first visible line which is visualized at the top border of the text edit control.
|
int |
getLastVisibleLine()
Gets the last visible line which is visualized at the bottom border of the text edit control.
|
int |
getLineCount()
Gets the number of all lines in the text edit control.
|
String |
getLineText(int line)
Returns the text of the specified line.
|
String |
getSelectedText()
Gets the currently selected text.
|
int |
getSelectionEndColumn()
Gets the column index in which the selection ends.
|
int |
getSelectionEndLine()
Gets the line index in which the selection ends.
|
int |
getSelectionIndexEnd()
Gets the overall end index of the text selection.
|
int |
getSelectionIndexStart()
Gets the overall start index of the text selection.
|
int |
getSelectionStartColumn()
Gets the column start index of the text selection.
|
int |
getSelectionStartLine()
Gets the line index in which the selection starts.
|
boolean |
isBreakpointLine(int line)
whether the specified line contains a breakpoint.
|
boolean |
isCommentLine(int line)
Returns true if the specified line is a comment line.
|
boolean |
isHighlightedLine(int line)
Returns true if the specified line is highlighted.
|
boolean |
isProtectedLine(int line)
Returns true if the specified line is protected.
|
void |
pressF1()
Presses the F1 key.
|
void |
pressF4()
Presses the F4 key.
|
void |
setSelectionIndexes(int start,
int end)
Selects the text within the specified range.
|
void |
setText(String text)
Sets the specified text in the text edit control.
|
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
- the handle that identifies the SapTextEditdesktop
- the desktop on which this object livespublic void contextMenu()
public void doubleClick()
public String getLineText(int line)
line
- index of the line. The value is zero-based.public boolean isBreakpointLine(int line)
line
- index of the line. The value is zero-based.public boolean isCommentLine(int line)
line
- index of the line. The value is zero-based.public boolean isHighlightedLine(int line)
line
- index of the line. The value is zero-based.public boolean isProtectedLine(int line)
line
- index of the line. The value is zero-based.public void pressF1()
public void pressF4()
public void setSelectionIndexes(int start, int end)
start
- start index (inclusive). The value is zero-based.end
- end index (exclusive). The value is zero-based.public void setText(String text)
text
- textpublic 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.