protected class

CheckboxMenuItem.AccessibleAWTCheckboxMenuItem

extends MenuItem.AccessibleAWTMenuItem
implements AccessibleAction AccessibleValue
java.lang.Object
   ↳ javax.accessibility.AccessibleContext
     ↳ java.awt.MenuComponent.AccessibleAWTMenuComponent
       ↳ java.awt.MenuItem.AccessibleAWTMenuItem
         ↳ java.awt.CheckboxMenuItem.AccessibleAWTCheckboxMenuItem

Class Overview

Inner class of CheckboxMenuItem 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 CheckboxMenuItem class. It provides an implementation of the Java Accessibility API appropriate to checkbox 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
CheckboxMenuItem.AccessibleAWTCheckboxMenuItem()
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.
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.MenuItem.AccessibleAWTMenuItem
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 CheckboxMenuItem.AccessibleAWTCheckboxMenuItem ()

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. If there is more than one, the first one is the "default" action.

Returns
  • 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 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. If the value has not been set, the return value will be null.

Returns
  • value of the object

public Number getMaximumAccessibleValue ()

Get the maximum value of this object as a Number.

Returns
  • Maximum value of the object; null if this object does not have a maximum value

public Number getMinimumAccessibleValue ()

Get the minimum value of this object as a Number.

Returns
  • Minimum value of the object; null if this object does not have a minimum value

public boolean setCurrentAccessibleValue (Number n)

Set the value of this object as a Number.

Returns
  • true if the value was set; otherwise false