javax.swing
protected class JTabbedPane.AccessibleJTabbedPane extends JComponent.AccessibleJComponent implements AccessibleSelection, ChangeListener
JTabbedPane
.
Constructor Summary | |
---|---|
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
{@link 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.
|
Parameters: i the index of the item to select.
See Also: AccessibleJTabbedPane
Parameters: p the coordinates at which to look up the child component
Returns: the accessible child component at the specified coordinates or the currently selected tab if there is no child component at this location
Parameters: i the index of the child component to fetch
Returns: the accessible child component at the specified index
JTabbedPane
.
Returns: the number of accessible child components of the
JTabbedPane
JTabbedPane
, which is
{@link AccessibleRole#PAGE_TAB_LIST}.
Returns: the accessible role of the JTabbedPane
JTabbedPane
as AccessibleSelection object.
Returns: the current selection state of the JTabbedPane
null
if there is no
selection.
Parameters: i the selection index (ignored here).
Returns: The selected tab, or null
.
JTabbedPane
. The reference implementation appears
to return 1
always and we do the same.
Returns: 1
true
if the specified child is selected,
and false
otherwise.
Parameters: i the child index.
Returns: A boolean.
Parameters: i the item index.
See Also: AccessibleJTabbedPane
See Also: AccessibleJTabbedPane
JTabbedPane
changes and fires appropriate property change
events to interested listeners.
Parameters: e the change event describing the change