Package org.netbeans.jemmy.drivers.text
Class AWTTextAPIDriver
- java.lang.Object
-
- org.netbeans.jemmy.drivers.LightSupportiveDriver
-
- org.netbeans.jemmy.drivers.text.TextAPIDriver
-
- org.netbeans.jemmy.drivers.text.AWTTextAPIDriver
-
- All Implemented Interfaces:
LightDriver,TextDriver
public class AWTTextAPIDriver extends TextAPIDriver
TextDriver for AWT component types. Uses API calls.- Author:
- Alexandre Iline(alexandre.iline@sun.com)
-
-
Constructor Summary
Constructors Constructor Description AWTTextAPIDriver()Constructs a AWTTextAPIDriver.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCaretPosition(ComponentOperator oper)Returns current caret position.intgetSelectionEnd(ComponentOperator oper)Returns a caret position of selection end.intgetSelectionStart(ComponentOperator oper)Returns a caret position of selection start.java.lang.StringgetText(ComponentOperator oper)Returns operator's text.-
Methods inherited from class org.netbeans.jemmy.drivers.text.TextAPIDriver
changeCaretPosition, changeText, clearText, enterText, selectText, typeText
-
Methods inherited from class org.netbeans.jemmy.drivers.LightSupportiveDriver
checkSupported, getSupported
-
-
-
-
Method Detail
-
getText
public java.lang.String getText(ComponentOperator oper)
Description copied from class:TextAPIDriverReturns operator's text.- Specified by:
getTextin classTextAPIDriver- Parameters:
oper- an operator.- Returns:
- string representing component text.
-
getCaretPosition
public int getCaretPosition(ComponentOperator oper)
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
public int getSelectionStart(ComponentOperator oper)
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
public int getSelectionEnd(ComponentOperator oper)
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.
-
-