protected class

MenuItem.AccessibleAWTMenuItem

extends MenuComponent.AccessibleAWTMenuComponent
implements AccessibleAction AccessibleValue
java.lang.Object
   ↳ javax.accessibility.AccessibleContext
     ↳ java.awt.MenuComponent.AccessibleAWTMenuComponent
       ↳ java.awt.MenuItem.AccessibleAWTMenuItem
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Inner class of MenuItem used to provide default support for accessibility. This class is not meant to be used directly by application developers, but is instead meant only to be subclassed by menu component developers.

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

Summary

[Expand]
Inherited Constants
From class javax.accessibility.AccessibleContext
[Expand]
Inherited Fields
From class javax.accessibility.AccessibleContext
From interface javax.accessibility.AccessibleAction
Protected Constructors
MenuItem.AccessibleAWTMenuItem()
Public Methods
boolean doAccessibleAction(int i)
Perform the specified Action on the object
AccessibleAction getAccessibleAction()
Get the AccessibleAction associated with this object.
int getAccessibleActionCount()
Returns the number of Actions available in this object.
String getAccessibleActionDescription(int i)
Return a description of the specified action of the object.
String getAccessibleName()
Get the accessible name of this object.
AccessibleRole getAccessibleRole()
Get the role of this object.
AccessibleValue getAccessibleValue()
Get the AccessibleValue associated with this object.
Number getCurrentAccessibleValue()
Get the value of this object as a Number.
Number getMaximumAccessibleValue()
Get the maximum value of this object as a Number.
Number getMinimumAccessibleValue()
Get the minimum value of this object as a Number.
boolean setCurrentAccessibleValue(Number n)
Set the value of this object as a Number.
[Expand]
Inherited Methods
From class java.awt.MenuComponent.AccessibleAWTMenuComponent
From class javax.accessibility.AccessibleContext
From class java.lang.Object
From interface javax.accessibility.AccessibleAction
From interface javax.accessibility.AccessibleComponent
From interface javax.accessibility.AccessibleSelection
From interface javax.accessibility.AccessibleValue

Protected Constructors

protected MenuItem.AccessibleAWTMenuItem ()

Public Methods

public boolean doAccessibleAction (int i)

Perform the specified Action on the object

Parameters
i zero-based index of actions
Returns
  • true if the action was performed; otherwise false.

public AccessibleAction getAccessibleAction ()

Get the AccessibleAction associated with this object. In the implementation of the Java Accessibility API for this class, return this object, which is responsible for implementing the AccessibleAction interface on behalf of itself.

Returns
  • this object

public int getAccessibleActionCount ()

Returns the number of Actions available in this object. The default behavior of a menu item is to have one action.

Returns
  • 1, the number of Actions in this object

public String getAccessibleActionDescription (int i)

Return a description of the specified action of the object.

Parameters
i zero-based index of the actions
Returns
  • a String description of the action

public String getAccessibleName ()

Get the accessible name of this object.

Returns
  • the localized name of the object -- can be null if this object does not have a name

public AccessibleRole getAccessibleRole ()

Get the role of this object.

Returns
  • an instance of AccessibleRole describing the role of the object

public AccessibleValue getAccessibleValue ()

Get the AccessibleValue associated with this object. In the implementation of the Java Accessibility API for this class, return this object, which is responsible for implementing the AccessibleValue interface on behalf of itself.

Returns
  • this object

public Number getCurrentAccessibleValue ()

Get the value of this object as a Number.

Returns
  • An Integer of 0 if this isn't selected or an Integer of 1 if this is selected.
See Also

public Number getMaximumAccessibleValue ()

Get the maximum value of this object as a Number.

Returns
  • An Integer of 0.

public Number getMinimumAccessibleValue ()

Get the minimum value of this object as a Number.

Returns
  • An Integer of 0.

public boolean setCurrentAccessibleValue (Number n)

Set the value of this object as a Number.

Returns
  • True if the value was set.