javax.swing
Class JMenuBar.AccessibleJMenuBar

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.accessibility.AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext 
      extended by java.awt.Component.AccessibleAWTComponent sample code for java.awt.Component.AccessibleAWTComponent definition code for java.awt.Component.AccessibleAWTComponent 
          extended by java.awt.Container.AccessibleAWTContainer sample code for java.awt.Container.AccessibleAWTContainer definition code for java.awt.Container.AccessibleAWTContainer 
              extended by javax.swing.JComponent.AccessibleJComponent sample code for javax.swing.JComponent.AccessibleJComponent definition code for javax.swing.JComponent.AccessibleJComponent 
                  extended by javax.swing.JMenuBar.AccessibleJMenuBar
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable , AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent , AccessibleExtendedComponent sample code for javax.accessibility.AccessibleExtendedComponent definition code for javax.accessibility.AccessibleExtendedComponent , AccessibleSelection sample code for javax.accessibility.AccessibleSelection definition code for javax.accessibility.AccessibleSelection
Enclosing class:
JMenuBar sample code for javax.swing.JMenuBar definition code for javax.swing.JMenuBar

protected class JMenuBar.AccessibleJMenuBar
extends JComponent.AccessibleJComponent sample code for javax.swing.JComponent.AccessibleJComponent definition code for javax.swing.JComponent.AccessibleJComponent
implements AccessibleSelection sample code for javax.accessibility.AccessibleSelection definition code for javax.accessibility.AccessibleSelection

This class implements accessibility support for the JMenuBar class. It provides an implementation of the Java Accessibility API appropriate to menu bar user-interface elements.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see XMLEncoder sample code for java.beans.XMLEncoder definition code for java.beans.XMLEncoder .

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JComponent.AccessibleJComponent sample code for javax.swing.JComponent.AccessibleJComponent definition code for javax.swing.JComponent.AccessibleJComponent
JComponent.AccessibleJComponent.AccessibleContainerHandler sample code for javax.swing.JComponent.AccessibleJComponent.AccessibleContainerHandler definition code for javax.swing.JComponent.AccessibleJComponent.AccessibleContainerHandler , JComponent.AccessibleJComponent.AccessibleFocusHandler sample code for javax.swing.JComponent.AccessibleJComponent.AccessibleFocusHandler definition code for javax.swing.JComponent.AccessibleJComponent.AccessibleFocusHandler
 
Nested classes/interfaces inherited from class java.awt.Component.AccessibleAWTComponent sample code for java.awt.Component.AccessibleAWTComponent definition code for java.awt.Component.AccessibleAWTComponent
Component.AccessibleAWTComponent.AccessibleAWTComponentHandler sample code for java.awt.Component.AccessibleAWTComponent.AccessibleAWTComponentHandler definition code for java.awt.Component.AccessibleAWTComponent.AccessibleAWTComponentHandler , Component.AccessibleAWTComponent.AccessibleAWTFocusHandler sample code for java.awt.Component.AccessibleAWTComponent.AccessibleAWTFocusHandler definition code for java.awt.Component.AccessibleAWTComponent.AccessibleAWTFocusHandler
 
Field Summary
 
Fields inherited from class javax.swing.JComponent.AccessibleJComponent sample code for javax.swing.JComponent.AccessibleJComponent definition code for javax.swing.JComponent.AccessibleJComponent
accessibleContainerHandler sample code for javax.swing.JComponent.AccessibleJComponent.accessibleContainerHandler definition code for javax.swing.JComponent.AccessibleJComponent.accessibleContainerHandler , accessibleFocusHandler sample code for javax.swing.JComponent.AccessibleJComponent.accessibleFocusHandler definition code for javax.swing.JComponent.AccessibleJComponent.accessibleFocusHandler
 
Fields inherited from class java.awt.Component.AccessibleAWTComponent sample code for java.awt.Component.AccessibleAWTComponent definition code for java.awt.Component.AccessibleAWTComponent
accessibleAWTComponentHandler sample code for java.awt.Component.AccessibleAWTComponent.accessibleAWTComponentHandler definition code for java.awt.Component.AccessibleAWTComponent.accessibleAWTComponentHandler , accessibleAWTFocusHandler sample code for java.awt.Component.AccessibleAWTComponent.accessibleAWTFocusHandler definition code for java.awt.Component.AccessibleAWTComponent.accessibleAWTFocusHandler
 
Fields inherited from class javax.accessibility.AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext
ACCESSIBLE_ACTION_PROPERTY sample code for javax.accessibility.AccessibleContext.ACCESSIBLE_ACTION_PROPERTY definition code for javax.accessibility.AccessibleContext.ACCESSIBLE_ACTION_PROPERTY , ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTY sample code for javax.accessibility.AccessibleContext.ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTY definition code for javax.accessibility.AccessibleContext.ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTY , ACCESSIBLE_CARET_PROPERTY sample code for javax.accessibility.AccessibleContext.ACCESSIBLE_CARET_PROPERTY definition code for javax.accessibility.AccessibleContext.ACCESSIBLE_CARET_PROPERTY , ACCESSIBLE_CHILD_PROPERTY sample code for javax.accessibility.AccessibleContext.ACCESSIBLE_CHILD_PROPERTY definition code for javax.accessibility.AccessibleContext.ACCESSIBLE_CHILD_PROPERTY , ACCESSIBLE_COMPONENT_BOUNDS_CHANGED sample code for javax.accessibility.AccessibleContext.ACCESSIBLE_COMPONENT_BOUNDS_CHANGED definition code for javax.accessibility.AccessibleContext.ACCESSIBLE_COMPONENT_BOUNDS_CHANGED , ACCESSIBLE_DESCRIPTION_PROPERTY sample code for javax.accessibility.AccessibleContext.ACCESSIBLE_DESCRIPTION_PROPERTY definition code for javax.accessibility.AccessibleContext.ACCESSIBLE_DESCRIPTION_PROPERTY , ACCESSIBLE_HYPERTEXT_OFFSET sample code for javax.accessibility.AccessibleContext.ACCESSIBLE_HYPERTEXT_OFFSET definition code for javax.accessibility.AccessibleContext.ACCESSIBLE_HYPERTEXT_OFFSET , ACCESSIBLE_INVALIDATE_CHILDREN sample code for javax.accessibility.AccessibleContext.ACCESSIBLE_INVALIDATE_CHILDREN definition code for javax.accessibility.AccessibleContext.ACCESSIBLE_INVALIDATE_CHILDREN , ACCESSIBLE_NAME_PROPERTY sample code for javax.accessibility.AccessibleContext.ACCESSIBLE_NAME_PROPERTY definition code for javax.accessibility.AccessibleContext.ACCESSIBLE_NAME_PROPERTY , ACCESSIBLE_SELECTION_PROPERTY sample code for javax.accessibility.AccessibleContext.ACCESSIBLE_SELECTION_PROPERTY definition code for javax.accessibility.AccessibleContext.ACCESSIBLE_SELECTION_PROPERTY , ACCESSIBLE_STATE_PROPERTY sample code for javax.accessibility.AccessibleContext.ACCESSIBLE_STATE_PROPERTY definition code for javax.accessibility.AccessibleContext.ACCESSIBLE_STATE_PROPERTY , ACCESSIBLE_TABLE_CAPTION_CHANGED sample code for javax.accessibility.AccessibleContext.ACCESSIBLE_TABLE_CAPTION_CHANGED definition code for javax.accessibility.AccessibleContext.ACCESSIBLE_TABLE_CAPTION_CHANGED , ACCESSIBLE_TABLE_COLUMN_DESCRIPTION_CHANGED sample code for javax.accessibility.AccessibleContext.ACCESSIBLE_TABLE_COLUMN_DESCRIPTION_CHANGED definition code for javax.accessibility.AccessibleContext.ACCESSIBLE_TABLE_COLUMN_DESCRIPTION_CHANGED , ACCESSIBLE_TABLE_COLUMN_HEADER_CHANGED sample code for javax.accessibility.AccessibleContext.ACCESSIBLE_TABLE_COLUMN_HEADER_CHANGED definition code for javax.accessibility.AccessibleContext.ACCESSIBLE_TABLE_COLUMN_HEADER_CHANGED , ACCESSIBLE_TABLE_MODEL_CHANGED sample code for javax.accessibility.AccessibleContext.ACCESSIBLE_TABLE_MODEL_CHANGED definition code for javax.accessibility.AccessibleContext.ACCESSIBLE_TABLE_MODEL_CHANGED , ACCESSIBLE_TABLE_ROW_DESCRIPTION_CHANGED sample code for javax.accessibility.AccessibleContext.ACCESSIBLE_TABLE_ROW_DESCRIPTION_CHANGED definition code for javax.accessibility.AccessibleContext.ACCESSIBLE_TABLE_ROW_DESCRIPTION_CHANGED , ACCESSIBLE_TABLE_ROW_HEADER_CHANGED sample code for javax.accessibility.AccessibleContext.ACCESSIBLE_TABLE_ROW_HEADER_CHANGED definition code for javax.accessibility.AccessibleContext.ACCESSIBLE_TABLE_ROW_HEADER_CHANGED , ACCESSIBLE_TABLE_SUMMARY_CHANGED sample code for javax.accessibility.AccessibleContext.ACCESSIBLE_TABLE_SUMMARY_CHANGED definition code for javax.accessibility.AccessibleContext.ACCESSIBLE_TABLE_SUMMARY_CHANGED , ACCESSIBLE_TEXT_ATTRIBUTES_CHANGED sample code for javax.accessibility.AccessibleContext.ACCESSIBLE_TEXT_ATTRIBUTES_CHANGED definition code for javax.accessibility.AccessibleContext.ACCESSIBLE_TEXT_ATTRIBUTES_CHANGED , ACCESSIBLE_TEXT_PROPERTY sample code for javax.accessibility.AccessibleContext.ACCESSIBLE_TEXT_PROPERTY definition code for javax.accessibility.AccessibleContext.ACCESSIBLE_TEXT_PROPERTY , ACCESSIBLE_VALUE_PROPERTY sample code for javax.accessibility.AccessibleContext.ACCESSIBLE_VALUE_PROPERTY definition code for javax.accessibility.AccessibleContext.ACCESSIBLE_VALUE_PROPERTY , ACCESSIBLE_VISIBLE_DATA_PROPERTY sample code for javax.accessibility.AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY definition code for javax.accessibility.AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY , accessibleDescription sample code for javax.accessibility.AccessibleContext.accessibleDescription definition code for javax.accessibility.AccessibleContext.accessibleDescription , accessibleName sample code for javax.accessibility.AccessibleContext.accessibleName definition code for javax.accessibility.AccessibleContext.accessibleName , accessibleParent sample code for javax.accessibility.AccessibleContext.accessibleParent definition code for javax.accessibility.AccessibleContext.accessibleParent
 
Constructor Summary
protected JMenuBar.AccessibleJMenuBar sample code for javax.swing.JMenuBar.AccessibleJMenuBar.JMenuBar.AccessibleJMenuBar() definition code for javax.swing.JMenuBar.AccessibleJMenuBar.JMenuBar.AccessibleJMenuBar() ()
           
 
Method Summary
 void addAccessibleSelection sample code for javax.swing.JMenuBar.AccessibleJMenuBar.addAccessibleSelection(int) definition code for javax.swing.JMenuBar.AccessibleJMenuBar.addAccessibleSelection(int) (int i)
          Selects the nth menu in the menu bar, forcing it to pop up.
 void clearAccessibleSelection sample code for javax.swing.JMenuBar.AccessibleJMenuBar.clearAccessibleSelection() definition code for javax.swing.JMenuBar.AccessibleJMenuBar.clearAccessibleSelection() ()
          Clears the selection in the object, so that nothing in the object is selected.
 AccessibleRole sample code for javax.accessibility.AccessibleRole definition code for javax.accessibility.AccessibleRole getAccessibleRole sample code for javax.swing.JMenuBar.AccessibleJMenuBar.getAccessibleRole() definition code for javax.swing.JMenuBar.AccessibleJMenuBar.getAccessibleRole() ()
          Get the role of this object.
 AccessibleSelection sample code for javax.accessibility.AccessibleSelection definition code for javax.accessibility.AccessibleSelection getAccessibleSelection sample code for javax.swing.JMenuBar.AccessibleJMenuBar.getAccessibleSelection() definition code for javax.swing.JMenuBar.AccessibleJMenuBar.getAccessibleSelection() ()
          Get the AccessibleSelection associated with this object.
 Accessible sample code for javax.accessibility.Accessible definition code for javax.accessibility.Accessible getAccessibleSelection sample code for javax.swing.JMenuBar.AccessibleJMenuBar.getAccessibleSelection(int) definition code for javax.swing.JMenuBar.AccessibleJMenuBar.getAccessibleSelection(int) (int i)
          Returns the currently selected menu if one is selected, otherwise null.
 int getAccessibleSelectionCount sample code for javax.swing.JMenuBar.AccessibleJMenuBar.getAccessibleSelectionCount() definition code for javax.swing.JMenuBar.AccessibleJMenuBar.getAccessibleSelectionCount() ()
          Returns 1 if a menu is currently selected in this menu bar.
 AccessibleStateSet sample code for javax.accessibility.AccessibleStateSet definition code for javax.accessibility.AccessibleStateSet getAccessibleStateSet sample code for javax.swing.JMenuBar.AccessibleJMenuBar.getAccessibleStateSet() definition code for javax.swing.JMenuBar.AccessibleJMenuBar.getAccessibleStateSet() ()
          Get the accessible state set of this object.
 boolean isAccessibleChildSelected sample code for javax.swing.JMenuBar.AccessibleJMenuBar.isAccessibleChildSelected(int) definition code for javax.swing.JMenuBar.AccessibleJMenuBar.isAccessibleChildSelected(int) (int i)
          Returns true if the current child of this object is selected.
 void removeAccessibleSelection sample code for javax.swing.JMenuBar.AccessibleJMenuBar.removeAccessibleSelection(int) definition code for javax.swing.JMenuBar.AccessibleJMenuBar.removeAccessibleSelection(int) (int i)
          Removes the nth selected item in the object from the object's selection.
 void selectAllAccessibleSelection sample code for javax.swing.JMenuBar.AccessibleJMenuBar.selectAllAccessibleSelection() definition code for javax.swing.JMenuBar.AccessibleJMenuBar.selectAllAccessibleSelection() ()
          Normally causes every selected item in the object to be selected if the object supports multiple selections.
 
Methods inherited from class javax.swing.JComponent.AccessibleJComponent sample code for javax.swing.JComponent.AccessibleJComponent definition code for javax.swing.JComponent.AccessibleJComponent
addPropertyChangeListener sample code for javax.swing.JComponent.AccessibleJComponent.addPropertyChangeListener(java.beans.PropertyChangeListener) definition code for javax.swing.JComponent.AccessibleJComponent.addPropertyChangeListener(java.beans.PropertyChangeListener) , getAccessibleChild sample code for javax.swing.JComponent.AccessibleJComponent.getAccessibleChild(int) definition code for javax.swing.JComponent.AccessibleJComponent.getAccessibleChild(int) , getAccessibleChildrenCount sample code for javax.swing.JComponent.AccessibleJComponent.getAccessibleChildrenCount() definition code for javax.swing.JComponent.AccessibleJComponent.getAccessibleChildrenCount() , getAccessibleDescription sample code for javax.swing.JComponent.AccessibleJComponent.getAccessibleDescription() definition code for javax.swing.JComponent.AccessibleJComponent.getAccessibleDescription() , getAccessibleKeyBinding sample code for javax.swing.JComponent.AccessibleJComponent.getAccessibleKeyBinding() definition code for javax.swing.JComponent.AccessibleJComponent.getAccessibleKeyBinding() , getAccessibleName sample code for javax.swing.JComponent.AccessibleJComponent.getAccessibleName() definition code for javax.swing.JComponent.AccessibleJComponent.getAccessibleName() , getBorderTitle sample code for javax.swing.JComponent.AccessibleJComponent.getBorderTitle(javax.swing.border.Border) definition code for javax.swing.JComponent.AccessibleJComponent.getBorderTitle(javax.swing.border.Border) , getTitledBorderText sample code for javax.swing.JComponent.AccessibleJComponent.getTitledBorderText() definition code for javax.swing.JComponent.AccessibleJComponent.getTitledBorderText() , getToolTipText sample code for javax.swing.JComponent.AccessibleJComponent.getToolTipText() definition code for javax.swing.JComponent.AccessibleJComponent.getToolTipText() , removePropertyChangeListener sample code for javax.swing.JComponent.AccessibleJComponent.removePropertyChangeListener(java.beans.PropertyChangeListener) definition code for javax.swing.JComponent.AccessibleJComponent.removePropertyChangeListener(java.beans.PropertyChangeListener)
 
Methods inherited from class java.awt.Container.AccessibleAWTContainer sample code for java.awt.Container.AccessibleAWTContainer definition code for java.awt.Container.AccessibleAWTContainer
getAccessibleAt sample code for java.awt.Container.AccessibleAWTContainer.getAccessibleAt(java.awt.Point) definition code for java.awt.Container.AccessibleAWTContainer.getAccessibleAt(java.awt.Point)
 
Methods inherited from class java.awt.Component.AccessibleAWTComponent sample code for java.awt.Component.AccessibleAWTComponent definition code for java.awt.Component.AccessibleAWTComponent
addFocusListener sample code for java.awt.Component.AccessibleAWTComponent.addFocusListener(java.awt.event.FocusListener) definition code for java.awt.Component.AccessibleAWTComponent.addFocusListener(java.awt.event.FocusListener) , contains sample code for java.awt.Component.AccessibleAWTComponent.contains(java.awt.Point) definition code for java.awt.Component.AccessibleAWTComponent.contains(java.awt.Point) , getAccessibleComponent sample code for java.awt.Component.AccessibleAWTComponent.getAccessibleComponent() definition code for java.awt.Component.AccessibleAWTComponent.getAccessibleComponent() , getAccessibleIndexInParent sample code for java.awt.Component.AccessibleAWTComponent.getAccessibleIndexInParent() definition code for java.awt.Component.AccessibleAWTComponent.getAccessibleIndexInParent() , getAccessibleParent sample code for java.awt.Component.AccessibleAWTComponent.getAccessibleParent() definition code for java.awt.Component.AccessibleAWTComponent.getAccessibleParent() , getBackground sample code for java.awt.Component.AccessibleAWTComponent.getBackground() definition code for java.awt.Component.AccessibleAWTComponent.getBackground() , getBounds sample code for java.awt.Component.AccessibleAWTComponent.getBounds() definition code for java.awt.Component.AccessibleAWTComponent.getBounds() , getCursor sample code for java.awt.Component.AccessibleAWTComponent.getCursor() definition code for java.awt.Component.AccessibleAWTComponent.getCursor() , getFont sample code for java.awt.Component.AccessibleAWTComponent.getFont() definition code for java.awt.Component.AccessibleAWTComponent.getFont() , getFontMetrics sample code for java.awt.Component.AccessibleAWTComponent.getFontMetrics(java.awt.Font) definition code for java.awt.Component.AccessibleAWTComponent.getFontMetrics(java.awt.Font) , getForeground sample code for java.awt.Component.AccessibleAWTComponent.getForeground() definition code for java.awt.Component.AccessibleAWTComponent.getForeground() , getLocale sample code for java.awt.Component.AccessibleAWTComponent.getLocale() definition code for java.awt.Component.AccessibleAWTComponent.getLocale() , getLocation sample code for java.awt.Component.AccessibleAWTComponent.getLocation() definition code for java.awt.Component.AccessibleAWTComponent.getLocation() , getLocationOnScreen sample code for java.awt.Component.AccessibleAWTComponent.getLocationOnScreen() definition code for java.awt.Component.AccessibleAWTComponent.getLocationOnScreen() , getSize sample code for java.awt.Component.AccessibleAWTComponent.getSize() definition code for java.awt.Component.AccessibleAWTComponent.getSize() , isEnabled sample code for java.awt.Component.AccessibleAWTComponent.isEnabled() definition code for java.awt.Component.AccessibleAWTComponent.isEnabled() , isFocusTraversable sample code for java.awt.Component.AccessibleAWTComponent.isFocusTraversable() definition code for java.awt.Component.AccessibleAWTComponent.isFocusTraversable() , isShowing sample code for java.awt.Component.AccessibleAWTComponent.isShowing() definition code for java.awt.Component.AccessibleAWTComponent.isShowing() , isVisible sample code for java.awt.Component.AccessibleAWTComponent.isVisible() definition code for java.awt.Component.AccessibleAWTComponent.isVisible() , removeFocusListener sample code for java.awt.Component.AccessibleAWTComponent.removeFocusListener(java.awt.event.FocusListener) definition code for java.awt.Component.AccessibleAWTComponent.removeFocusListener(java.awt.event.FocusListener) , requestFocus sample code for java.awt.Component.AccessibleAWTComponent.requestFocus() definition code for java.awt.Component.AccessibleAWTComponent.requestFocus() , setBackground sample code for java.awt.Component.AccessibleAWTComponent.setBackground(java.awt.Color) definition code for java.awt.Component.AccessibleAWTComponent.setBackground(java.awt.Color) , setBounds sample code for java.awt.Component.AccessibleAWTComponent.setBounds(java.awt.Rectangle) definition code for java.awt.Component.AccessibleAWTComponent.setBounds(java.awt.Rectangle) , setCursor sample code for java.awt.Component.AccessibleAWTComponent.setCursor(java.awt.Cursor) definition code for java.awt.Component.AccessibleAWTComponent.setCursor(java.awt.Cursor) , setEnabled sample code for java.awt.Component.AccessibleAWTComponent.setEnabled(boolean) definition code for java.awt.Component.AccessibleAWTComponent.setEnabled(boolean) , setFont sample code for java.awt.Component.AccessibleAWTComponent.setFont(java.awt.Font) definition code for java.awt.Component.AccessibleAWTComponent.setFont(java.awt.Font) , setForeground sample code for java.awt.Component.AccessibleAWTComponent.setForeground(java.awt.Color) definition code for java.awt.Component.AccessibleAWTComponent.setForeground(java.awt.Color) , setLocation sample code for java.awt.Component.AccessibleAWTComponent.setLocation(java.awt.Point) definition code for java.awt.Component.AccessibleAWTComponent.setLocation(java.awt.Point) , setSize sample code for java.awt.Component.AccessibleAWTComponent.setSize(java.awt.Dimension) definition code for java.awt.Component.AccessibleAWTComponent.setSize(java.awt.Dimension) , setVisible sample code for java.awt.Component.AccessibleAWTComponent.setVisible(boolean) definition code for java.awt.Component.AccessibleAWTComponent.setVisible(boolean)
 
Methods inherited from class javax.accessibility.AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext
firePropertyChange sample code for javax.accessibility.AccessibleContext.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) definition code for javax.accessibility.AccessibleContext.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) , getAccessibleAction sample code for javax.accessibility.AccessibleContext.getAccessibleAction() definition code for javax.accessibility.AccessibleContext.getAccessibleAction() , getAccessibleEditableText sample code for javax.accessibility.AccessibleContext.getAccessibleEditableText() definition code for javax.accessibility.AccessibleContext.getAccessibleEditableText() , getAccessibleIcon sample code for javax.accessibility.AccessibleContext.getAccessibleIcon() definition code for javax.accessibility.AccessibleContext.getAccessibleIcon() , getAccessibleRelationSet sample code for javax.accessibility.AccessibleContext.getAccessibleRelationSet() definition code for javax.accessibility.AccessibleContext.getAccessibleRelationSet() , getAccessibleTable sample code for javax.accessibility.AccessibleContext.getAccessibleTable() definition code for javax.accessibility.AccessibleContext.getAccessibleTable() , getAccessibleText sample code for javax.accessibility.AccessibleContext.getAccessibleText() definition code for javax.accessibility.AccessibleContext.getAccessibleText() , getAccessibleValue sample code for javax.accessibility.AccessibleContext.getAccessibleValue() definition code for javax.accessibility.AccessibleContext.getAccessibleValue() , setAccessibleDescription sample code for javax.accessibility.AccessibleContext.setAccessibleDescription(java.lang.String) definition code for javax.accessibility.AccessibleContext.setAccessibleDescription(java.lang.String) , setAccessibleName sample code for javax.accessibility.AccessibleContext.setAccessibleName(java.lang.String) definition code for javax.accessibility.AccessibleContext.setAccessibleName(java.lang.String) , setAccessibleParent sample code for javax.accessibility.AccessibleContext.setAccessibleParent(javax.accessibility.Accessible) definition code for javax.accessibility.AccessibleContext.setAccessibleParent(javax.accessibility.Accessible)
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 
Methods inherited from interface javax.accessibility.AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent
addFocusListener sample code for javax.accessibility.AccessibleComponent.addFocusListener(java.awt.event.FocusListener) definition code for javax.accessibility.AccessibleComponent.addFocusListener(java.awt.event.FocusListener) , contains sample code for javax.accessibility.AccessibleComponent.contains(java.awt.Point) definition code for javax.accessibility.AccessibleComponent.contains(java.awt.Point) , getAccessibleAt sample code for javax.accessibility.AccessibleComponent.getAccessibleAt(java.awt.Point) definition code for javax.accessibility.AccessibleComponent.getAccessibleAt(java.awt.Point) , getBackground sample code for javax.accessibility.AccessibleComponent.getBackground() definition code for javax.accessibility.AccessibleComponent.getBackground() , getBounds sample code for javax.accessibility.AccessibleComponent.getBounds() definition code for javax.accessibility.AccessibleComponent.getBounds() , getCursor sample code for javax.accessibility.AccessibleComponent.getCursor() definition code for javax.accessibility.AccessibleComponent.getCursor() , getFont sample code for javax.accessibility.AccessibleComponent.getFont() definition code for javax.accessibility.AccessibleComponent.getFont() , getFontMetrics sample code for javax.accessibility.AccessibleComponent.getFontMetrics(java.awt.Font) definition code for javax.accessibility.AccessibleComponent.getFontMetrics(java.awt.Font) , getForeground sample code for javax.accessibility.AccessibleComponent.getForeground() definition code for javax.accessibility.AccessibleComponent.getForeground() , getLocation sample code for javax.accessibility.AccessibleComponent.getLocation() definition code for javax.accessibility.AccessibleComponent.getLocation() , getLocationOnScreen sample code for javax.accessibility.AccessibleComponent.getLocationOnScreen() definition code for javax.accessibility.AccessibleComponent.getLocationOnScreen() , getSize sample code for javax.accessibility.AccessibleComponent.getSize() definition code for javax.accessibility.AccessibleComponent.getSize() , isEnabled sample code for javax.accessibility.AccessibleComponent.isEnabled() definition code for javax.accessibility.AccessibleComponent.isEnabled() , isFocusTraversable sample code for javax.accessibility.AccessibleComponent.isFocusTraversable() definition code for javax.accessibility.AccessibleComponent.isFocusTraversable() , isShowing sample code for javax.accessibility.AccessibleComponent.isShowing() definition code for javax.accessibility.AccessibleComponent.isShowing() , isVisible sample code for javax.accessibility.AccessibleComponent.isVisible() definition code for javax.accessibility.AccessibleComponent.isVisible() , removeFocusListener sample code for javax.accessibility.AccessibleComponent.removeFocusListener(java.awt.event.FocusListener) definition code for javax.accessibility.AccessibleComponent.removeFocusListener(java.awt.event.FocusListener) , requestFocus sample code for javax.accessibility.AccessibleComponent.requestFocus() definition code for javax.accessibility.AccessibleComponent.requestFocus() , setBackground sample code for javax.accessibility.AccessibleComponent.setBackground(java.awt.Color) definition code for javax.accessibility.AccessibleComponent.setBackground(java.awt.Color) , setBounds sample code for javax.accessibility.AccessibleComponent.setBounds(java.awt.Rectangle) definition code for javax.accessibility.AccessibleComponent.setBounds(java.awt.Rectangle) , setCursor sample code for javax.accessibility.AccessibleComponent.setCursor(java.awt.Cursor) definition code for javax.accessibility.AccessibleComponent.setCursor(java.awt.Cursor) , setEnabled sample code for javax.accessibility.AccessibleComponent.setEnabled(boolean) definition code for javax.accessibility.AccessibleComponent.setEnabled(boolean) , setFont sample code for javax.accessibility.AccessibleComponent.setFont(java.awt.Font) definition code for javax.accessibility.AccessibleComponent.setFont(java.awt.Font) , setForeground sample code for javax.accessibility.AccessibleComponent.setForeground(java.awt.Color) definition code for javax.accessibility.AccessibleComponent.setForeground(java.awt.Color) , setLocation sample code for javax.accessibility.AccessibleComponent.setLocation(java.awt.Point) definition code for javax.accessibility.AccessibleComponent.setLocation(java.awt.Point) , setSize sample code for javax.accessibility.AccessibleComponent.setSize(java.awt.Dimension) definition code for javax.accessibility.AccessibleComponent.setSize(java.awt.Dimension) , setVisible sample code for javax.accessibility.AccessibleComponent.setVisible(boolean) definition code for javax.accessibility.AccessibleComponent.setVisible(boolean)
 

Constructor Detail

JMenuBar.AccessibleJMenuBar sample code for javax.swing.JMenuBar.AccessibleJMenuBar() definition code for javax.swing.JMenuBar.AccessibleJMenuBar()

protected JMenuBar.AccessibleJMenuBar()
Method Detail

getAccessibleStateSet sample code for javax.swing.JMenuBar.AccessibleJMenuBar.getAccessibleStateSet() definition code for javax.swing.JMenuBar.AccessibleJMenuBar.getAccessibleStateSet()

public AccessibleStateSet sample code for javax.accessibility.AccessibleStateSet definition code for javax.accessibility.AccessibleStateSet  getAccessibleStateSet()
Get the accessible state set of this object.

Overrides:
getAccessibleStateSet sample code for javax.swing.JComponent.AccessibleJComponent.getAccessibleStateSet() definition code for javax.swing.JComponent.AccessibleJComponent.getAccessibleStateSet() in class JComponent.AccessibleJComponent sample code for javax.swing.JComponent.AccessibleJComponent definition code for javax.swing.JComponent.AccessibleJComponent
Returns:
an instance of AccessibleState containing the current state of the object
See Also:
AccessibleState sample code for javax.accessibility.AccessibleState definition code for javax.accessibility.AccessibleState

getAccessibleRole sample code for javax.swing.JMenuBar.AccessibleJMenuBar.getAccessibleRole() definition code for javax.swing.JMenuBar.AccessibleJMenuBar.getAccessibleRole()

public AccessibleRole sample code for javax.accessibility.AccessibleRole definition code for javax.accessibility.AccessibleRole  getAccessibleRole()
Get the role of this object.

Overrides:
getAccessibleRole sample code for javax.swing.JComponent.AccessibleJComponent.getAccessibleRole() definition code for javax.swing.JComponent.AccessibleJComponent.getAccessibleRole() in class JComponent.AccessibleJComponent sample code for javax.swing.JComponent.AccessibleJComponent definition code for javax.swing.JComponent.AccessibleJComponent
Returns:
an instance of AccessibleRole describing the role of the object
See Also:
AccessibleRole sample code for javax.accessibility.AccessibleRole definition code for javax.accessibility.AccessibleRole

getAccessibleSelection sample code for javax.swing.JMenuBar.AccessibleJMenuBar.getAccessibleSelection() definition code for javax.swing.JMenuBar.AccessibleJMenuBar.getAccessibleSelection()

public AccessibleSelection sample code for javax.accessibility.AccessibleSelection definition code for javax.accessibility.AccessibleSelection  getAccessibleSelection()
Get the AccessibleSelection associated with this object. In the implementation of the Java Accessibility API for this class, return this object, which is responsible for implementing the AccessibleSelection interface on behalf of itself.

Overrides:
getAccessibleSelection sample code for javax.accessibility.AccessibleContext.getAccessibleSelection() definition code for javax.accessibility.AccessibleContext.getAccessibleSelection() in class AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext
Returns:
this object
See Also:
AccessibleSelection sample code for javax.accessibility.AccessibleSelection definition code for javax.accessibility.AccessibleSelection

getAccessibleSelectionCount sample code for javax.swing.JMenuBar.AccessibleJMenuBar.getAccessibleSelectionCount() definition code for javax.swing.JMenuBar.AccessibleJMenuBar.getAccessibleSelectionCount()

public int getAccessibleSelectionCount()
Returns 1 if a menu is currently selected in this menu bar.

Specified by:
getAccessibleSelectionCount sample code for javax.accessibility.AccessibleSelection.getAccessibleSelectionCount() definition code for javax.accessibility.AccessibleSelection.getAccessibleSelectionCount() in interface AccessibleSelection sample code for javax.accessibility.AccessibleSelection definition code for javax.accessibility.AccessibleSelection
Returns:
1 if a menu is currently selected, else 0

getAccessibleSelection sample code for javax.swing.JMenuBar.AccessibleJMenuBar.getAccessibleSelection(int) definition code for javax.swing.JMenuBar.AccessibleJMenuBar.getAccessibleSelection(int)

public Accessible sample code for javax.accessibility.Accessible definition code for javax.accessibility.Accessible  getAccessibleSelection(int i)
Returns the currently selected menu if one is selected, otherwise null.

Specified by:
getAccessibleSelection sample code for javax.accessibility.AccessibleSelection.getAccessibleSelection(int) definition code for javax.accessibility.AccessibleSelection.getAccessibleSelection(int) in interface AccessibleSelection sample code for javax.accessibility.AccessibleSelection definition code for javax.accessibility.AccessibleSelection
Parameters:
i - the zero-based index of selected children
Returns:
the i-th selected child
See Also:
AccessibleSelection.getAccessibleSelectionCount() sample code for javax.accessibility.AccessibleSelection.getAccessibleSelectionCount() definition code for javax.accessibility.AccessibleSelection.getAccessibleSelectionCount()

isAccessibleChildSelected sample code for javax.swing.JMenuBar.AccessibleJMenuBar.isAccessibleChildSelected(int) definition code for javax.swing.JMenuBar.AccessibleJMenuBar.isAccessibleChildSelected(int)

public boolean isAccessibleChildSelected(int i)
Returns true if the current child of this object is selected.

Specified by:
isAccessibleChildSelected sample code for javax.accessibility.AccessibleSelection.isAccessibleChildSelected(int) definition code for javax.accessibility.AccessibleSelection.isAccessibleChildSelected(int) in interface AccessibleSelection sample code for javax.accessibility.AccessibleSelection definition code for javax.accessibility.AccessibleSelection
Parameters:
i - the zero-based index of the child in this Accessible object.
Returns:
true if the current child of this object is selected; else false.
See Also:
AccessibleContext.getAccessibleChild(int) sample code for javax.accessibility.AccessibleContext.getAccessibleChild(int) definition code for javax.accessibility.AccessibleContext.getAccessibleChild(int)

addAccessibleSelection sample code for javax.swing.JMenuBar.AccessibleJMenuBar.addAccessibleSelection(int) definition code for javax.swing.JMenuBar.AccessibleJMenuBar.addAccessibleSelection(int)

public void addAccessibleSelection(int i)
Selects the nth menu in the menu bar, forcing it to pop up. If another menu is popped up, this will force it to close. If the nth menu is already selected, this method has no effect.

Specified by:
addAccessibleSelection sample code for javax.accessibility.AccessibleSelection.addAccessibleSelection(int) definition code for javax.accessibility.AccessibleSelection.addAccessibleSelection(int) in interface AccessibleSelection sample code for javax.accessibility.AccessibleSelection definition code for javax.accessibility.AccessibleSelection
Parameters:
i - the zero-based index of selectable items
See Also:
getAccessibleStateSet() sample code for javax.swing.JMenuBar.AccessibleJMenuBar.getAccessibleStateSet() definition code for javax.swing.JMenuBar.AccessibleJMenuBar.getAccessibleStateSet()

removeAccessibleSelection sample code for javax.swing.JMenuBar.AccessibleJMenuBar.removeAccessibleSelection(int) definition code for javax.swing.JMenuBar.AccessibleJMenuBar.removeAccessibleSelection(int)

public void removeAccessibleSelection(int i)
Removes the nth selected item in the object from the object's selection. If the nth item isn't currently selected, this method has no effect. Otherwise, it closes the popup menu.

Specified by:
removeAccessibleSelection sample code for javax.accessibility.AccessibleSelection.removeAccessibleSelection(int) definition code for javax.accessibility.AccessibleSelection.removeAccessibleSelection(int) in interface AccessibleSelection sample code for javax.accessibility.AccessibleSelection definition code for javax.accessibility.AccessibleSelection
Parameters:
i - the zero-based index of selectable items
See Also:
AccessibleContext.getAccessibleChild(int) sample code for javax.accessibility.AccessibleContext.getAccessibleChild(int) definition code for javax.accessibility.AccessibleContext.getAccessibleChild(int)

clearAccessibleSelection sample code for javax.swing.JMenuBar.AccessibleJMenuBar.clearAccessibleSelection() definition code for javax.swing.JMenuBar.AccessibleJMenuBar.clearAccessibleSelection()

public void clearAccessibleSelection()
Clears the selection in the object, so that nothing in the object is selected. This will close any open menu.

Specified by:
clearAccessibleSelection sample code for javax.accessibility.AccessibleSelection.clearAccessibleSelection() definition code for javax.accessibility.AccessibleSelection.clearAccessibleSelection() in interface AccessibleSelection sample code for javax.accessibility.AccessibleSelection definition code for javax.accessibility.AccessibleSelection

selectAllAccessibleSelection sample code for javax.swing.JMenuBar.AccessibleJMenuBar.selectAllAccessibleSelection() definition code for javax.swing.JMenuBar.AccessibleJMenuBar.selectAllAccessibleSelection()

public void selectAllAccessibleSelection()
Normally causes every selected item in the object to be selected if the object supports multiple selections. This method makes no sense in a menu bar, and so does nothing.

Specified by:
selectAllAccessibleSelection sample code for javax.accessibility.AccessibleSelection.selectAllAccessibleSelection() definition code for javax.accessibility.AccessibleSelection.selectAllAccessibleSelection() in interface AccessibleSelection sample code for javax.accessibility.AccessibleSelection definition code for javax.accessibility.AccessibleSelection