protected class JComboBox.AccessibleJComboBox extends JComponent.AccessibleJComponent implements AccessibleAction, AccessibleSelection
JComboBox
.JComponent.AccessibleJComponent.AccessibleContainerHandler, JComponent.AccessibleJComponent.AccessibleFocusHandler
Component.AccessibleAWTComponent.AccessibleAWTComponentHandler, Component.AccessibleAWTComponent.AccessibleAWTFocusHandler
accessibleContainerHandler, accessibleFocusHandler
accessibleAWTComponentHandler, accessibleAWTFocusHandler
ACCESSIBLE_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, accessibleParent
CLICK, 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, removePropertyChangeListener
getAccessibleAt
addFocusListener, 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, setVisible
firePropertyChange, getAccessibleEditableText, getAccessibleIcon, getAccessibleRelationSet, getAccessibleTable, getAccessibleText, getAccessibleValue, setAccessibleDescription, setAccessibleName, setAccessibleParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
public JComboBox.AccessibleJComboBox()
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 fetchComponentUI.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 fetchAccessibleSelection.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 childtrue
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
descriptionpublic 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 performtrue
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