| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
protected class JLabel.AccessibleJLabel extends JComponent.AccessibleJComponent implements AccessibleText, AccessibleExtendedComponent
The class used to obtain the accessible role for this object.
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. As of 1.4, support for long term storage
of all JavaBeansTM
has been added to the java.beans
package.
Please see {@link java.beans.XMLEncoder}.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent.AccessibleJComponent |
---|
JComponent.AccessibleJComponent.AccessibleContainerHandler, JComponent.AccessibleJComponent.AccessibleFocusHandler |
Nested classes/interfaces inherited from class java.awt.Container.AccessibleAWTContainer |
---|
Container.AccessibleAWTContainer.AccessibleContainerHandler |
Nested classes/interfaces inherited from class java.awt.Component.AccessibleAWTComponent |
---|
Component.AccessibleAWTComponent.AccessibleAWTComponentHandler, Component.AccessibleAWTComponent.AccessibleAWTFocusHandler |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent.AccessibleJComponent |
---|
accessibleContainerHandler, accessibleFocusHandler |
Fields inherited from class java.awt.Container.AccessibleAWTContainer |
---|
accessibleContainerHandler |
Fields inherited from class java.awt.Component.AccessibleAWTComponent |
---|
accessibleAWTComponentHandler, accessibleAWTFocusHandler |
Constructor Summary | |
---|---|
protected |
|
Method Summary | |
---|---|
AccessibleIcon[] |
Get the AccessibleIcons associated with this object if one or more exist. |
AccessibleKeyBinding |
Returns key bindings associated with this object |
String |
Get the accessible name of this object. |
AccessibleRelationSet |
Get the AccessibleRelationSet associated with this object if one exists. |
AccessibleRole |
Get the role of this object. |
AccessibleText |
Gets the AccessibleText associated with this object presenting text on the display. |
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 |
Return the zero-based offset of the caret. |
AttributeSet |
getCharacterAttribute(int i) Return the AttributeSet for a given character at a given index |
Rectangle |
getCharacterBounds(int i) Determine the bounding box of the character at the given index into the string. |
int |
Return the number of characters (valid indicies) |
int |
Given a point in local coordinates, return the zero-based index of the character under that Point. |
String |
Returns the portion of the text that is selected. |
int |
Returns the end offset within the selected text. |
int |
Returns the start offset within the selected text. |
String |
Returns the titled border text |
String |
Returns the tool tip text |
Methods inherited from class java.awt.Container.AccessibleAWTContainer |
---|
addPropertyChangeListener, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected JLabel.AccessibleJLabel()
Method Detail |
---|
public AccessibleIcon[] getAccessibleIcon()
getAccessibleIcon
in class AccessibleContext
public AccessibleKeyBinding getAccessibleKeyBinding()
getAccessibleKeyBinding
in class JComponent.AccessibleJComponent
public String getAccessibleName()
getAccessibleName
in class JComponent.AccessibleJComponent
public AccessibleRelationSet getAccessibleRelationSet()
getAccessibleRelationSet
in class AccessibleContext
public AccessibleRole getAccessibleRole()
getAccessibleRole
in class JComponent.AccessibleJComponent
public AccessibleText getAccessibleText()
getAccessibleText
in class AccessibleContext
public String getAfterIndex(int part, int index)
part
- the AccessibleText.CHARACTER, AccessibleText.WORD,
or AccessibleText.SENTENCE to retrieveindex
- an index within the text >= 0public String getAtIndex(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 >= 0public int getCaretPosition()
public AttributeSet getCharacterAttribute(int i)
i
- the zero-based index into the textpublic Rectangle getCharacterBounds(int i)
i
- the index into the Stringpublic int getCharCount()
public int getIndexAtPoint(Point p)
p
- the Point in local coordinatespublic String getSelectedText()
public int getSelectionEnd()
public int getSelectionStart()
public String getTitledBorderText()
getTitledBorderText
in class JComponent.AccessibleJComponent
public String getToolTipText()
getToolTipText
in class JComponent.AccessibleJComponent
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |