public class SparkTextBase extends FlexObject
Modifier | Constructor and Description |
---|---|
protected |
SparkTextBase(JtfObjectHandle handle,
Desktop desktop)
Creates a new SparkTextBase 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.
|
int |
getMaxDisplayedLines()
Gets an integer which determines whether, and where, the text gets truncated.
|
String |
getText()
Gets the text displayed by this text component.
|
boolean |
isTruncated()
Gets whether the text has been truncated.
|
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 SparkTextBase(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the SparkTextBasedesktop
- 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 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 isTruncated()
public int getMaxDisplayedLines()
public String getText()
getText
in class TestObject
Copyright 2009-2012 Micro Focus. All Rights Reserved.