javax.swing

Class JTree.AccessibleJTree

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.
Nested Class Summary
protected classJTree.AccessibleJTree.AccessibleJTreeNode
This class implements accessibility support for the JTree child.
Constructor Summary
AccessibleJTree()
Constructor
Method Summary
voidaddAccessibleSelection(int i)
Adds the specified selected item in the object to the object's selection.
voidclearAccessibleSelection()
Clears the selection in the object, so that nothing in the object is selected.
voidfireVisibleDataPropertyChange()
Fire a visible data property change notification.
AccessiblegetAccessibleAt(Point p)
Returns the Accessible child, if one exists, contained at the local coordinate Point.
AccessiblegetAccessibleChild(int i)
Return the nth Accessible child of the object.
intgetAccessibleChildrenCount()
Returns the number of top-level children nodes of this JTree.
intgetAccessibleIndexInParent()
Get the index of this object in its accessible parent.
AccessibleRolegetAccessibleRole()
Get the role of this object.
AccessibleSelectiongetAccessibleSelection()
Get the AccessibleSelection associated with this object.
AccessiblegetAccessibleSelection(int i)
Returns an Accessible representing the specified selected item in the object.
intgetAccessibleSelectionCount()
Returns the number of items currently selected.
booleanisAccessibleChildSelected(int i)
Returns true if the current child of this object is selected.
voidremoveAccessibleSelection(int i)
Removes the specified selected item in the object from the object's selection.
voidselectAllAccessibleSelection()
Causes every selected item in the object to be selected if the object supports multiple selections.
voidtreeCollapsed(TreeExpansionEvent e)
Tree Collapsed notification
voidtreeExpanded(TreeExpansionEvent e)
Tree Model Expansion notification.
voidtreeNodesChanged(TreeModelEvent e)
Tree Model Node change notification.
voidtreeNodesInserted(TreeModelEvent e)
Tree Model Node change notification.
voidtreeNodesRemoved(TreeModelEvent e)
Tree Model Node change notification.
voidtreeStructureChanged(TreeModelEvent e)
Tree Model structure change change notification.
voidvalueChanged(TreeSelectionEvent e)
Tree Selection Listener value change method.

Constructor Detail

AccessibleJTree

public AccessibleJTree()
Constructor

Method Detail

addAccessibleSelection

public void addAccessibleSelection(int i)
Adds the specified selected item in the object to the object's selection.

Parameters: i - the row to add to the tree's selection

clearAccessibleSelection

public void clearAccessibleSelection()
Clears the selection in the object, so that nothing in the object is selected.

fireVisibleDataPropertyChange

public void fireVisibleDataPropertyChange()
Fire a visible data property change notification.

getAccessibleAt

public Accessible getAccessibleAt(Point p)
Returns the Accessible child, if one exists, contained at the local coordinate Point.

Parameters: p - the point of the accessible to get.

Returns: the accessible at point p.

getAccessibleChild

public Accessible getAccessibleChild(int i)
Return the nth Accessible child of the object.

Parameters: i - the accessible child to get

Returns: the i-th child

getAccessibleChildrenCount

public int getAccessibleChildrenCount()
Returns the number of top-level children nodes of this JTree.

Returns: the number of top-level children

getAccessibleIndexInParent

public int getAccessibleIndexInParent()
Get the index of this object in its accessible parent.

Returns: the index of this object.

getAccessibleRole

public AccessibleRole getAccessibleRole()
Get the role of this object.

Returns: the role of this object

getAccessibleSelection

public AccessibleSelection getAccessibleSelection()
Get the AccessibleSelection associated with this object.

Returns: the accessible selection of the tree

getAccessibleSelection

public Accessible getAccessibleSelection(int i)
Returns an Accessible representing the specified selected item in the object.

Returns: the i-th accessible in the selection

getAccessibleSelectionCount

public int getAccessibleSelectionCount()
Returns the number of items currently selected.

Returns: the number of selected accessibles.

isAccessibleChildSelected

public boolean isAccessibleChildSelected(int i)
Returns true if the current child of this object is selected.

Parameters: i - the child of this object

Returns: true if the i-th child is selected.

removeAccessibleSelection

public void removeAccessibleSelection(int i)
Removes the specified selected item in the object from the object's selection.

Parameters: i - the i-th selected item to remove

selectAllAccessibleSelection

public void selectAllAccessibleSelection()
Causes every selected item in the object to be selected if the object supports multiple selections.

treeCollapsed

public void treeCollapsed(TreeExpansionEvent e)
Tree Collapsed notification

Parameters: e - the event

treeExpanded

public void treeExpanded(TreeExpansionEvent e)
Tree Model Expansion notification.

Parameters: e - the event

treeNodesChanged

public void treeNodesChanged(TreeModelEvent e)
Tree Model Node change notification.

Parameters: e - the event

treeNodesInserted

public void treeNodesInserted(TreeModelEvent e)
Tree Model Node change notification.

Parameters: e - the event

treeNodesRemoved

public void treeNodesRemoved(TreeModelEvent e)
Tree Model Node change notification.

Parameters: e - the event

treeStructureChanged

public void treeStructureChanged(TreeModelEvent e)
Tree Model structure change change notification.

Parameters: e - the event

valueChanged

public void valueChanged(TreeSelectionEvent e)
Tree Selection Listener value change method.

Parameters: e - the event