|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AccessibleText
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 number of characters in this field. |
|
int |
getInputFilterStyle()
Retrieves input filter style such as TextFilter.PHONE. |
|
int |
getLineCount()
Returns the 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 |
|---|
static final int CHAR
static final int WORD
static final int LINE
| Method Detail |
|---|
String getWholeText()
String getAtIndex(int part,
int index)
part - one of CHAR, WORD, LINEindex - -
position in text field
int getCaretPosition()
int getCharCount()
String getSelectionText()
int getSelectionStart()
int getSelectionEnd()
int getLineCount()
int getInputFilterStyle()
TextFilter.PHONE. Refer to
the TextFilter style constants for possible values.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2010 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. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.