GNU Classpath (0.95) | |
Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
protected class JList.AccessibleJList
extends JComponent.AccessibleJComponent
JList
.
Nested Class Summary | |
protected class |
|
Nested classes/interfaces inherited from class javax.swing.JComponent.AccessibleJComponent | |
JComponent.AccessibleJComponent.AccessibleContainerHandler , JComponent.AccessibleJComponent.AccessibleFocusHandler |
Nested classes/interfaces inherited from class java.awt.Container.AccessibleAWTContainer | |
Container.AccessibleAWTContainer.AccessibleContainerHandler |
Nested classes/interfaces inherited from class java.awt.Component.AccessibleAWTComponent | |
Component.AccessibleAWTComponent.AccessibleAWTComponentHandler , Component.AccessibleAWTComponent.AccessibleAWTFocusHandler |
Field Summary |
Fields inherited from class javax.swing.JComponent.AccessibleJComponent | |
accessibleContainerHandler , accessibleFocusHandler |
Fields inherited from class java.awt.Container.AccessibleAWTContainer | |
accessibleContainerHandler |
Fields inherited from class java.awt.Component.AccessibleAWTComponent | |
accessibleAWTComponentHandler , accessibleAWTFocusHandler |
Constructor Summary | |
|
Method Summary | |
void |
|
void |
|
void |
|
Accessible |
|
Accessible |
|
int |
|
AccessibleRole |
|
Accessible |
|
int |
|
AccessibleStateSet |
|
void |
|
void |
|
boolean |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class java.awt.Container.AccessibleAWTContainer | |
getAccessibleAt , getAccessibleChild , getAccessibleChildrenCount |
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
public void addAccessibleSelection(int i)
Adds the accessible item with the specified index to the selected items. If multiple selections are supported, the item is added to the selection, otherwise the item replaces the current selection.
- Specified by:
- addAccessibleSelection in interface AccessibleSelection
- Parameters:
i
- the index of the item to add to the selection
public void clearAccessibleSelection()
Remove all selection items from the selection.
- Specified by:
- clearAccessibleSelection in interface AccessibleSelection
public void contentsChanged(ListDataEvent event)
Receives notification when items have changed in theJList
. This method fires a property change event withAccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY
.
- Specified by:
- contentsChanged in interface ListDataListener
- Parameters:
event
- the list data event
public Accessible getAccessibleAt(Point p)
Returns the accessible child at the visual locationp
(relative to the upper left corner of theJList
). If there is no child at that location, this returnsnull
.
- Specified by:
- getAccessibleAt in interface AccessibleComponent
- Overrides:
- getAccessibleAt in interface Container.AccessibleAWTContainer
- Parameters:
p
- the screen location for which to return the accessible child
- Returns:
- the accessible child at the specified location, or
null
if there is no child at that location
public Accessible getAccessibleChild(int n)
Returns the n-th accessible child of thisJList
. This will be an instance ofJList.AccessibleJList.AccessibleJListChild
. If there is no child at that index,null
is returned.
- Overrides:
- getAccessibleChild in interface JComponent.AccessibleJComponent
- Parameters:
n
- the index of the child to return
- Returns:
- the n-th accessible child of this
JList
public int getAccessibleChildrenCount()
Returns the number of accessible children in theJList
.
- Overrides:
- getAccessibleChildrenCount in interface JComponent.AccessibleJComponent
- Returns:
- the number of accessible children in the
JList
public AccessibleRole getAccessibleRole()
Returns the accessible role forJList
,AccessibleRole.LIST
.
- Overrides:
- getAccessibleRole in interface JComponent.AccessibleJComponent
- Returns:
- the accessible role for
JList
public Accessible getAccessibleSelection(int n)
Returns the n-th selected accessible child.
- Specified by:
- getAccessibleSelection in interface AccessibleSelection
- Parameters:
n
- the index of the selected child to return
- Returns:
- the n-th selected accessible child
public int getAccessibleSelectionCount()
Returns the number of selected accessible children.
- Specified by:
- getAccessibleSelectionCount in interface AccessibleSelection
- Returns:
- the number of selected accessible children
public AccessibleStateSet getAccessibleStateSet()
Return the state set of theJList
.
- Overrides:
- getAccessibleStateSet in interface JComponent.AccessibleJComponent
- Returns:
- the state set of the
JList
public void intervalAdded(ListDataEvent event)
Receives notification when items are inserted into theJList
. This method fires a property change event withAccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY
.
- Specified by:
- intervalAdded in interface ListDataListener
- Parameters:
event
- the list data event
public void intervalRemoved(ListDataEvent event)
Receives notification when items are removed from theJList
. This method fires a property change event withAccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY
.
- Specified by:
- intervalRemoved in interface ListDataListener
- Parameters:
event
- the list data event
public boolean isAccessibleChildSelected(int n)
Returnstrue
if the n-th child is selected,false
otherwise.
- Specified by:
- isAccessibleChildSelected in interface AccessibleSelection
- Parameters:
n
- the index of the child of which the selected state is queried
- Returns:
true
if the n-th child is selected,false
otherwise
public void propertyChange(PropertyChangeEvent e)
Receives notification about changes of theJList
's properties. This is used to re-register this object as listener to the data model and selection model when the data model or selection model changes.
- Specified by:
- propertyChange in interface PropertyChangeListener
- Parameters:
e
- the property change event
public void removeAccessibleSelection(int i)
Removes the accessible item with the specified index to the selection.
- Specified by:
- removeAccessibleSelection in interface AccessibleSelection
- Parameters:
i
- the index of the item to be removed from the selection
public void selectAllAccessibleSelection()
Selects all items if multiple selections are supported. Otherwise do nothing.
- Specified by:
- selectAllAccessibleSelection in interface AccessibleSelection
public void valueChanged(ListSelectionEvent event)
Receices notification when the list selection is changed. This method fires two property change events, the first withAccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY
and the second withAccessibleContext.ACCESSIBLE_SELECTION_PROPERTY
.
- Specified by:
- valueChanged in interface ListSelectionListener
- Parameters:
event
- the list selection event
GNU Classpath (0.95) |