|
|||||||||
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.JTabbedPane.AccessibleJTabbedPane
protected class JTabbedPane.AccessibleJTabbedPane
Accessibility support for JTabbedPane
.
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 |
Constructor Summary | |
---|---|
JTabbedPane.AccessibleJTabbedPane()
Creates a new AccessibleJTabbedPane object. |
Method Summary | |
---|---|
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. |
Methods inherited from class javax.swing.JComponent.AccessibleJComponent |
---|
addPropertyChangeListener, getAccessibleDescription, getAccessibleKeyBinding, getAccessibleName, getAccessibleStateSet, getBorderTitle, getTitledBorderText, getToolTipText, removePropertyChangeListener |
Methods inherited from class javax.accessibility.AccessibleContext |
---|
firePropertyChange, getAccessibleAction, 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, 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 JTabbedPane.AccessibleJTabbedPane()
Method Detail |
---|
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 fetch
Component.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 component
public 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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |