protected class JComboBox.AccessibleJComboBox extends JComponent.AccessibleJComponent implements AccessibleAction, AccessibleSelection
JComboBox.JComponent.AccessibleJComponent.AccessibleContainerHandler, JComponent.AccessibleJComponent.AccessibleFocusHandlerComponent.AccessibleAWTComponent.AccessibleAWTComponentHandler, Component.AccessibleAWTComponent.AccessibleAWTFocusHandleraccessibleContainerHandler, accessibleFocusHandleraccessibleAWTComponentHandler, accessibleAWTFocusHandlerACCESSIBLE_ACTION_PROPERTY, ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTY, ACCESSIBLE_CARET_PROPERTY, ACCESSIBLE_CHILD_PROPERTY, ACCESSIBLE_COMPONENT_BOUNDS_CHANGED, ACCESSIBLE_DESCRIPTION_PROPERTY, ACCESSIBLE_HYPERTEXT_OFFSET, ACCESSIBLE_INVALIDATE_CHILDREN, ACCESSIBLE_NAME_PROPERTY, ACCESSIBLE_SELECTION_PROPERTY, ACCESSIBLE_STATE_PROPERTY, ACCESSIBLE_TABLE_CAPTION_CHANGED, ACCESSIBLE_TABLE_COLUMN_DESCRIPTION_CHANGED, ACCESSIBLE_TABLE_COLUMN_HEADER_CHANGED, ACCESSIBLE_TABLE_MODEL_CHANGED, ACCESSIBLE_TABLE_ROW_DESCRIPTION_CHANGED, ACCESSIBLE_TABLE_ROW_HEADER_CHANGED, ACCESSIBLE_TABLE_SUMMARY_CHANGED, ACCESSIBLE_TEXT_ATTRIBUTES_CHANGED, ACCESSIBLE_TEXT_PROPERTY, ACCESSIBLE_VALUE_PROPERTY, ACCESSIBLE_VISIBLE_DATA_PROPERTY, accessibleDescription, accessibleName, accessibleParentCLICK, DECREMENT, INCREMENT, TOGGLE_EXPAND, TOGGLE_POPUP| Constructor and Description |
|---|
JComboBox.AccessibleJComboBox() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
addPropertyChangeListener, getAccessibleDescription, getAccessibleKeyBinding, getAccessibleName, getAccessibleStateSet, getBorderTitle, getTitledBorderText, getToolTipText, removePropertyChangeListenergetAccessibleAtaddFocusListener, contains, getAccessibleComponent, getAccessibleIndexInParent, getAccessibleParent, getBackground, getBounds, getCursor, getFont, getFontMetrics, getForeground, getLocale, getLocation, getLocationOnScreen, getSize, isEnabled, isFocusTraversable, isShowing, isVisible, removeFocusListener, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFont, setForeground, setLocation, setSize, setVisiblefirePropertyChange, getAccessibleEditableText, getAccessibleIcon, getAccessibleRelationSet, getAccessibleTable, getAccessibleText, getAccessibleValue, setAccessibleDescription, setAccessibleName, setAccessibleParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddFocusListener, 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, setVisiblepublic JComboBox.AccessibleJComboBox()
public int getAccessibleChildrenCount()
getAccessibleChildrenCount in class JComponent.AccessibleJComponentComponentUI.getAccessibleChildrenCount(JComponent)public Accessible getAccessibleChild(int index)
getAccessibleChild in class JComponent.AccessibleJComponentindex - the index of the accessible child to fetchComponentUI.getAccessibleChild(JComponent, int)public AccessibleSelection getAccessibleSelection()
this.getAccessibleSelection in class AccessibleContextAccessibleSelectionpublic Accessible getAccessibleSelection(int index)
getAccessibleSelection in interface AccessibleSelectionindex - the index of the selected child to fetchAccessibleSelection.getAccessibleSelectionCount()public boolean isAccessibleChildSelected(int index)
true if the accessible child with the specified
index is selected, false otherwise.isAccessibleChildSelected in interface AccessibleSelectionindex - the index of the accessible childtrue if the accessible child with the specified
index is selected, false otherwisepublic AccessibleRole getAccessibleRole()
JComboBox component.getAccessibleRole in class JComponent.AccessibleJComponentAccessibleRole.COMBO_BOX.AccessibleRolepublic AccessibleAction getAccessibleAction()
this.getAccessibleAction in class AccessibleContextAccessibleActionpublic String getAccessibleActionDescription(int actionIndex)
UIManager.getString("ComboBox.togglePopupText")getAccessibleActionDescription in interface AccessibleActionactionIndex - the index of the action for which to return the
descriptionpublic int getAccessibleActionCount()
1.getAccessibleActionCount in interface AccessibleActionpublic 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 AccessibleActionactionIndex - the index of the action to performtrue if the action has been performed,
false otherwisepublic int getAccessibleSelectionCount()
1 if the combobox has a selected entry,
0 otherwise.getAccessibleSelectionCount in interface AccessibleSelectionpublic void addAccessibleSelection(int index)
index.addAccessibleSelection in interface AccessibleSelectionindex - the index to set as selectionpublic void removeAccessibleSelection(int index)
removeAccessibleSelection in interface AccessibleSelectionindex - the index to remove from the selectionpublic void clearAccessibleSelection()
clearAccessibleSelection in interface AccessibleSelectionpublic void selectAllAccessibleSelection()
selectAllAccessibleSelection in interface AccessibleSelection