Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.accessibility.AccessibleContext
java.awt.Component.AccessibleAWTComponent
java.awt.List.AccessibleAWTList
protected class List.AccessibleAWTList
extends Component.AccessibleAWTComponent
implements AccessibleSelection, ItemListener, ActionListener
Nested Class Summary | |
protected class |
Nested classes/interfaces inherited from class java.awt.Component.AccessibleAWTComponent | |
Component.AccessibleAWTComponent.AccessibleAWTComponentHandler , Component.AccessibleAWTComponent.AccessibleAWTFocusHandler |
Field Summary |
Fields inherited from class java.awt.Component.AccessibleAWTComponent | |
accessibleAWTComponentHandler , accessibleAWTFocusHandler |
Constructor Summary | |
|
Method Summary | |
void |
|
void |
|
void |
|
Accessible |
|
int |
|
AccessibleRole |
|
AccessibleSelection | |
Accessible |
|
int |
|
AccessibleStateSet |
|
boolean |
|
void |
|
void |
|
void |
|
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
public void actionPerformed(ActionEvent event)
This method is invoked when an action occurs.
- Specified by:
- actionPerformed in interface ActionListener
- Parameters:
event
- theActionEvent
that occurred
public void addAccessibleSelection(int i)
Select the specified child if it is not already selected, placing it in the object's current selection. If the object does not support multiple selections then the new selection replaces the old. If the specified child is already selected, or is out of bounds, this method does nothing.
- Specified by:
- addAccessibleSelection in interface AccessibleSelection
- Parameters:
i
- zero-based index of child objects
public void clearAccessibleSelection()
Unselect all children of this Accessible object.
- Specified by:
- clearAccessibleSelection in interface AccessibleSelection
public Accessible getAccessibleChild(int i)
Returns the ith accessible child. Subclasses must override this if they can have children.
- Overrides:
- getAccessibleChild in interface Component.AccessibleAWTComponent
- Returns:
- the ith accessible child, or null
public int getAccessibleChildrenCount()
Returns the number of children of this component which implement Accessible. Subclasses must override this if they can have children.
- Overrides:
- getAccessibleChildrenCount in interface Component.AccessibleAWTComponent
- Returns:
- the number of accessible children, default 0
public AccessibleRole getAccessibleRole()
Returns the role of this component.
- Overrides:
- getAccessibleRole in interface Component.AccessibleAWTComponent
- Returns:
- the accessible role
public AccessibleSelection getAccessibleSelection()
- Overrides:
- getAccessibleSelection in interface AccessibleContext
public Accessible getAccessibleSelection(int i)
Returns the i-th selected child (not necessarily the overall i-th child) of this Accessible object. If i is out of bounds, null is returned.
- Specified by:
- getAccessibleSelection in interface AccessibleSelection
- Parameters:
i
- zero-based index of selected child objects
- Returns:
- the Accessible child, or null
public int getAccessibleSelectionCount()
Returns the number of currently selected Accessible children, which may be 0 if nothing is selected.
- Specified by:
- getAccessibleSelectionCount in interface AccessibleSelection
- Returns:
- the number of selected children
public AccessibleStateSet getAccessibleStateSet()
Returns a state set describing this component's state.
- Overrides:
- getAccessibleStateSet in interface Component.AccessibleAWTComponent
- Returns:
- a new state set
- See Also:
AccessibleState
public boolean isAccessibleChildSelected(int i)
Determine if i-th overall child of this accessible object is selected. If i is out of bounds, false is returned.
- Specified by:
- isAccessibleChildSelected in interface AccessibleSelection
- Parameters:
i
- zero-based index of child objects
- Returns:
- true if specified child exists and is selected
public void itemStateChanged(ItemEvent event)
This method is called when an item's state is changed.
- Specified by:
- itemStateChanged in interface ItemListener
- Parameters:
event
- theItemEvent
indicating the change
public void removeAccessibleSelection(int i)
Unselect the specified child of this Accessible object. If the specified child is not selected, or is out of bounds, this method does nothing.
- Specified by:
- removeAccessibleSelection in interface AccessibleSelection
- Parameters:
i
- the zero-based index of the child objects
public void selectAllAccessibleSelection()
Select all children of this Accessible object if the object supports multiple selections or has a single child. Otherwise this does nothing.
- Specified by:
- selectAllAccessibleSelection in interface AccessibleSelection