|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.accessibility.AccessibleContext
java.awt.Component.AccessibleAWTComponent
java.awt.Container.AccessibleAWTContainer
javax.swing.JComponent.AccessibleJComponent
javax.swing.JComboBox.AccessibleJComboBox
protected class JComboBox.AccessibleJComboBox
Accessibility support for JComboBox
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent.AccessibleJComponent |
---|
JComponent.AccessibleJComponent.AccessibleContainerHandler, JComponent.AccessibleJComponent.AccessibleFocusHandler |
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.Component.AccessibleAWTComponent |
---|
accessibleAWTComponentHandler, accessibleAWTFocusHandler |
Fields inherited from interface javax.accessibility.AccessibleAction |
---|
DECREMENT, INCREMENT, TOGGLE_EXPAND |
Constructor Summary | |
---|---|
JComboBox.AccessibleJComboBox()
|
Method Summary | |
---|---|
void |
addAccessibleSelection(int index)
Sets the current selection to the specified index . |
void |
clearAccessibleSelection()
Clears the current selection. |
boolean |
doAccessibleAction(int actionIndex)
Performs the accessible action with the specified index. |
AccessibleAction |
getAccessibleAction()
Returns the accessible action associated to this accessible object. |
int |
getAccessibleActionCount()
Returns the number of accessible actions that can be performed by this object. |
String |
getAccessibleActionDescription(int actionIndex)
Returns the description of the specified action. |
Accessible |
getAccessibleChild(int index)
Returns the number of accessible children of this object. |
int |
getAccessibleChildrenCount()
Returns the number of accessible children of this object. |
AccessibleRole |
getAccessibleRole()
Returns the accessible role for the JComboBox component. |
AccessibleSelection |
getAccessibleSelection()
Returns the AccessibleSelection object associated with this object. |
Accessible |
getAccessibleSelection(int index)
Returns the accessible selection from this AccssibleJComboBox. |
int |
getAccessibleSelectionCount()
Returns the number of selected accessible children of this object. |
boolean |
isAccessibleChildSelected(int index)
Returns true if the accessible child with the specified
index is selected, false otherwise. |
void |
removeAccessibleSelection(int index)
Removes the specified index from the current selection. |
void |
selectAllAccessibleSelection()
Multiple selection is not supported by AccessibleJComboBox, so this does nothing. |
Methods inherited from class javax.swing.JComponent.AccessibleJComponent |
---|
addPropertyChangeListener, getAccessibleDescription, getAccessibleKeyBinding, getAccessibleName, getAccessibleStateSet, getBorderTitle, getTitledBorderText, getToolTipText, removePropertyChangeListener |
Methods inherited from class java.awt.Container.AccessibleAWTContainer |
---|
getAccessibleAt |
Methods inherited from class javax.accessibility.AccessibleContext |
---|
firePropertyChange, getAccessibleEditableText, getAccessibleIcon, getAccessibleRelationSet, getAccessibleTable, getAccessibleText, getAccessibleValue, setAccessibleDescription, setAccessibleName, setAccessibleParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.accessibility.AccessibleComponent |
---|
addFocusListener, contains, getAccessibleAt, getBackground, getBounds, getCursor, getFont, getFontMetrics, getForeground, getLocation, getLocationOnScreen, getSize, isEnabled, isFocusTraversable, isShowing, isVisible, removeFocusListener, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFont, setForeground, setLocation, setSize, setVisible |
Constructor Detail |
---|
public JComboBox.AccessibleJComboBox()
Method Detail |
---|
public int getAccessibleChildrenCount()
getAccessibleChildrenCount
in class JComponent.AccessibleJComponent
ComponentUI.getAccessibleChildrenCount(JComponent)
public Accessible getAccessibleChild(int index)
getAccessibleChild
in class JComponent.AccessibleJComponent
index
- the index of the accessible child to fetch
ComponentUI.getAccessibleChild(JComponent, int)
public AccessibleSelection getAccessibleSelection()
this
.
getAccessibleSelection
in class AccessibleContext
AccessibleSelection
public Accessible getAccessibleSelection(int index)
getAccessibleSelection
in interface AccessibleSelection
index
- the index of the selected child to fetch
AccessibleSelection.getAccessibleSelectionCount()
public boolean isAccessibleChildSelected(int index)
true
if the accessible child with the specified
index
is selected, false
otherwise.
isAccessibleChildSelected
in interface AccessibleSelection
index
- the index of the accessible child
true
if the accessible child with the specified
index
is selected, false
otherwisepublic AccessibleRole getAccessibleRole()
JComboBox
component.
getAccessibleRole
in class JComponent.AccessibleJComponent
AccessibleRole.COMBO_BOX
.AccessibleRole
public AccessibleAction getAccessibleAction()
this
.
getAccessibleAction
in class AccessibleContext
AccessibleAction
public String getAccessibleActionDescription(int actionIndex)
UIManager.getString("ComboBox.togglePopupText")
getAccessibleActionDescription
in interface AccessibleAction
actionIndex
- the index of the action for which to return the
description
public int getAccessibleActionCount()
1
.
getAccessibleActionCount
in interface AccessibleAction
public boolean doAccessibleAction(int actionIndex)
actionIndex == 0
), which is to toggle the
popup menu. All other action indices have no effect and return
false
.
doAccessibleAction
in interface AccessibleAction
actionIndex
- the index of the action to perform
true
if the action has been performed,
false
otherwisepublic int getAccessibleSelectionCount()
1
if the combobox has a selected entry,
0
otherwise.
getAccessibleSelectionCount
in interface AccessibleSelection
public void addAccessibleSelection(int index)
index
.
addAccessibleSelection
in interface AccessibleSelection
index
- the index to set as selectionpublic void removeAccessibleSelection(int index)
removeAccessibleSelection
in interface AccessibleSelection
index
- the index to remove from the selectionpublic void clearAccessibleSelection()
clearAccessibleSelection
in interface AccessibleSelection
public void selectAllAccessibleSelection()
selectAllAccessibleSelection
in interface AccessibleSelection
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |