| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
protected class JTree.AccessibleJTree extends JComponent.AccessibleJComponent implements AccessibleSelection, TreeSelectionListener, TreeModelListener, TreeExpansionListener
This class implements accessibility support for the
JTree
class. It provides an implementation of the
Java Accessibility API appropriate to tree user-interface elements.
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 | |
---|---|
protected class |
This class implements accessibility support for the JTree child. |
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 | |
---|---|
|
Method Summary | |
---|---|
void |
addAccessibleSelection(int i) Adds the specified selected item in the object to the object's selection. |
void |
Clears the selection in the object, so that nothing in the object is selected. |
void |
Fire a visible data property change notification. |
Accessible |
Returns the Accessible child, if one exists,
contained at the local coordinate Point .
|
Accessible |
getAccessibleChild(int i) Return the nth Accessible child of the object. |
int |
Returns the number of top-level children nodes of this JTree. |
int |
Get the index of this object in its accessible parent. |
AccessibleRole |
Get the role of this object. |
AccessibleSelection |
Get the AccessibleSelection associated with this object. |
Accessible |
getAccessibleSelection(int i) Returns an Accessible representing the specified selected item in the object. |
int |
Returns the number of items currently selected. |
boolean |
isAccessibleChildSelected(int i) Returns true if the current child of this object is selected. |
void |
removeAccessibleSelection(int i) Removes the specified selected item in the object from the object's selection. |
void |
Causes every selected item in the object to be selected if the object supports multiple selections. |
void |
Tree Collapsed notification. |
void |
Tree Model Expansion notification. |
void |
Tree Model Node change notification. |
void |
Tree Model Node change notification. |
void |
Tree Model Node change notification. |
void |
Tree Model structure change change notification. |
void |
Tree Selection Listener value change method. |
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 |
---|
public JTree.AccessibleJTree()
Method Detail |
---|
public void addAccessibleSelection(int i)
i
- the zero-based index of selectable itemspublic void clearAccessibleSelection()
public void fireVisibleDataPropertyChange()
public Accessible getAccessibleAt(Point p)
Accessible
child, if one exists,
contained at the local coordinate Point
.
Otherwise returns null
.
getAccessibleAt
in class Container.AccessibleAWTContainer
p
- point in local coordinates of this Accessible
Accessible
, if it exists,
at the specified location; else null
public Accessible getAccessibleChild(int i)
getAccessibleChild
in class JComponent.AccessibleJComponent
i
- zero-based index of childpublic int getAccessibleChildrenCount()
getAccessibleChildrenCount
in class JComponent.AccessibleJComponent
public int getAccessibleIndexInParent()
getAccessibleIndexInParent
in class Component.AccessibleAWTComponent
public AccessibleRole getAccessibleRole()
getAccessibleRole
in class JComponent.AccessibleJComponent
public AccessibleSelection getAccessibleSelection()
getAccessibleSelection
in class AccessibleContext
public Accessible getAccessibleSelection(int i)
i
- the zero-based index of selected itemspublic int getAccessibleSelectionCount()
public boolean isAccessibleChildSelected(int i)
i
- the zero-based index of the child in this Accessible object.public void removeAccessibleSelection(int i)
i
- the zero-based index of selectable itemspublic void selectAllAccessibleSelection()
public void treeCollapsed(TreeExpansionEvent e)
e
- a TreeExpansionEventpublic void treeExpanded(TreeExpansionEvent e)
e
- a Tree node insertion eventpublic void treeNodesChanged(TreeModelEvent e)
e
- a Tree Model eventpublic void treeNodesInserted(TreeModelEvent e)
e
- a Tree node insertion eventpublic void treeNodesRemoved(TreeModelEvent e)
e
- a Tree node(s) removal eventpublic void treeStructureChanged(TreeModelEvent e)
e
- a Tree Model eventpublic void valueChanged(TreeSelectionEvent e)
e
- ListSelectionEvent
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |