public class WPFTextBox extends WPFTextBoxBase
Modifier | Constructor and Description |
---|---|
protected |
WPFTextBox(JtfObjectHandle handle,
Desktop desktop)
Creates a new WPFTextBox with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears all the content from the text box.
|
int |
getCaretIndex()
Gets the insertion position index of the caret.
|
CharacterCasing |
getCharacterCasing()
Gets a value that indicates how characters are cased when they are manually entered into the text box.
|
int |
getCharacterIndexFromLineIndex(int lineIndex)
Returns the zero-based character index for the first character in the specified line.
|
int |
getFirstVisibleLineIndex()
Returns the line index for the first line that is currently visible in the text box.
|
int |
getLastVisibleLineIndex()
Returns the line index for the last line that is currently visible in the text box.
|
int |
getLineCount()
Gets the total number of lines in the text box.
|
int |
getLineIndexFromCharacterIndex(int charIndex)
Returns the zero-based line index for the line that contains the specified character index.
|
int |
getLineLength(int lineIndex)
Returns the number of characters in the specified line.
|
String |
getLineText(int lineIndex)
Returns the text that is currently displayed on the specified line.
|
int |
getMaxLength()
Gets the maximum number of characters that can be manually entered into the text box.
|
int |
getMaxLines()
Gets the maximum number of visible lines.
|
int |
getMinLines()
Gets the minimum number of visible lines.
|
String |
getSelectedText()
Gets the content of the current selection in the text box.
|
int |
getSelectionLength()
Gets a value that indicates the number of characters in the current selection in the text box.
|
int |
getSelectionStart()
Gets a character index for the beginning of the current selection.
|
TextAlignment |
getTextAlignment()
Gets the horizontal alignment of the contents of the text box.
|
TextWrapping |
getTextWrapping()
Gets a value indicating how the text box should wrap text.
|
void |
scrollToLine(int lineIndex)
Scrolls the line at the specified line index into view.
|
void |
select(int start,
int length)
Selects a range of text in the text box.
|
void |
setText(String text)
Sets the text.
|
appendText, canRedo, canUndo, copy, cut, getHorizontalScrollBarVisibility, getText, getVerticalScrollBarVisibility, isAcceptsReturn, isAcceptsTab, isAutoWordSelection, isReadOnly, isSpellCheckEnabled, isUndoEnabled, paste, redo, selectAll, 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 WPFTextBox(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the WPFTextBoxdesktop
- the desktop on which this object livespublic void clear()
public int getCharacterIndexFromLineIndex(int lineIndex)
lineIndex
- the zero-based index of the line to retrieve the initial character index forpublic int getFirstVisibleLineIndex()
public int getLastVisibleLineIndex()
public int getLineIndexFromCharacterIndex(int charIndex)
charIndex
- the zero-based character index for which to retrieve the associated line indexpublic int getLineLength(int lineIndex)
lineIndex
- the zero-based line index for which to return a character countpublic String getLineText(int lineIndex)
lineIndex
- the zero-based line index for which to retrieve the currently displayed textpublic void scrollToLine(int lineIndex)
lineIndex
- the zero-based line index of the line to scroll into viewpublic void select(int start, int length)
start
- the zero-based character index of the first character in the selectionlength
- the length of the selection, in characterspublic void setText(String text)
text
- the text to setpublic int getCaretIndex()
public CharacterCasing getCharacterCasing()
public int getLineCount()
public int getMaxLength()
public int getMaxLines()
public int getMinLines()
public String getSelectedText()
public int getSelectionLength()
public int getSelectionStart()
public TextAlignment getTextAlignment()
public TextWrapping getTextWrapping()
Copyright 2009-2012 Micro Focus. All Rights Reserved.