| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
protected class JTree.AccessibleJTree.AccessibleJTreeNode extends AccessibleContext implements Accessible, AccessibleComponent, AccessibleSelection, AccessibleAction
This class implements accessibility support for the
JTree
child. It provides an implementation of the
Java Accessibility API appropriate to tree nodes.
Field Summary |
---|
Constructor Summary | |
---|---|
Constructs an AccessibleJTreeNode |
Method Summary | |
---|---|
void |
addAccessibleSelection(int i) Adds the specified selected item in the object to the object's selection. |
void |
|
void |
Add a PropertyChangeListener to the listener list. |
void |
Clears the selection in the object, so that nothing in the object is selected. |
boolean |
|
boolean |
doAccessibleAction(int i) Perform the specified Action on the tree node. |
AccessibleAction |
Get the AccessibleAction associated with this object. |
int |
Returns the number of accessible actions available in this tree node. |
String |
Return a description of the specified action of the tree node. |
Accessible |
Returns the Accessible child, if one exists,
contained at the local coordinate Point .
|
Accessible |
getAccessibleChild(int i) Return the specified Accessible child of the object. |
int |
Returns the number of accessible children in the object. |
AccessibleComponent |
Get the AccessibleComponent associated with this object. |
AccessibleContext |
Get the AccessibleContext associated with this tree node. |
String |
Get the accessible description of this object. |
int |
Get the index of this object in its accessible parent. |
String |
Get the accessible name of this object. |
Accessible |
Get the Accessible parent of this object. |
AccessibleRole |
Get the role of this object. |
AccessibleSelection |
Get the AccessibleSelection associated with this object if one exists. |
Accessible |
getAccessibleSelection(int i) Returns an Accessible representing the specified selected item in the object. |
int |
Returns the number of items currently selected. |
AccessibleStateSet |
Get the state set of this object. |
AccessibleText |
Get the AccessibleText associated with this object if one exists. |
AccessibleValue |
Get the AccessibleValue associated with this object if one exists. |
Color |
Get the background color of this object. |
Rectangle |
|
Cursor |
|
Font |
getFont() |
FontMetrics |
|
Color |
Get the foreground color of this object. |
Locale |
Gets the locale of the component. |
Point |
|
protected Point |
|
Point |
|
Dimension |
getSize() |
boolean |
isAccessibleChildSelected(int i) Returns true if the current child of this object is selected. |
boolean |
|
boolean |
|
boolean |
|
boolean |
|
void |
removeAccessibleSelection(int i) Removes the specified selected item in the object from the object's selection. |
void |
|
void |
Remove a PropertyChangeListener from the listener list. |
void |
|
void |
Causes every selected item in the object to be selected if the object supports multiple selections. |
void |
Set the accessible description of this object. |
void |
Set the localized accessible name of this object. |
void |
Set the background color of this object. |
void |
|
void |
|
void |
setEnabled(boolean b) |
void |
|
void |
|
void |
setLocation(Point p) |
void |
|
void |
setVisible(boolean b) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JTree.AccessibleJTree.AccessibleJTreeNode(JTree t, TreePath p, Accessible ap)
t
p
ap
Method Detail |
---|
public void addAccessibleSelection(int i)
i
- the zero-based index of selectable itemspublic void addFocusListener(FocusListener l)
l
public void addPropertyChangeListener(PropertyChangeListener l)
addPropertyChangeListener
in class AccessibleContext
l
- The PropertyChangeListener to be addedpublic void clearAccessibleSelection()
public boolean contains(Point p)
p
public boolean doAccessibleAction(int i)
i
- zero-based index of actionspublic AccessibleAction getAccessibleAction()
getAccessibleAction
in class AccessibleContext
public int getAccessibleActionCount()
public String getAccessibleActionDescription(int i)
i
- zero-based index of the actionspublic Accessible getAccessibleAt(Point p)
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
public Accessible getAccessibleChild(int i)
getAccessibleChild
in class AccessibleContext
i
- zero-based index of childpublic int getAccessibleChildrenCount()
getAccessibleChildrenCount
in class AccessibleContext
public AccessibleComponent getAccessibleComponent()
getAccessibleComponent
in class AccessibleContext
public AccessibleContext getAccessibleContext()
public String getAccessibleDescription()
getAccessibleDescription
in class AccessibleContext
public int getAccessibleIndexInParent()
getAccessibleIndexInParent
in class AccessibleContext
public String getAccessibleName()
getAccessibleName
in class AccessibleContext
public Accessible getAccessibleParent()
getAccessibleParent
in class AccessibleContext
public AccessibleRole getAccessibleRole()
getAccessibleRole
in class AccessibleContext
public AccessibleSelection getAccessibleSelection()
getAccessibleSelection
in class AccessibleContext
public Accessible getAccessibleSelection(int i)
i
- the zero-based index of selected itemspublic int getAccessibleSelectionCount()
public AccessibleStateSet getAccessibleStateSet()
getAccessibleStateSet
in class AccessibleContext
public AccessibleText getAccessibleText()
getAccessibleText
in class AccessibleContext
public AccessibleValue getAccessibleValue()
getAccessibleValue
in class AccessibleContext
public Color getBackground()
public Rectangle getBounds()
public Cursor getCursor()
public Font getFont()
public FontMetrics getFontMetrics(Font f)
f
public Color getForeground()
public Locale getLocale()
getLocale
in class AccessibleContext
public Point getLocation()
protected Point getLocationInJTree()
public Point getLocationOnScreen()
public Dimension getSize()
public boolean isAccessibleChildSelected(int i)
i
- the zero-based index of the child in this Accessible
object.public boolean isEnabled()
public boolean isFocusTraversable()
public boolean isShowing()
public boolean isVisible()
public void removeAccessibleSelection(int i)
i
- the zero-based index of selectable itemspublic void removeFocusListener(FocusListener l)
l
public void removePropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener
in class AccessibleContext
l
- The PropertyChangeListener to be removedpublic void requestFocus()
public void selectAllAccessibleSelection()
public void setAccessibleDescription(String s)
setAccessibleDescription
in class AccessibleContext
s
- the new localized description of the objectpublic void setAccessibleName(String s)
setAccessibleName
in class AccessibleContext
s
- the new localized name of the object.public void setBackground(Color c)
c
- the new Color for the backgroundpublic void setBounds(Rectangle r)
r
public void setCursor(Cursor c)
c
public void setEnabled(boolean b)
b
public void setFont(Font f)
f
public void setForeground(Color c)
c
public void setLocation(Point p)
p
public void setSize(Dimension d)
d
public void setVisible(boolean b)
b
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |