public class SparkRichEditableText extends SparkObject
Modifier | Constructor and Description |
---|---|
protected |
SparkRichEditableText(JtfObjectHandle handle,
Desktop desktop)
Creates a new SparkRichEditableText with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
void |
dragCancel()
The event triggered when a drag operation is cancelled.
|
void |
dragCancel(ModifierKey keyModifier)
The event triggered when a drag operation is cancelled.
|
void |
dragDrop(String action)
The event triggered when the dragged item is dropped.
|
void |
dragDrop(String action,
String draggedItem)
The event triggered when the dragged item is dropped.
|
void |
dragDrop(String action,
String draggedItem,
ModifierKey keyModifier)
The event triggered when the dragged item is dropped.
|
void |
dragStart(String draggedItem)
The event triggered when the drag/drop operation begins.
|
void |
dragStart(String draggedItem,
ModifierKey keyModifier)
The event triggered when the drag/drop operation begins.
|
List<String> |
getColumnNames()
Gets a list containing the names of all columns in the data.
|
double |
getContentHeight()
Gets the height of the text.
|
double |
getContentWidth()
Gets the width of the text.
|
int |
getFirstVisibleRow()
Gets the index of the first visible child.
|
double |
getHeightInLines()
Gets the default height of the control, measured in lines.
|
double |
getHorizontalScrollPosition()
Gets the number of pixels by which the text is scrolled horizontally.
|
String |
getImeMode()
Gets the IME (input method editor) mode.
|
int |
getLastVisibleRow()
Gets the index of the last visible child.
|
int |
getMaxChars()
Gets the maximum number of characters that the text field can contain, as entered by a user.
|
int |
getNumColumns()
Gets the total number of columns in the data available.
|
int |
getNumRows()
Gets the total number of rows of data available.
|
String |
getRestrict()
Gets the set of characters that a user can enter into the text field.
|
int |
getSelectionActivePosition()
Gets a character position, relative to the beginning of the text String, specifying the end of the selection that moves when the selection is extended with the arrow keys.
|
int |
getSelectionAnchorPosition()
Gets a character position, relative to the beginning of the text String, specifying the end of the selection that stays fixed when the selection is extended with the arrow keys.
|
String |
getSelectionHighlighting()
Gets a value whether the text selection is highlighted.
|
String |
getText()
Gets the text String displayed by this component.
|
List<List<String>> |
getValues(int start,
int end)
Returns a matrix containing the automation values of all parts of the components.
|
double |
getVerticalScrollPosition()
Gets the number of pixels by which the text is scrolled vertically.
|
double |
getWidthInChars()
Gets the default width of the control, measured in em units.
|
void |
input(String text)
Dispatched when the user types, deletes, or pastes text into the control.
|
boolean |
isClipAndEnableScrolling()
Gets whether to clip the children to the boundaries of the viewport.
|
boolean |
isDisplayAsPassword()
Gets whether the text field is a password text field.
|
boolean |
isEditable()
Gets a flag indicating whether the user is allowed to edit the text in this control.
|
boolean |
isEnableIME()
Gets a flag that indicates whether the IME should be enabled when the component receives focus.
|
boolean |
isMultiline()
Gets whether the user can enter multiline text.
|
boolean |
isSelectable()
Gets a flag indicating whether the content is selectable with the mouse, or with the keyboard when the control has the keyboard focus.
|
void |
mouseScroll()
Dispatched when the mouse is used to move the scroll bars on this container.
|
void |
mouseScroll(int delta)
Dispatched when the mouse is used to move the scroll bars on this container.
|
void |
selectText(int beginIndex,
int endIndex)
Dispatched when text is selected.
|
void |
type(String keyCode)
Dispatched when the user presses a key.
|
void |
type(String keyCode,
ModifierKey keyModifier)
Dispatched when the user presses a key.
|
changeFocus, changeFocus, changeFocus, getAutomationClassName, getAutomationIndex, getAutomationName, getClassName, getCurrentState, getErrorColor, getErrorString, getId, getNumAutomationChildren, getPercentHeight, getPercentWidth, getScaleX, getScaleY, getThemeColor, getToolTip, isEnabled, isFocusEnabled, isUseHandCursor, move, move, move, setFocus
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getAlpha, getHeight, getStyle, getTabIndex, getWidth, getX, getY, isMouseEnabled, isTabChildren, isTabEnabled, isVisible, mouseMove, mouseMove, nativeToString, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, 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 SparkRichEditableText(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the SparkRichEditableTextdesktop
- the desktop on which this object livespublic void dragCancel()
public void dragCancel(ModifierKey keyModifier)
keyModifier
- a constant that indicates which key or key combination, if any, was pressed while this operation took place. One of: flexAlt, flexControl, flexControlAlt, flexControlShift, flexControlShiftAlt, flexShift, or flexShiftAlt. For example, if the Shift and Alt keys were pressed, then the value would be flexShiftAlt.public void dragDrop(String action)
action
- the requested action. One of DragManager.COPY, DragManager.LINK, DragManager.MOVE, DragManager.NONE.public void dragDrop(String action, String draggedItem)
action
- the requested action. One of DragManager.COPY, DragManager.LINK, DragManager.MOVE, DragManager.NONE.draggedItem
- list item that's being draggedpublic void dragDrop(String action, String draggedItem, ModifierKey keyModifier)
action
- the requested action. One of DragManager.COPY, DragManager.LINK, DragManager.MOVE, DragManager.NONE.draggedItem
- list item that's being draggedkeyModifier
- a constant that indicates which key or key combination, if any, was pressed while this operation took place. One of: flexAlt, flexControl, flexControlAlt, flexControlShift, flexControlShiftAlt, flexShift, or flexShiftAlt. For example, if the Shift and Alt keys were pressed, then the value would be flexShiftAlt.public void dragStart(String draggedItem)
draggedItem
- list item that's being draggedpublic void dragStart(String draggedItem, ModifierKey keyModifier)
draggedItem
- list item that's being draggedkeyModifier
- a constant that indicates which key or key combination, if any, was pressed while this operation took place. One of: flexAlt, flexControl, flexControlAlt, flexControlShift, flexControlShiftAlt, flexShift, or flexShiftAlt. For example, if the Shift and Alt keys were pressed, then the value would be flexShiftAlt.public List<List<String>> getValues(int start, int end)
start
- the index of the starting child. The default value is 0.end
- the index of the ending child. The default value is 0.public void input(String text)
text
- the character or sequence of characters entered by the userpublic void mouseScroll()
public void mouseScroll(int delta)
delta
- the amount to scrollpublic void selectText(int beginIndex, int endIndex)
beginIndex
- the index of the first character selectedendIndex
- the index of the last character selectedpublic void type(String keyCode)
keyCode
- the key code value of the key pressedpublic void type(String keyCode, ModifierKey keyModifier)
keyCode
- the key code value of the key pressedkeyModifier
- a constant that indicates which key or key combination, if any, was pressed while this operation took place. One of: flexAlt, flexControl, flexControlAlt, flexControlShift, flexControlShiftAlt, flexShift, or flexShiftAlt. For example, if the Shift and Alt keys were pressed, then the value would be flexShiftAlt.public boolean isClipAndEnableScrolling()
public List<String> getColumnNames()
public double getContentHeight()
public double getContentWidth()
public boolean isDisplayAsPassword()
public boolean isEditable()
public boolean isEnableIME()
public int getFirstVisibleRow()
public double getHeightInLines()
public double getHorizontalScrollPosition()
public String getImeMode()
public int getLastVisibleRow()
public int getMaxChars()
public boolean isMultiline()
public int getNumColumns()
public int getNumRows()
public String getRestrict()
public boolean isSelectable()
public int getSelectionActivePosition()
public int getSelectionAnchorPosition()
public String getSelectionHighlighting()
public String getText()
getText
in class TestObject
public double getVerticalScrollPosition()
public double getWidthInChars()
Copyright 2009-2012 Micro Focus. All Rights Reserved.