public class SparkSkinnableTextBase extends SparkObject
Modifier | Constructor and Description |
---|---|
protected |
SparkSkinnableTextBase(JtfObjectHandle handle,
Desktop desktop)
Creates a new SparkSkinnableTextBase with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getColumnNames()
Gets a list containing the names of all columns in the data.
|
int |
getFirstVisibleRow()
Gets the index of the first visible child.
|
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.
|
double |
getMaxWidth()
Gets the maximum recommended width of the component to be considered by the parent during layout.
|
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.
|
void |
input(String text)
Dispatched when the user types, deletes, or pastes text into the control.
|
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 |
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 SparkSkinnableTextBase(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the SparkSkinnableTextBasedesktop
- the desktop on which this object livespublic 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 List<String> getColumnNames()
public boolean isDisplayAsPassword()
public boolean isEditable()
public boolean isEnableIME()
public int getFirstVisibleRow()
public String getImeMode()
public int getLastVisibleRow()
public int getMaxChars()
public double getMaxWidth()
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
Copyright 2009-2012 Micro Focus. All Rights Reserved.