javax.swing
protected class JTabbedPane.AccessibleJTabbedPane extends JComponent.AccessibleJComponent implements AccessibleSelection, ChangeListener
JTabbedPane
.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
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, removePropertyChangeListener
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, getAccessibleAction, getAccessibleEditableText, getAccessibleIcon, getAccessibleRelationSet, getAccessibleTable, getAccessibleText, getAccessibleValue, setAccessibleDescription, setAccessibleName, setAccessibleParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addFocusListener, contains, 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 JTabbedPane.AccessibleJTabbedPane()
public void stateChanged(ChangeEvent e)
JTabbedPane
changes and fires appropriate property change
events to interested listeners.stateChanged
in interface ChangeListener
e
- the change event describing the changepublic AccessibleRole getAccessibleRole()
JTabbedPane
, which is
AccessibleRole.PAGE_TAB_LIST
.getAccessibleRole
in class JComponent.AccessibleJComponent
JTabbedPane
AccessibleRole
public int getAccessibleChildrenCount()
JTabbedPane
.getAccessibleChildrenCount
in class JComponent.AccessibleJComponent
JTabbedPane
AccessibleContext.getAccessibleChild(int)
public Accessible getAccessibleChild(int i)
getAccessibleChild
in class JComponent.AccessibleJComponent
i
- the index of the child component to fetchComponent.AccessibleAWTComponent.getAccessibleChildrenCount()
public AccessibleSelection getAccessibleSelection()
JTabbedPane
as AccessibleSelection object.getAccessibleSelection
in class AccessibleContext
JTabbedPane
AccessibleSelection
public Accessible getAccessibleAt(Point p)
getAccessibleAt
in interface AccessibleComponent
getAccessibleAt
in class Container.AccessibleAWTContainer
p
- 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 AccessibleSelection
1
public Accessible getAccessibleSelection(int i)
null
if there is no
selection.getAccessibleSelection
in interface AccessibleSelection
i
- 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 AccessibleSelection
i
- the child index.public void addAccessibleSelection(int i)
addAccessibleSelection
in interface AccessibleSelection
i
- the index of the item to select.public void removeAccessibleSelection(int i)
removeAccessibleSelection
in interface AccessibleSelection
i
- the item index.addAccessibleSelection(int)
public void clearAccessibleSelection()
clearAccessibleSelection
in interface AccessibleSelection
addAccessibleSelection(int)
public void selectAllAccessibleSelection()
selectAllAccessibleSelection
in interface AccessibleSelection
addAccessibleSelection(int)