javax.swing

Class JMenuItem.AccessibleJMenuItem

protected class JMenuItem.AccessibleJMenuItem extends AccessibleAbstractButton implements ChangeListener

Provides the accessibility features for the JMenuItem component.

See Also: getAccessibleContext

Method Summary
AccessibleRolegetAccessibleRole()
Returns the accessible role for the JMenuItem component.
voidstateChanged(ChangeEvent event)
Receives notification when the menu item's state changes and fires appropriate property change events to registered listeners.

Method Detail

getAccessibleRole

public AccessibleRole getAccessibleRole()
Returns the accessible role for the JMenuItem component.

Returns: {@link AccessibleRole#MENU_ITEM}.

stateChanged

public void stateChanged(ChangeEvent event)
Receives notification when the menu item's state changes and fires appropriate property change events to registered listeners.

Parameters: event the change event