Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.awt
Class MenuItem.AccessibleAWTMenuItem  view MenuItem.AccessibleAWTMenuItem download MenuItem.AccessibleAWTMenuItem.java

java.lang.Object
  extended byjavax.accessibility.AccessibleContext
      extended byjava.awt.MenuComponent.AccessibleAWTMenuComponent
          extended byjava.awt.MenuItem.AccessibleAWTMenuItem
All Implemented Interfaces:
javax.accessibility.AccessibleAction, javax.accessibility.AccessibleComponent, javax.accessibility.AccessibleSelection, javax.accessibility.AccessibleValue, java.io.Serializable
Direct Known Subclasses:
CheckboxMenuItem.AccessibleAWTCheckboxMenuItem, Menu.AccessibleAWTMenu
Enclosing class:
MenuItem

protected class MenuItem.AccessibleAWTMenuItem
extends MenuComponent.AccessibleAWTMenuComponent
implements javax.accessibility.AccessibleAction, javax.accessibility.AccessibleValue


Field Summary
private static long serialVersionUID
           
 
Fields inherited from class javax.accessibility.AccessibleContext
ACCESSIBLE_ACTION_PROPERTY, ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTY, ACCESSIBLE_CARET_PROPERTY, ACCESSIBLE_CHILD_PROPERTY, ACCESSIBLE_COMPONENT_BOUNDS_CHANGED, ACCESSIBLE_DESCRIPTION_PROPERTY, ACCESSIBLE_HYPERTEXT_OFFSET, ACCESSIBLE_INVALIDATE_CHILDREN, ACCESSIBLE_NAME_PROPERTY, ACCESSIBLE_SELECTION_PROPERTY, ACCESSIBLE_STATE_PROPERTY, ACCESSIBLE_TABLE_CAPTION_CHANGED, ACCESSIBLE_TABLE_COLUMN_DESCRIPTION_CHANGED, ACCESSIBLE_TABLE_COLUMN_HEADER_CHANGED, ACCESSIBLE_TABLE_MODEL_CHANGED, ACCESSIBLE_TABLE_ROW_DESCRIPTION_CHANGED, ACCESSIBLE_TABLE_ROW_HEADER_CHANGED, ACCESSIBLE_TABLE_SUMMARY_CHANGED, ACCESSIBLE_TEXT_ATTRIBUTES_CHANGED, ACCESSIBLE_TEXT_PROPERTY, ACCESSIBLE_VALUE_PROPERTY, ACCESSIBLE_VISIBLE_DATA_PROPERTY, accessibleDescription, accessibleName, accessibleParent
 
Fields inherited from interface javax.accessibility.AccessibleAction
DECREMENT, INCREMENT, TOGGLE_EXPAND
 
Constructor Summary
protected MenuItem.AccessibleAWTMenuItem()
          Constructor
 
Method Summary
 boolean doAccessibleAction(int i)
          Perform the specified action.
 javax.accessibility.AccessibleAction getAccessibleAction()
          Get any supported accessible actions.
 int getAccessibleActionCount()
          Get the number possible actions for this object, with the zeroth representing the default action.
 java.lang.String getAccessibleActionDescription(int i)
          Get a description for the specified action.
 java.lang.String getAccessibleName()
          Returns the accessible name of this component.
 javax.accessibility.AccessibleRole getAccessibleRole()
          Returns the accessible role of this component.
 javax.accessibility.AccessibleValue getAccessibleValue()
          Get any supported accessible value.
 java.lang.Number getCurrentAccessibleValue()
          Gets the current value of this object, or null if it has not been set.
 java.lang.Number getMaximumAccessibleValue()
          Gets the maximum value in the range of this object, or null if there is no maximum.
 java.lang.Number getMinimumAccessibleValue()
          Gets the minimum value in the range of this object, or null if there is no minimum.
 boolean setCurrentAccessibleValue(java.lang.Number number)
          Sets the current value of this object.
 
Methods inherited from class java.awt.MenuComponent.AccessibleAWTMenuComponent
addAccessibleSelection, addFocusListener, clearAccessibleSelection, contains, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount, getAccessibleComponent, getAccessibleDescription, getAccessibleIndexInParent, getAccessibleParent, getAccessibleSelection, getAccessibleSelection, getAccessibleSelectionCount, getAccessibleStateSet, getBackground, getBounds, getCursor, getFont, getFontMetrics, getForeground, getLocale, getLocation, getLocationOnScreen, getSize, isAccessibleChildSelected, isEnabled, isFocusTraversable, isShowing, isVisible, removeAccessibleSelection, removeFocusListener, requestFocus, selectAllAccessibleSelection, setBackground, setBounds, setCursor, setEnabled, setFont, setForeground, setLocation, setSize, setVisible
 
Methods inherited from class javax.accessibility.AccessibleContext
addPropertyChangeListener, firePropertyChange, getAccessibleEditableText, getAccessibleIcon, getAccessibleRelationSet, getAccessibleTable, getAccessibleText, removePropertyChangeListener, setAccessibleDescription, setAccessibleName, setAccessibleParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

MenuItem.AccessibleAWTMenuItem

protected MenuItem.AccessibleAWTMenuItem()
Constructor

Method Detail

getAccessibleName

public java.lang.String getAccessibleName()
Description copied from class: MenuComponent.AccessibleAWTMenuComponent
Returns the accessible name of this component. This is the name given to the component, which may be null if not set using setName().

The name property is not the most suitable string to return for this method. The string should be localized, and relevant to the operation of the component. For example, it could be the text of a menu item. However, this can not be used at this level of abstraction, so it is the responsibility of subclasses to provide a more appropriate name.

Overrides:
getAccessibleName in class MenuComponent.AccessibleAWTMenuComponent

getAccessibleAction

public javax.accessibility.AccessibleAction getAccessibleAction()
Description copied from class: javax.accessibility.AccessibleContext
Get any supported accessible actions. The default implementation returns null.


getAccessibleRole

public javax.accessibility.AccessibleRole getAccessibleRole()
Description copied from class: MenuComponent.AccessibleAWTMenuComponent
Returns the accessible role of this component.

The abstract implementation of this method returns AccessibleRole.AWT_COMPONENT, as the abstract component has no specific role. This method should be overridden by concrete subclasses, so as to return an appropriate role for the component.

Overrides:
getAccessibleRole in class MenuComponent.AccessibleAWTMenuComponent

getAccessibleActionCount

public int getAccessibleActionCount()
Description copied from interface: javax.accessibility.AccessibleAction
Get the number possible actions for this object, with the zeroth representing the default action.

Specified by:
getAccessibleActionCount in interface javax.accessibility.AccessibleAction

getAccessibleActionDescription

public java.lang.String getAccessibleActionDescription(int i)
Description copied from interface: javax.accessibility.AccessibleAction
Get a description for the specified action. Returns null if out of bounds.

Specified by:
getAccessibleActionDescription in interface javax.accessibility.AccessibleAction

doAccessibleAction

public boolean doAccessibleAction(int i)
Description copied from interface: javax.accessibility.AccessibleAction
Perform the specified action. Does nothing if out of bounds.

Specified by:
doAccessibleAction in interface javax.accessibility.AccessibleAction

getAccessibleValue

public javax.accessibility.AccessibleValue getAccessibleValue()
Description copied from class: javax.accessibility.AccessibleContext
Get any supported accessible value. The default implementation returns null.


getCurrentAccessibleValue

public java.lang.Number getCurrentAccessibleValue()
Description copied from interface: javax.accessibility.AccessibleValue
Gets the current value of this object, or null if it has not been set.

Specified by:
getCurrentAccessibleValue in interface javax.accessibility.AccessibleValue

setCurrentAccessibleValue

public boolean setCurrentAccessibleValue(java.lang.Number number)
Description copied from interface: javax.accessibility.AccessibleValue
Sets the current value of this object. Returns true if the number successfully changed.

Specified by:
setCurrentAccessibleValue in interface javax.accessibility.AccessibleValue

getMinimumAccessibleValue

public java.lang.Number getMinimumAccessibleValue()
Description copied from interface: javax.accessibility.AccessibleValue
Gets the minimum value in the range of this object, or null if there is no minimum.

Specified by:
getMinimumAccessibleValue in interface javax.accessibility.AccessibleValue

getMaximumAccessibleValue

public java.lang.Number getMaximumAccessibleValue()
Description copied from interface: javax.accessibility.AccessibleValue
Gets the maximum value in the range of this object, or null if there is no maximum.

Specified by:
getMaximumAccessibleValue in interface javax.accessibility.AccessibleValue