protected class JTabbedPane.AccessibleJTabbedPane extends JComponent.AccessibleJComponent implements AccessibleSelection, ChangeListener
JTabbedPane.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, accessibleParent| Constructor and Description |
|---|
JTabbedPane.AccessibleJTabbedPane()
Creates a new AccessibleJTabbedPane object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAccessibleSelection(int i)
Selects the specified tab.
|
void |
clearAccessibleSelection()
Does nothing - it makes no sense to clear the selection for
a tabbed pane, since one tab must always be selected.
|
Accessible |
getAccessibleAt(Point p)
Returns the accessible child component at the specified coordinates.
|
Accessible |
getAccessibleChild(int i)
Returns the accessible child component at the specified index.
|
int |
getAccessibleChildrenCount()
Returns the number of accessible child components of the
JTabbedPane. |
AccessibleRole |
getAccessibleRole()
Returns the accessible role of the
JTabbedPane, which is
AccessibleRole.PAGE_TAB_LIST. |
AccessibleSelection |
getAccessibleSelection()
Returns the current selection state of the
JTabbedPane
as AccessibleSelection object. |
Accessible |
getAccessibleSelection(int i)
Returns the selected tab, or
null if there is no
selection. |
int |
getAccessibleSelectionCount()
Returns the number of selected child components of the
JTabbedPane. |
boolean |
isAccessibleChildSelected(int i)
Returns
true if the specified child is selected,
and false otherwise. |
void |
removeAccessibleSelection(int i)
Does nothing - it makes no sense to remove a selection for a
tabbed pane, since one tab must always be selected.
|
void |
selectAllAccessibleSelection()
Does nothing - it makes no sense to select all for a tabbed
pane, since only one tab can be selected at a time.
|
void |
stateChanged(ChangeEvent e)
Receives notification when the selection state of the
JTabbedPane changes and fires appropriate property change
events to interested listeners. |
addPropertyChangeListener, getAccessibleDescription, getAccessibleKeyBinding, getAccessibleName, getAccessibleStateSet, getBorderTitle, getTitledBorderText, getToolTipText, removePropertyChangeListeneraddFocusListener, 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, getAccessibleAction, getAccessibleEditableText, getAccessibleIcon, getAccessibleRelationSet, getAccessibleTable, getAccessibleText, getAccessibleValue, setAccessibleDescription, setAccessibleName, setAccessibleParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddFocusListener, contains, getBackground, getBounds, getCursor, getFont, getFontMetrics, getForeground, getLocation, getLocationOnScreen, getSize, isEnabled, isFocusTraversable, isShowing, isVisible, removeFocusListener, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFont, setForeground, setLocation, setSize, setVisiblepublic JTabbedPane.AccessibleJTabbedPane()
public void stateChanged(ChangeEvent e)
JTabbedPane changes and fires appropriate property change
events to interested listeners.stateChanged in interface ChangeListenere - the change event describing the changepublic AccessibleRole getAccessibleRole()
JTabbedPane, which is
AccessibleRole.PAGE_TAB_LIST.getAccessibleRole in class JComponent.AccessibleJComponentJTabbedPaneAccessibleRolepublic int getAccessibleChildrenCount()
JTabbedPane.getAccessibleChildrenCount in class JComponent.AccessibleJComponentJTabbedPaneAccessibleContext.getAccessibleChild(int)public Accessible getAccessibleChild(int i)
getAccessibleChild in class JComponent.AccessibleJComponenti - the index of the child component to fetchComponent.AccessibleAWTComponent.getAccessibleChildrenCount()public AccessibleSelection getAccessibleSelection()
JTabbedPane
as AccessibleSelection object.getAccessibleSelection in class AccessibleContextJTabbedPaneAccessibleSelectionpublic Accessible getAccessibleAt(Point p)
getAccessibleAt in interface AccessibleComponentgetAccessibleAt in class Container.AccessibleAWTContainerp - the coordinates at which to look up the child componentpublic int getAccessibleSelectionCount()
JTabbedPane. The reference implementation appears
to return 1 always and we do the same.getAccessibleSelectionCount in interface AccessibleSelection1public Accessible getAccessibleSelection(int i)
null if there is no
selection.getAccessibleSelection in interface AccessibleSelectioni - the selection index (ignored here).null.AccessibleSelection.getAccessibleSelectionCount()public boolean isAccessibleChildSelected(int i)
true if the specified child is selected,
and false otherwise.isAccessibleChildSelected in interface AccessibleSelectioni - the child index.public void addAccessibleSelection(int i)
addAccessibleSelection in interface AccessibleSelectioni - the index of the item to select.public void removeAccessibleSelection(int i)
removeAccessibleSelection in interface AccessibleSelectioni - the item index.addAccessibleSelection(int)public void clearAccessibleSelection()
clearAccessibleSelection in interface AccessibleSelectionaddAccessibleSelection(int)public void selectAllAccessibleSelection()
selectAllAccessibleSelection in interface AccessibleSelectionaddAccessibleSelection(int)