java.lang.Object | ||
↳ | javax.accessibility.AccessibleContext | |
↳ | javax.swing.JTree.AccessibleJTree.AccessibleJTreeNode |
This class implements accessibility support for the
JTree
child. It provides an implementation of the
Java Accessibility API appropriate to tree nodes.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an AccessibleJTreeNode
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds the specified selected item in the object to the object's
selection.
| |||||||||||
Adds the specified focus listener to receive focus events from this
component.
| |||||||||||
Add a PropertyChangeListener to the listener list.
| |||||||||||
Clears the selection in the object, so that nothing in the
object is selected.
| |||||||||||
Checks whether the specified point is within this object's bounds,
where the point's x and y coordinates are defined to be relative to the
coordinate system of the object.
| |||||||||||
Perform the specified Action on the tree node.
| |||||||||||
Get the AccessibleAction associated with this object.
| |||||||||||
Returns the number of accessible actions available in this
tree node.
| |||||||||||
Return a description of the specified action of the tree node.
| |||||||||||
Returns the
Accessible child, if one exists,
contained at the local coordinate Point . | |||||||||||
Return the specified Accessible child of the object.
| |||||||||||
Returns the number of accessible children in the object.
| |||||||||||
Get the AccessibleComponent associated with this object.
| |||||||||||
Get the AccessibleContext associated with this tree node.
| |||||||||||
Get the accessible description of this object.
| |||||||||||
Get the index of this object in its accessible parent.
| |||||||||||
Get the accessible name of this object.
| |||||||||||
Get the Accessible parent of this object.
| |||||||||||
Get the role of this object.
| |||||||||||
Get the AccessibleSelection associated with this object if one
exists.
| |||||||||||
Returns an Accessible representing the specified selected item
in the object.
| |||||||||||
Returns the number of items currently selected.
| |||||||||||
Get the state set of this object.
| |||||||||||
Get the AccessibleText associated with this object if one
exists.
| |||||||||||
Get the AccessibleValue associated with this object if one
exists.
| |||||||||||
Get the background color of this object.
| |||||||||||
Gets the bounds of this object in the form of a Rectangle object.
| |||||||||||
Gets the Cursor of this object.
| |||||||||||
Gets the Font of this object.
| |||||||||||
Gets the FontMetrics of this object.
| |||||||||||
Get the foreground color of this object.
| |||||||||||
Gets the locale of the component.
| |||||||||||
Gets the location of the object relative to the parent in the form
of a point specifying the object's top-left corner in the screen's
coordinate space.
| |||||||||||
Returns the location of the object on the screen.
| |||||||||||
Returns the size of this object in the form of a Dimension object.
| |||||||||||
Returns true if the current child of this object is selected.
| |||||||||||
Determines if the object is enabled.
| |||||||||||
Returns whether this object can accept focus or not.
| |||||||||||
Determines if the object is showing.
| |||||||||||
Determines if the object is visible.
| |||||||||||
Removes the specified selected item in the object from the
object's
selection.
| |||||||||||
Removes the specified focus listener so it no longer receives focus
events from this component.
| |||||||||||
Remove a PropertyChangeListener from the listener list.
| |||||||||||
Requests focus for this object.
| |||||||||||
Causes every selected item in the object to be selected
if the object supports multiple selections.
| |||||||||||
Set the accessible description of this object.
| |||||||||||
Set the localized accessible name of this object.
| |||||||||||
Set the background color of this object.
| |||||||||||
Sets the bounds of this object in the form of a Rectangle object.
| |||||||||||
Sets the Cursor of this object.
| |||||||||||
Sets the enabled state of the object.
| |||||||||||
Sets the Font of this object.
| |||||||||||
Sets the foreground color of this object.
| |||||||||||
Sets the location of the object relative to the parent.
| |||||||||||
Resizes this object so that it has width and height.
| |||||||||||
Sets the visible state of the object.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Constructs an AccessibleJTreeNode
Adds the specified selected item in the object to the object's selection. If the object supports multiple selections, the specified item is added to any existing selection, otherwise it replaces any existing selection in the object. If the specified item is already selected, this method has no effect.
i | the zero-based index of selectable items |
---|
Adds the specified focus listener to receive focus events from this component.
l | the focus listener |
---|
Add a PropertyChangeListener to the listener list. The listener is registered for all properties.
l | The PropertyChangeListener to be added |
---|
Clears the selection in the object, so that nothing in the object is selected.
Checks whether the specified point is within this object's bounds, where the point's x and y coordinates are defined to be relative to the coordinate system of the object.
p | the Point relative to the coordinate system of the object |
---|
Perform the specified Action on the tree node. If this node is not a leaf, there is at least one action which can be done (toggle expand), in addition to any available on the object behind the TreeCellRenderer.
i | zero-based index of actions |
---|
Get the AccessibleAction associated with this object. In the implementation of the Java Accessibility API for this class, return this object, which is responsible for implementing the AccessibleAction interface on behalf of itself.
Returns the number of accessible actions available in this tree node. If this node is not a leaf, there is at least one action (toggle expand), in addition to any available on the object behind the TreeCellRenderer.
Return a description of the specified action of the tree node. If this node is not a leaf, there is at least one action description (toggle expand), in addition to any available on the object behind the TreeCellRenderer.
i | zero-based index of the actions |
---|
Returns the Accessible
child, if one exists,
contained at the local coordinate Point
.
Otherwise returns null
.
p | point in local coordinates of this
Accessible |
---|
Accessible
, if it exists,
at the specified location; else null
Return the specified Accessible child of the object.
i | zero-based index of child |
---|
Returns the number of accessible children in the object.
Get the AccessibleComponent associated with this object. In the implementation of the Java Accessibility API for this class, return this object, which is responsible for implementing the AccessibleComponent interface on behalf of itself.
Get the AccessibleContext associated with this tree node. In the implementation of the Java Accessibility API for this class, return this object, which is its own AccessibleContext.
Get the accessible description of this object.
Get the index of this object in its accessible parent.
Get the accessible name of this object.
Get the Accessible parent of this object.
Get the role of this object.
Get the AccessibleSelection associated with this object if one exists. Otherwise return null.
Returns an Accessible representing the specified selected item in the object. If there isn't a selection, or there are fewer items selected than the integer passed in, the return value will be null.
i | the zero-based index of selected items |
---|
Returns the number of items currently selected. If no items are selected, the return value will be 0.
Get the state set of this object.
Get the AccessibleText associated with this object if one exists. Otherwise return null.
Get the AccessibleValue associated with this object if one exists. Otherwise return null.
Get the background color of this object.
Gets the bounds of this object in the form of a Rectangle object. The bounds specify this object's width, height, and location relative to its parent.
Gets the Cursor of this object.
Gets the Font of this object.
Gets the FontMetrics of this object.
f | the Font |
---|
Get the foreground color of this object.
Gets the locale of the component. If the component does not have a locale, then the locale of its parent is returned.
IllegalComponentStateException | If the Component does not have its own locale and has not yet been added to a containment hierarchy such that the locale can be determined from the containing parent. |
---|
Gets the location of the object relative to the parent in the form of a point specifying the object's top-left corner in the screen's coordinate space.
Returns the location of the object on the screen.
Returns the size of this object in the form of a Dimension object. The height field of the Dimension object contains this object's height, and the width field of the Dimension object contains this object's width.
Returns true if the current child of this object is selected.
i | the zero-based index of the child in this Accessible object. |
---|
Determines if the object is enabled. Objects that are enabled will also have the AccessibleState.ENABLED state set in their AccessibleStateSets.
Returns whether this object can accept focus or not. Objects that can accept focus will also have the AccessibleState.FOCUSABLE state set in their AccessibleStateSets.
Determines if the object is showing. This is determined by checking the visibility of the object and its ancestors. Note: this will return true even if the object is obscured by another (for example, it is underneath a menu that was pulled down).
Determines if the object is visible. Note: this means that the object intends to be visible; however, it may not be showing on the screen because one of the objects that this object is contained by is currently not visible. To determine if an object is showing on the screen, use isShowing().
Objects that are visible will also have the AccessibleState.VISIBLE state set in their AccessibleStateSets.
Removes the specified selected item in the object from the object's selection. If the specified item isn't currently selected, this method has no effect.
i | the zero-based index of selectable items |
---|
Removes the specified focus listener so it no longer receives focus events from this component.
l | the focus listener |
---|
Remove a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties.
l | The PropertyChangeListener to be removed |
---|
Requests focus for this object. If this object cannot accept focus, nothing will happen. Otherwise, the object will attempt to take focus.
Causes every selected item in the object to be selected if the object supports multiple selections.
Set the accessible description of this object.
s | the new localized description of the object |
---|
Set the localized accessible name of this object.
s | the new localized name of the object. |
---|
Set the background color of this object.
c | the new Color for the background |
---|
Sets the bounds of this object in the form of a Rectangle object. The bounds specify this object's width, height, and location relative to its parent.
r | rectangle indicating this component's bounds |
---|
Sets the Cursor of this object.
c | the new Cursor for the object |
---|
Sets the enabled state of the object.
b | if true, enables this object; otherwise, disables it |
---|
Sets the foreground color of this object.
c | the new Color for the foreground |
---|
Sets the location of the object relative to the parent.
p | the new position for the top-left corner |
---|
Resizes this object so that it has width and height.
d | The dimension specifying the new size of the object. |
---|
Sets the visible state of the object.
b | if true, shows this object; otherwise, hides it |
---|