|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
The AccessibleText interface should be implemented by all classes that
present textual information on the display. This interface provides the
standard mechanism for an assistive technology to access that text via its
content, attributes, and spatial location. Applications can determine if an
object supports the AccessibleText interface by calling the
AccessibleContext.getAccessibleText() method of AccessibleContext. If
the return value is not null, the object supports this interface.
| Field Summary | ||
static int |
CHAR
Constant used to indicate that the part of the text that should be retrieved is a character. |
|
static int |
LINE
Constant used to indicate that the part of the text that should be retrieved is a line. |
|
static int |
WORD
Constant used to indicate that the part of the text that should be retrieved is a word. |
|
| Method Summary | ||
String |
getAtIndex(int part,
int index)
Returns the String at a given index. |
|
int |
getCaretPosition()
Returns the zero-based offset of the caret. |
|
int |
getCharCount()
Returns the zero-based offset of the caret. |
|
int |
getLineCount()
Retrieves number of lines in this field. |
|
int |
getSelectionEnd()
Returns the end offset within the selected text. |
|
int |
getSelectionStart()
Returns the start offset within the selected text. |
|
String |
getSelectionText()
Returns the portion of the text that is selected. |
|
String |
getWholeText()
Returns the whole text as one string |
|
| Field Detail |
public static final int CHAR
public static final int LINE
public static final int WORD
| Method Detail |
public String getAtIndex(int part, int index)
part - one of CHAR, WORD, LINEindex - -
position in text fieldpublic int getCaretPosition()
public int getCharCount()
public int getLineCount()
public int getSelectionEnd()
public int getSelectionStart()
public String getSelectionText()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2009 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.