Class SwingTextAPIDriver
java.lang.Object
org.netbeans.jemmy.drivers.LightSupportiveDriver
org.netbeans.jemmy.drivers.text.TextAPIDriver
org.netbeans.jemmy.drivers.text.SwingTextAPIDriver
- All Implemented Interfaces:
LightDriver, TextDriver
TextDriver for swing component types.
Uses API calls.
- Author:
- Alexandre Iline(alexandre.iline@sun.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns current caret position.intReturns a caret position of selection end.intReturns a caret position of selection start.getText(ComponentOperator oper) Returns operator's text.Methods inherited from class TextAPIDriver
changeCaretPosition, changeText, clearText, enterText, selectText, typeTextMethods inherited from class LightSupportiveDriver
checkSupported, getSupported
-
Constructor Details
-
SwingTextAPIDriver
public SwingTextAPIDriver()Constructs a SwingTextAPIDriver.
-
-
Method Details
-
getText
Description copied from class:TextAPIDriverReturns operator's text.- Specified by:
getTextin classTextAPIDriver- Parameters:
oper- an operator.- Returns:
- string representing component text.
-
getCaretPosition
Description copied from class:TextAPIDriverReturns current caret position.- Specified by:
getCaretPositionin classTextAPIDriver- Parameters:
oper- an operator.- Returns:
- int represnting current operator's caret position.
-
getSelectionStart
Description copied from class:TextAPIDriverReturns a caret position of selection start.- Specified by:
getSelectionStartin classTextAPIDriver- Parameters:
oper- an operator.- Returns:
- int represnting index of operator's selection start.
-
getSelectionEnd
Description copied from class:TextAPIDriverReturns a caret position of selection end.- Specified by:
getSelectionEndin classTextAPIDriver- Parameters:
oper- an operator.- Returns:
- int represnting index of operator's selection end.
-