Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.accessibility.AccessibleContext
javax.swing.JTree.AccessibleJTree.AccessibleJTreeNode
protected class JTree.AccessibleJTree.AccessibleJTreeNode
extends AccessibleContext
implements Accessible, AccessibleComponent, AccessibleSelection, AccessibleAction
Field Summary |
Fields inherited from interface javax.accessibility.AccessibleAction | |
CLICK , DECREMENT , INCREMENT , TOGGLE_EXPAND , TOGGLE_POPUP |
Constructor Summary | |
|
Method Summary | |
void |
|
void |
|
void |
|
void |
|
boolean | |
boolean |
|
AccessibleAction |
|
int |
|
String |
|
Accessible |
|
Accessible |
|
int |
|
AccessibleComponent |
|
AccessibleContext |
|
String |
|
int |
|
String |
|
Accessible |
|
AccessibleRole |
|
AccessibleSelection |
|
Accessible |
|
int |
|
AccessibleStateSet |
|
AccessibleText |
|
AccessibleValue |
|
Color |
|
Rectangle |
|
Cursor |
|
Font |
|
FontMetrics |
|
Color |
|
Locale |
|
Point |
|
protected Point |
|
Point |
|
Dimension |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void | |
void | |
void |
|
void | |
void |
|
void |
|
void | |
void |
|
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
public AccessibleJTreeNode(JTree t, TreePath p, Accessible ap)
Constructs an AccessibleJTreeNode
- Parameters:
t
- - the current treep
- - the current path to be dealt withap
- - the accessible object to use
public void addAccessibleSelection(int i)
Adds the specified selected item in the object to the object's selection.
- Specified by:
- addAccessibleSelection in interface AccessibleSelection
- Parameters:
i
- - the i-th child of this node.
public void addFocusListener(FocusListener l)
Adds the specified focus listener to receive focus events from this component.
- Specified by:
- addFocusListener in interface AccessibleComponent
- Parameters:
l
- - the new focus listener
public void addPropertyChangeListener(PropertyChangeListener l)
Add a PropertyChangeListener to the listener list.
- Overrides:
- addPropertyChangeListener in interface AccessibleContext
- Parameters:
l
- - the new property change listener
public void clearAccessibleSelection()
Clears the selection in the object, so that nothing in the object is selected.
- Specified by:
- clearAccessibleSelection in interface AccessibleSelection
public boolean contains(Point p)
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.
- Specified by:
- contains in interface AccessibleComponent
- Parameters:
p
- - the point to check
- Returns:
- true if p is in the bounds
public boolean doAccessibleAction(int i)
Perform the specified Action on the tree node.
- Specified by:
- doAccessibleAction in interface AccessibleAction
- Parameters:
i
- - the i-th action to perform
- Returns:
- true if the the action was performed; else false.
public AccessibleAction getAccessibleAction()
Get the AccessibleAction associated with this object.
- Overrides:
- getAccessibleAction in interface AccessibleContext
- Returns:
- the action
public int getAccessibleActionCount()
Returns the number of accessible actions available in this tree node.
- Specified by:
- getAccessibleActionCount in interface AccessibleAction
- Returns:
- the number of actions
public String getAccessibleActionDescription(int i)
Return a description of the specified action of the tree node.
- Specified by:
- getAccessibleActionDescription in interface AccessibleAction
- Parameters:
i
- - the i-th action's description
- Returns:
- a description of the action
public Accessible getAccessibleAt(Point p)
Returns the Accessible child, if one exists, contained at the local coordinate Point.
- Specified by:
- getAccessibleAt in interface AccessibleComponent
- Parameters:
p
- - the point of the accessible
- Returns:
- the accessible at point p if it exists
public Accessible getAccessibleChild(int i)
Return the specified Accessible child of the object.
- Overrides:
- getAccessibleChild in interface AccessibleContext
- Parameters:
i
- - the i-th child of the current path
- Returns:
- the child if it exists
public int getAccessibleChildrenCount()
Returns the number of accessible children in the object.
- Overrides:
- getAccessibleChildrenCount in interface AccessibleContext
- Returns:
- the number of children the current node has
public AccessibleComponent getAccessibleComponent()
Get the AccessibleComponent associated with this object.
- Overrides:
- getAccessibleComponent in interface AccessibleContext
- Returns:
- the accessible component if it is supported.
public AccessibleContext getAccessibleContext()
Get the AccessibleContext associated with this tree node.
- Specified by:
- getAccessibleContext in interface Accessible
- Returns:
- an instance of this class
public String getAccessibleDescription()
Get the accessible description of this object.
- Overrides:
- getAccessibleDescription in interface AccessibleContext
- Returns:
- the accessible description
public int getAccessibleIndexInParent()
Get the index of this object in its accessible parent.
- Overrides:
- getAccessibleIndexInParent in interface AccessibleContext
- Returns:
- the index of this in the parent.
public String getAccessibleName()
Get the accessible name of this object.
- Overrides:
- getAccessibleName in interface AccessibleContext
- Returns:
- the accessible name
public Accessible getAccessibleParent()
Get the Accessible parent of this object.
- Overrides:
- getAccessibleParent in interface AccessibleContext
- Returns:
- the accessible parent if it exists.
public AccessibleRole getAccessibleRole()
Get the role of this object.
- Overrides:
- getAccessibleRole in interface AccessibleContext
- Returns:
- the accessible role
public AccessibleSelection getAccessibleSelection()
Get the AccessibleSelection associated with this object if one exists.
- Overrides:
- getAccessibleSelection in interface AccessibleContext
- Returns:
- the accessible selection for this.
public Accessible getAccessibleSelection(int i)
Returns an Accessible representing the specified selected item in the object.
- Specified by:
- getAccessibleSelection in interface AccessibleSelection
- Returns:
- the accessible representing a certain selected item.
public int getAccessibleSelectionCount()
Returns the number of items currently selected.
- Specified by:
- getAccessibleSelectionCount in interface AccessibleSelection
- Returns:
- the number of items selected.
public AccessibleStateSet getAccessibleStateSet()
Get the state set of this object.
- Overrides:
- getAccessibleStateSet in interface AccessibleContext
- Returns:
- the state set for this object
public AccessibleText getAccessibleText()
Get the AccessibleText associated with this object if one exists.
- Overrides:
- getAccessibleText in interface AccessibleContext
- Returns:
- the accessible text
public AccessibleValue getAccessibleValue()
Get the AccessibleValue associated with this object if one exists.
- Overrides:
- getAccessibleValue in interface AccessibleContext
- Returns:
- the accessible value if it exists
public Color getBackground()
Get the background color of this object.
- Specified by:
- getBackground in interface AccessibleComponent
- Returns:
- the color of the background.
public Rectangle getBounds()
Gets the bounds of this object in the form of a Rectangle object.
- Specified by:
- getBounds in interface AccessibleComponent
- Returns:
- the bounds of the current node.
public Cursor getCursor()
Gets the Cursor of this object.
- Specified by:
- getCursor in interface AccessibleComponent
- Returns:
- the cursor for the current node
public Font getFont()
Gets the Font of this object.
- Specified by:
- getFont in interface AccessibleComponent
- Returns:
- the font for the current node
public FontMetrics getFontMetrics(Font f)
Gets the FontMetrics of this object.
- Specified by:
- getFontMetrics in interface AccessibleComponent
- Parameters:
f
- - the current font.
- Returns:
- the font metrics for the given font.
public Color getForeground()
Get the foreground color of this object.
- Specified by:
- getForeground in interface AccessibleComponent
- Returns:
- the foreground for this object.
public Locale getLocale()
Gets the locale of the component.
- Overrides:
- getLocale in interface AccessibleContext
- Returns:
- the locale of the component.
public Point getLocation()
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.
- Specified by:
- getLocation in interface AccessibleComponent
- Returns:
- the location of the current node.
protected Point getLocationInJTree()
Returns the location in the tree.
- Returns:
- the location in the JTree.
public Point getLocationOnScreen()
Returns the location of the object on the screen.
- Specified by:
- getLocationOnScreen in interface AccessibleComponent
- Returns:
- the location of the object on the screen.
public Dimension getSize()
Returns the size of this object in the form of a Dimension object.
- Specified by:
- getSize in interface AccessibleComponent
- Returns:
- the size of the object
public boolean isAccessibleChildSelected(int i)
Returns true if the current child of this object is selected.
- Specified by:
- isAccessibleChildSelected in interface AccessibleSelection
- Parameters:
i
- - the child of the current node
- Returns:
- true if the child is selected.
public boolean isEnabled()
Determines if the object is enabled.
- Specified by:
- isEnabled in interface AccessibleComponent
- Returns:
- true if the tree is enabled
public boolean isFocusTraversable()
Returns whether this object can accept focus or not.
- Specified by:
- isFocusTraversable in interface AccessibleComponent
- Returns:
- true, it is always focus traversable
public boolean isShowing()
Determines if the object is showing.
- Specified by:
- isShowing in interface AccessibleComponent
- Returns:
- true if the object is visible and the parent is visible.
public boolean isVisible()
Determines if the object is visible.
- Specified by:
- isVisible in interface AccessibleComponent
- Returns:
- true if the object is visible.
public void removeAccessibleSelection(int i)
Removes the specified selected item in the object from the object's selection.
- Specified by:
- removeAccessibleSelection in interface AccessibleSelection
- Parameters:
i
- - the specified item to remove
public void removeFocusListener(FocusListener l)
Removes the specified focus listener so it no longer receives focus events from this component.
- Specified by:
- removeFocusListener in interface AccessibleComponent
- Parameters:
l
- - the focus listener to remove
public void removePropertyChangeListener(PropertyChangeListener l)
Remove a PropertyChangeListener from the listener list.
- Overrides:
- removePropertyChangeListener in interface AccessibleContext
- Parameters:
l
- - the property change listener to remove.
public void requestFocus()
Requests focus for this object.
- Specified by:
- requestFocus in interface AccessibleComponent
public void selectAllAccessibleSelection()
Causes every selected item in the object to be selected if the object supports multiple selections.
- Specified by:
- selectAllAccessibleSelection in interface AccessibleSelection
public void setAccessibleDescription(String s)
Set the accessible description of this object.
- Overrides:
- setAccessibleDescription in interface AccessibleContext
- Parameters:
s
- - the string to set the accessible description to.
public void setAccessibleName(String s)
Set the localized accessible name of this object.
- Overrides:
- setAccessibleName in interface AccessibleContext
- Parameters:
s
- - the string to set the accessible name to.
public void setBackground(Color c)
Set the background color of this object.
- Specified by:
- setBackground in interface AccessibleComponent
- Parameters:
c
- - the color to set the background to.
public void setBounds(Rectangle r)
Sets the bounds of this object in the form of a Rectangle object.
- Specified by:
- setBounds in interface AccessibleComponent
- Parameters:
r
- - the bounds to set the object o
public void setCursor(Cursor c)
Sets the Cursor of this object.
- Specified by:
- setCursor in interface AccessibleComponent
- Parameters:
c
- - the new cursor
public void setEnabled(boolean b)
Sets the enabled state of the object.
- Specified by:
- setEnabled in interface AccessibleComponent
- Parameters:
b
- - boolean to enable or disable object
public void setFont(Font f)
Sets the Font of this object.
- Specified by:
- setFont in interface AccessibleComponent
- Parameters:
f
- - the new font.
public void setForeground(Color c)
Sets the foreground color of this object.
- Specified by:
- setForeground in interface AccessibleComponent
- Parameters:
c
- - the new foreground color.
public void setLocation(Point p)
Sets the location of the object relative to the parent.
- Specified by:
- setLocation in interface AccessibleComponent
- Parameters:
p
- - the new location for the object.
public void setSize(Dimension d)
Resizes this object so that it has width and height.
- Specified by:
- setSize in interface AccessibleComponent
- Parameters:
d
- - the new size for the object.
public void setVisible(boolean b)
Sets the visible state of the object.
- Specified by:
- setVisible in interface AccessibleComponent
- Parameters:
b
- - sets the objects visibility.