Spec-Zone .ru
спецификации, руководства, описания, API
|
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.accessibility.AccessibleContext | +--javax.swing.JComponent.AccessibleJComponent | +--javax.swing.text.JTextComponent.AccessibleJTextComponent
Accessibility implementation for JTextComponent.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. A future release of Swing will provide support for long term persistence.
Inner classes inherited from class javax.swing.JComponent.AccessibleJComponent |
JComponent.AccessibleJComponent.AccessibleContainerHandler |
Fields inherited from class javax.swing.JComponent.AccessibleJComponent |
accessibleContainerHandler |
Fields inherited from interface javax.accessibility.AccessibleText |
CHARACTER,
SENTENCE,
WORD |
Constructor Summary | |
JTextComponent.AccessibleJTextComponent()
Constructs an AccessibleJTextComponent. |
Method Summary | |
void |
caretUpdate(CaretEvent e)
Handles caret updates (fire appropriate property change event, which are AccessibleContext.ACCESSIBLE_CARET_PROPERTY and AccessibleContext.ACCESSIBLE_SELECTION_PROPERTY). |
void |
changedUpdate(DocumentEvent e)
Handles document remove (fire appropriate property change event, which is AccessibleContext.ACCESSIBLE_TEXT_PROPERTY). |
AccessibleRole |
getAccessibleRole()
Gets the role of this object. |
AccessibleStateSet |
getAccessibleStateSet()
Gets the state set of the JTextComponent. |
AccessibleText |
getAccessibleText()
Gets the AccessibleText interface associated with this object. |
String |
getAfterIndex(int part,
int index)
Returns the String after a given index. |
String |
getAtIndex(int part,
int index)
Returns the String at a given index. |
String |
getBeforeIndex(int part,
int index)
Returns the String before a given index. |
int |
getCaretPosition()
Returns the zero-based offset of the caret. |
AttributeSet |
getCharacterAttribute(int i)
Returns the AttributeSet for a given character (at a given index). |
Rectangle |
getCharacterBounds(int i)
Determines the bounding box of the character at the given index into the string. |
int |
getCharCount()
Returns the number of characters (valid indicies) |
int |
getIndexAtPoint(Point p)
Given a point in local coordinates, return the zero-based index of the character under that Point. |
String |
getSelectedText()
Returns the portion of the text that is selected. |
int |
getSelectionEnd()
Returns the end offset within the selected text. |
int |
getSelectionStart()
Returns the start offset within the selected text. |
void |
insertUpdate(DocumentEvent e)
Handles document insert (fire appropriate property change event which is AccessibleContext.ACCESSIBLE_TEXT_PROPERTY). |
void |
removeUpdate(DocumentEvent e)
Handles document remove (fire appropriate property change event, which is AccessibleContext.ACCESSIBLE_TEXT_PROPERTY). |
Methods inherited from class javax.accessibility.AccessibleContext |
firePropertyChange,
getAccessibleAction,
getAccessibleSelection,
getAccessibleValue,
setAccessibleDescription,
setAccessibleName,
setAccessibleParent |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public JTextComponent.AccessibleJTextComponent()
Method Detail |
public void caretUpdate(CaretEvent e)
e
- the CaretEventpublic void insertUpdate(DocumentEvent e)
e
- the DocumentEventpublic void removeUpdate(DocumentEvent e)
e
- the DocumentEventpublic void changedUpdate(DocumentEvent e)
e
- the DocumentEventpublic AccessibleStateSet getAccessibleStateSet()
AccessibleStateSet
,
AccessibleState
,
JComponent.addPropertyChangeListener(java.beans.PropertyChangeListener)
public AccessibleRole getAccessibleRole()
AccessibleRole
public AccessibleText getAccessibleText()
public int getIndexAtPoint(Point p)
p
- the Point in local coordinatespublic Rectangle getCharacterBounds(int i)
i
- the index into the String >= 0public int getCharCount()
public int getCaretPosition()
public AttributeSet getCharacterAttribute(int i)
i
- the zero-based index into the textpublic int getSelectionStart()
public int getSelectionEnd()
public String getSelectedText()
public String getAtIndex(int part, int index)
part
- the AccessibleText.CHARACTER, AccessibleText.WORD,
or AccessibleText.SENTENCE to retrieveindex
- an index within the text >= 0public String getAfterIndex(int part, int index)
part
- the AccessibleText.CHARACTER, AccessibleText.WORD,
or AccessibleText.SENTENCE to retrieveindex
- an index within the text >= 0public String getBeforeIndex(int part, int index)
part
- the AccessibleText.CHARACTER, AccessibleText.WORD,
or AccessibleText.SENTENCE to retrieveindex
- an index within the text >= 0
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |