Package com.hp.lft.sdk.uiapro
Interface TextPattern
public interface TextPattern
The methods and properties used to interact with text.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deselect all / any selected text from the objectgetText()
void
scrollIntoView
(int numberOfUnits) Scrolls into view.void
scrollIntoView
(int numberOfUnits, TextUnit unitType) Scrolls into view.void
scrollIntoView
(int numberOfUnits, TextUnit unitType, Direction direction) Scrolls into view.void
scrollIntoView
(int numberOfUnits, TextUnit unitType, Direction direction, Alignment alignment) Scrolls into view.void
select
(int start) Selects the specified text in the object.void
select
(int start, int length) Selects the specified text in the object.void
Selects all the object's text.
-
Method Details
-
getText
- Returns:
- The object's text.
- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
getVisibleText
- Returns:
- The object's visible text.
- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
getSelection
- Returns:
- The object's selected text, or an empty string if no text is selected.
- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
getSupportedTextSelection
- Returns:
- The type of text selection that is supported by the control.
- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
clearSelection
Deselect all / any selected text from the object- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
scrollIntoView
Scrolls into view.- Parameters:
numberOfUnits
- 0-based index- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
scrollIntoView
Scrolls into view.- Parameters:
numberOfUnits
- 0-based indexunitType
- The unit type- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
scrollIntoView
void scrollIntoView(int numberOfUnits, TextUnit unitType, Direction direction) throws GeneralLeanFtException Scrolls into view.- Parameters:
numberOfUnits
- 0-based indexunitType
- The unit typedirection
- The direction of scrolling- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
scrollIntoView
void scrollIntoView(int numberOfUnits, TextUnit unitType, Direction direction, Alignment alignment) throws GeneralLeanFtException Scrolls into view.- Parameters:
numberOfUnits
- 0-based indexunitType
- The unit typedirection
- The direction of scrollingalignment
- The alignment- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
select
Selects the specified text in the object.- Parameters:
start
- The 0 based index position of the selection begin- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
select
Selects the specified text in the object.- Parameters:
start
- The 0 based index position of the selection beginlength
- The number of characters to be selected. If not specified all remaining text will be selected- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
selectAll
Selects all the object's text.- Throws:
GeneralLeanFtException
- if error occurs during execution.
-