java.awt
Class MenuComponent.AccessibleAWTMenuComponent

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.MenuComponent.AccessibleAWTMenuComponent
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 , AccessibleSelection sample code for javax.accessibility.AccessibleSelection definition code for javax.accessibility.AccessibleSelection
Direct Known Subclasses:
MenuBar.AccessibleAWTMenuBar sample code for java.awt.MenuBar.AccessibleAWTMenuBar definition code for java.awt.MenuBar.AccessibleAWTMenuBar , MenuItem.AccessibleAWTMenuItem sample code for java.awt.MenuItem.AccessibleAWTMenuItem definition code for java.awt.MenuItem.AccessibleAWTMenuItem
Enclosing class:
MenuComponent sample code for java.awt.MenuComponent definition code for java.awt.MenuComponent

protected abstract class MenuComponent.AccessibleAWTMenuComponent
extends AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext
implements 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 , AccessibleSelection sample code for javax.accessibility.AccessibleSelection definition code for javax.accessibility.AccessibleSelection

Inner class of MenuComponent 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.

The class used to obtain the accessible role for this object.

See Also:
Serialized Form

Field Summary
 
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 MenuComponent.AccessibleAWTMenuComponent sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.MenuComponent.AccessibleAWTMenuComponent() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.MenuComponent.AccessibleAWTMenuComponent() ()
          Although the class is abstract, this should be called by all sub-classes.
 
Method Summary
 void addAccessibleSelection sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.addAccessibleSelection(int) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.addAccessibleSelection(int) (int i)
          Adds the specified Accessible child of the object to the object's selection.
 void addFocusListener sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.addFocusListener(java.awt.event.FocusListener) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.addFocusListener(java.awt.event.FocusListener) (FocusListener sample code for java.awt.event.FocusListener definition code for java.awt.event.FocusListener  l)
          Adds the specified focus listener to receive focus events from this component.
 void clearAccessibleSelection sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.clearAccessibleSelection() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.clearAccessibleSelection() ()
          Clears the selection in the object, so that no children in the object are selected.
 boolean contains sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.contains(java.awt.Point) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.contains(java.awt.Point) (Point sample code for java.awt.Point definition code for java.awt.Point  p)
          Checks whether the specified point is within this object's bounds, where the point's x and y coordinates are defined to be relative to the coordinate system of the object.
 Accessible sample code for javax.accessibility.Accessible definition code for javax.accessibility.Accessible getAccessibleAt sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleAt(java.awt.Point) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleAt(java.awt.Point) (Point sample code for java.awt.Point definition code for java.awt.Point  p)
          Returns the Accessible child, if one exists, contained at the local coordinate Point.
 Accessible sample code for javax.accessibility.Accessible definition code for javax.accessibility.Accessible getAccessibleChild sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleChild(int) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleChild(int) (int i)
          Returns the nth Accessible child of the object.
 int getAccessibleChildrenCount sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleChildrenCount() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleChildrenCount() ()
          Returns the number of accessible children in the object.
 AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent getAccessibleComponent sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleComponent() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleComponent() ()
          Gets the AccessibleComponent associated with this object if one exists.
 String sample code for java.lang.String definition code for java.lang.String getAccessibleDescription sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleDescription() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleDescription() ()
          Gets the accessible description of this object.
 int getAccessibleIndexInParent sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleIndexInParent() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleIndexInParent() ()
          Gets the index of this object in its accessible parent.
 String sample code for java.lang.String definition code for java.lang.String getAccessibleName sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleName() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleName() ()
          Gets the accessible name of this object.
 Accessible sample code for javax.accessibility.Accessible definition code for javax.accessibility.Accessible getAccessibleParent sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleParent() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleParent() ()
          Gets the Accessible parent of this object.
 AccessibleRole sample code for javax.accessibility.AccessibleRole definition code for javax.accessibility.AccessibleRole getAccessibleRole sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleRole() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleRole() ()
          Gets the role of this object.
 AccessibleSelection sample code for javax.accessibility.AccessibleSelection definition code for javax.accessibility.AccessibleSelection getAccessibleSelection sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleSelection() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleSelection() ()
          Gets the AccessibleSelection associated with this object which allows its Accessible children to be selected.
 Accessible sample code for javax.accessibility.Accessible definition code for javax.accessibility.Accessible getAccessibleSelection sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleSelection(int) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleSelection(int) (int i)
          Returns an Accessible representing the specified selected child in the object.
 int getAccessibleSelectionCount sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleSelectionCount() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleSelectionCount() ()
          Returns the number of Accessible children currently selected.
 AccessibleStateSet sample code for javax.accessibility.AccessibleStateSet definition code for javax.accessibility.AccessibleStateSet getAccessibleStateSet sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleStateSet() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleStateSet() ()
          Gets the state of this object.
 Color sample code for java.awt.Color definition code for java.awt.Color getBackground sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getBackground() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getBackground() ()
          Gets the background color of this object.
 Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle getBounds sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getBounds() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getBounds() ()
          Gets the bounds of this object in the form of a Rectangle object.
 Cursor sample code for java.awt.Cursor definition code for java.awt.Cursor getCursor sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getCursor() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getCursor() ()
          Gets the Cursor of this object.
 Font sample code for java.awt.Font definition code for java.awt.Font getFont sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getFont() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getFont() ()
          Gets the Font of this object.
 FontMetrics sample code for java.awt.FontMetrics definition code for java.awt.FontMetrics getFontMetrics sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getFontMetrics(java.awt.Font) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getFontMetrics(java.awt.Font) (Font sample code for java.awt.Font definition code for java.awt.Font  f)
          Gets the FontMetrics of this object.
 Color sample code for java.awt.Color definition code for java.awt.Color getForeground sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getForeground() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getForeground() ()
          Gets the foreground color of this object.
 Locale sample code for java.util.Locale definition code for java.util.Locale getLocale sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getLocale() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getLocale() ()
          Returns the locale of this object.
 Point sample code for java.awt.Point definition code for java.awt.Point getLocation sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getLocation() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getLocation() ()
          Gets the location of the object relative to the parent in the form of a point specifying the object's top-left corner in the screen's coordinate space.
 Point sample code for java.awt.Point definition code for java.awt.Point getLocationOnScreen sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getLocationOnScreen() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getLocationOnScreen() ()
          Returns the location of the object on the screen.
 Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension getSize sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getSize() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getSize() ()
          Returns the size of this object in the form of a Dimension object.
 boolean isAccessibleChildSelected sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.isAccessibleChildSelected(int) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.isAccessibleChildSelected(int) (int i)
          Determines if the current child of this object is selected.
 boolean isEnabled sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.isEnabled() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.isEnabled() ()
          Determines if the object is enabled.
 boolean isFocusTraversable sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.isFocusTraversable() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.isFocusTraversable() ()
          Returns whether this object can accept focus or not.
 boolean isShowing sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.isShowing() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.isShowing() ()
          Determines if the object is showing.
 boolean isVisible sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.isVisible() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.isVisible() ()
          Determines if the object is visible.
 void removeAccessibleSelection sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.removeAccessibleSelection(int) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.removeAccessibleSelection(int) (int i)
          Removes the specified child of the object from the object's selection.
 void removeFocusListener sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.removeFocusListener(java.awt.event.FocusListener) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.removeFocusListener(java.awt.event.FocusListener) (FocusListener sample code for java.awt.event.FocusListener definition code for java.awt.event.FocusListener  l)
          Removes the specified focus listener so it no longer receives focus events from this component.
 void requestFocus sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.requestFocus() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.requestFocus() ()
          Requests focus for this object.
 void selectAllAccessibleSelection sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.selectAllAccessibleSelection() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.selectAllAccessibleSelection() ()
          Causes every child of the object to be selected if the object supports multiple selections.
 void setBackground sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setBackground(java.awt.Color) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setBackground(java.awt.Color) (Color sample code for java.awt.Color definition code for java.awt.Color  c)
          Sets the background color of this object.
 void setBounds sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setBounds(java.awt.Rectangle) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setBounds(java.awt.Rectangle) (Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  r)
          Sets the bounds of this object in the form of a Rectangle object.
 void setCursor sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setCursor(java.awt.Cursor) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setCursor(java.awt.Cursor) (Cursor sample code for java.awt.Cursor definition code for java.awt.Cursor  cursor)
          Sets the Cursor of this object.
 void setEnabled sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setEnabled(boolean) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setEnabled(boolean) (boolean b)
          Sets the enabled state of the object.
 void setFont sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setFont(java.awt.Font) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setFont(java.awt.Font) (Font sample code for java.awt.Font definition code for java.awt.Font  f)
          Sets the Font of this object.
 void setForeground sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setForeground(java.awt.Color) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setForeground(java.awt.Color) (Color sample code for java.awt.Color definition code for java.awt.Color  c)
          Sets the foreground color of this object.
 void setLocation sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setLocation(java.awt.Point) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setLocation(java.awt.Point) (Point sample code for java.awt.Point definition code for java.awt.Point  p)
          Sets the location of the object relative to the parent.
 void setSize sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setSize(java.awt.Dimension) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setSize(java.awt.Dimension) (Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  d)
          Resizes this object.
 void setVisible sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setVisible(boolean) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setVisible(boolean) (boolean b)
          Sets the visible state of the object.
 
Methods inherited from class javax.accessibility.AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext
addPropertyChangeListener sample code for javax.accessibility.AccessibleContext.addPropertyChangeListener(java.beans.PropertyChangeListener) definition code for javax.accessibility.AccessibleContext.addPropertyChangeListener(java.beans.PropertyChangeListener) , 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() , removePropertyChangeListener sample code for javax.accessibility.AccessibleContext.removePropertyChangeListener(java.beans.PropertyChangeListener) definition code for javax.accessibility.AccessibleContext.removePropertyChangeListener(java.beans.PropertyChangeListener) , 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)
 

Constructor Detail

MenuComponent.AccessibleAWTMenuComponent sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent()

protected MenuComponent.AccessibleAWTMenuComponent()
Although the class is abstract, this should be called by all sub-classes.

Method Detail

getAccessibleSelection sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleSelection() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleSelection()

public AccessibleSelection sample code for javax.accessibility.AccessibleSelection definition code for javax.accessibility.AccessibleSelection  getAccessibleSelection()
Gets the AccessibleSelection associated with this object which allows its Accessible children to be selected.

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:
AccessibleSelection if supported by object; else return null
See Also:
AccessibleSelection sample code for javax.accessibility.AccessibleSelection definition code for javax.accessibility.AccessibleSelection

getAccessibleName sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleName() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleName()

public String sample code for java.lang.String definition code for java.lang.String  getAccessibleName()
Gets the accessible name of this object. This should almost never return java.awt.MenuComponent.getName, as that generally isn't a localized name, and doesn't have meaning for the user. If the object is fundamentally a text object (e.g. a menu item), the accessible name should be the text of the object (e.g. "save"). If the object has a tooltip, the tooltip text may also be an appropriate String to return.

Overrides:
getAccessibleName sample code for javax.accessibility.AccessibleContext.getAccessibleName() definition code for javax.accessibility.AccessibleContext.getAccessibleName() in class AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext
Returns:
the localized name of the object -- can be null if this object does not have a name
See Also:
AccessibleContext.setAccessibleName(java.lang.String) sample code for javax.accessibility.AccessibleContext.setAccessibleName(java.lang.String) definition code for javax.accessibility.AccessibleContext.setAccessibleName(java.lang.String)

getAccessibleDescription sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleDescription() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleDescription()

public String sample code for java.lang.String definition code for java.lang.String  getAccessibleDescription()
Gets the accessible description of this object. This should be a concise, localized description of what this object is - what is its meaning to the user. If the object has a tooltip, the tooltip text may be an appropriate string to return, assuming it contains a concise description of the object (instead of just the name of the object - e.g. a "Save" icon on a toolbar that had "save" as the tooltip text shouldn't return the tooltip text as the description, but something like "Saves the current text document" instead).

Overrides:
getAccessibleDescription sample code for javax.accessibility.AccessibleContext.getAccessibleDescription() definition code for javax.accessibility.AccessibleContext.getAccessibleDescription() in class AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext
Returns:
the localized description of the object -- can be null if this object does not have a description
See Also:
AccessibleContext.setAccessibleDescription(java.lang.String) sample code for javax.accessibility.AccessibleContext.setAccessibleDescription(java.lang.String) definition code for javax.accessibility.AccessibleContext.setAccessibleDescription(java.lang.String)

getAccessibleRole sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleRole() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleRole()

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

Specified by:
getAccessibleRole sample code for javax.accessibility.AccessibleContext.getAccessibleRole() definition code for javax.accessibility.AccessibleContext.getAccessibleRole() in class AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext
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

getAccessibleStateSet sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleStateSet() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleStateSet()

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

Specified by:
getAccessibleStateSet sample code for javax.accessibility.AccessibleContext.getAccessibleStateSet() definition code for javax.accessibility.AccessibleContext.getAccessibleStateSet() in class AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext
Returns:
an instance of AccessibleStateSet containing the current state set of the object
See Also:
AccessibleState sample code for javax.accessibility.AccessibleState definition code for javax.accessibility.AccessibleState

getAccessibleParent sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleParent() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleParent()

public Accessible sample code for javax.accessibility.Accessible definition code for javax.accessibility.Accessible  getAccessibleParent()
Gets the Accessible parent of this object. If the parent of this object implements Accessible, this method should simply return getParent.

Overrides:
getAccessibleParent sample code for javax.accessibility.AccessibleContext.getAccessibleParent() definition code for javax.accessibility.AccessibleContext.getAccessibleParent() in class AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext
Returns:
the Accessible parent of this object -- can be null if this object does not have an Accessible parent

getAccessibleIndexInParent sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleIndexInParent() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleIndexInParent()

public int getAccessibleIndexInParent()
Gets the index of this object in its accessible parent.

Specified by:
getAccessibleIndexInParent sample code for javax.accessibility.AccessibleContext.getAccessibleIndexInParent() definition code for javax.accessibility.AccessibleContext.getAccessibleIndexInParent() in class AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext
Returns:
the index of this object in its parent; -1 if this object does not have an accessible parent
See Also:
getAccessibleParent() sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleParent() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleParent()

getAccessibleChildrenCount sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleChildrenCount() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleChildrenCount()

public int getAccessibleChildrenCount()
Returns the number of accessible children in the object. If all of the children of this object implement Accessible, then this method should return the number of children of this object.

Specified by:
getAccessibleChildrenCount sample code for javax.accessibility.AccessibleContext.getAccessibleChildrenCount() definition code for javax.accessibility.AccessibleContext.getAccessibleChildrenCount() in class AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext
Returns:
the number of accessible children in the object

getAccessibleChild sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleChild(int) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleChild(int)

public Accessible sample code for javax.accessibility.Accessible definition code for javax.accessibility.Accessible  getAccessibleChild(int i)
Returns the nth Accessible child of the object.

Specified by:
getAccessibleChild sample code for javax.accessibility.AccessibleContext.getAccessibleChild(int) definition code for javax.accessibility.AccessibleContext.getAccessibleChild(int) in class AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext
Parameters:
i - zero-based index of child
Returns:
the nth Accessible child of the object
See Also:
AccessibleContext.getAccessibleChildrenCount() sample code for javax.accessibility.AccessibleContext.getAccessibleChildrenCount() definition code for javax.accessibility.AccessibleContext.getAccessibleChildrenCount()

getLocale sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getLocale() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getLocale()

public Locale sample code for java.util.Locale definition code for java.util.Locale  getLocale()
Returns the locale of this object.

Specified by:
getLocale sample code for javax.accessibility.AccessibleContext.getLocale() definition code for javax.accessibility.AccessibleContext.getLocale() in class AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext
Returns:
the locale of this object

getAccessibleComponent sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleComponent() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleComponent()

public AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent  getAccessibleComponent()
Gets the AccessibleComponent associated with this object if one exists. Otherwise return null.

Overrides:
getAccessibleComponent sample code for javax.accessibility.AccessibleContext.getAccessibleComponent() definition code for javax.accessibility.AccessibleContext.getAccessibleComponent() in class AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext
Returns:
the component
See Also:
AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent

getBackground sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getBackground() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getBackground()

public Color sample code for java.awt.Color definition code for java.awt.Color  getBackground()
Gets the background color of this object.

Specified by:
getBackground sample code for javax.accessibility.AccessibleComponent.getBackground() definition code for javax.accessibility.AccessibleComponent.getBackground() in interface AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent
Returns:
the background color, if supported, of the object; otherwise, null
See Also:
AccessibleComponent.setBackground(java.awt.Color) sample code for javax.accessibility.AccessibleComponent.setBackground(java.awt.Color) definition code for javax.accessibility.AccessibleComponent.setBackground(java.awt.Color)

setBackground sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setBackground(java.awt.Color) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setBackground(java.awt.Color)

public void setBackground(Color sample code for java.awt.Color definition code for java.awt.Color  c)
Sets the background color of this object. (For transparency, see isOpaque.)

Specified by:
setBackground sample code for javax.accessibility.AccessibleComponent.setBackground(java.awt.Color) definition code for javax.accessibility.AccessibleComponent.setBackground(java.awt.Color) in interface AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent
Parameters:
c - the new Color for the background
See Also:
Component.isOpaque() sample code for java.awt.Component.isOpaque() definition code for java.awt.Component.isOpaque()

getForeground sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getForeground() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getForeground()

public Color sample code for java.awt.Color definition code for java.awt.Color  getForeground()
Gets the foreground color of this object.

Specified by:
getForeground sample code for javax.accessibility.AccessibleComponent.getForeground() definition code for javax.accessibility.AccessibleComponent.getForeground() in interface AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent
Returns:
the foreground color, if supported, of the object; otherwise, null
See Also:
AccessibleComponent.setForeground(java.awt.Color) sample code for javax.accessibility.AccessibleComponent.setForeground(java.awt.Color) definition code for javax.accessibility.AccessibleComponent.setForeground(java.awt.Color)

setForeground sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setForeground(java.awt.Color) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setForeground(java.awt.Color)

public void setForeground(Color sample code for java.awt.Color definition code for java.awt.Color  c)
Sets the foreground color of this object.

Specified by:
setForeground sample code for javax.accessibility.AccessibleComponent.setForeground(java.awt.Color) definition code for javax.accessibility.AccessibleComponent.setForeground(java.awt.Color) in interface AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent
Parameters:
c - the new Color for the foreground
See Also:
AccessibleComponent.getForeground() sample code for javax.accessibility.AccessibleComponent.getForeground() definition code for javax.accessibility.AccessibleComponent.getForeground()

getCursor sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getCursor() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getCursor()

public Cursor sample code for java.awt.Cursor definition code for java.awt.Cursor  getCursor()
Gets the Cursor of this object.

Specified by:
getCursor sample code for javax.accessibility.AccessibleComponent.getCursor() definition code for javax.accessibility.AccessibleComponent.getCursor() in interface AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent
Returns:
the Curso, if supported, of the object; otherwise, null
See Also:
AccessibleComponent.setCursor(java.awt.Cursor) sample code for javax.accessibility.AccessibleComponent.setCursor(java.awt.Cursor) definition code for javax.accessibility.AccessibleComponent.setCursor(java.awt.Cursor)

setCursor sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setCursor(java.awt.Cursor) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setCursor(java.awt.Cursor)

public void setCursor(Cursor sample code for java.awt.Cursor definition code for java.awt.Cursor  cursor)
Sets the Cursor of this object.

Specified by:
setCursor sample code for javax.accessibility.AccessibleComponent.setCursor(java.awt.Cursor) definition code for javax.accessibility.AccessibleComponent.setCursor(java.awt.Cursor) in interface AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent
Parameters:
cursor - the new Cursor for the object
See Also:
AccessibleComponent.getCursor() sample code for javax.accessibility.AccessibleComponent.getCursor() definition code for javax.accessibility.AccessibleComponent.getCursor()

getFont sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getFont() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getFont()

public Font sample code for java.awt.Font definition code for java.awt.Font  getFont()
Gets the Font of this object.

Specified by:
getFont sample code for javax.accessibility.AccessibleComponent.getFont() definition code for javax.accessibility.AccessibleComponent.getFont() in interface AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent
Returns:
the Font,if supported, for the object; otherwise, null
See Also:
AccessibleComponent.setFont(java.awt.Font) sample code for javax.accessibility.AccessibleComponent.setFont(java.awt.Font) definition code for javax.accessibility.AccessibleComponent.setFont(java.awt.Font)

setFont sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setFont(java.awt.Font) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setFont(java.awt.Font)

public void setFont(Font sample code for java.awt.Font definition code for java.awt.Font  f)
Sets the Font of this object.

Specified by:
setFont sample code for javax.accessibility.AccessibleComponent.setFont(java.awt.Font) definition code for javax.accessibility.AccessibleComponent.setFont(java.awt.Font) in interface AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent
Parameters:
f - the new Font for the object
See Also:
AccessibleComponent.getFont() sample code for javax.accessibility.AccessibleComponent.getFont() definition code for javax.accessibility.AccessibleComponent.getFont()

getFontMetrics sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getFontMetrics(java.awt.Font) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getFontMetrics(java.awt.Font)

public FontMetrics sample code for java.awt.FontMetrics definition code for java.awt.FontMetrics  getFontMetrics(Font sample code for java.awt.Font definition code for java.awt.Font  f)
Gets the FontMetrics of this object.

Specified by:
getFontMetrics sample code for javax.accessibility.AccessibleComponent.getFontMetrics(java.awt.Font) definition code for javax.accessibility.AccessibleComponent.getFontMetrics(java.awt.Font) in interface AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent
Parameters:
f - the Font
Returns:
the FontMetrics, if supported, the object; otherwise, null
See Also:
getFont() sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getFont() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getFont()

isEnabled sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.isEnabled() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.isEnabled()

public boolean isEnabled()
Determines if the object is enabled.

Specified by:
isEnabled sample code for javax.accessibility.AccessibleComponent.isEnabled() definition code for javax.accessibility.AccessibleComponent.isEnabled() in interface AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent
Returns:
true if object is enabled; otherwise, false
See Also:
AccessibleComponent.setEnabled(boolean) sample code for javax.accessibility.AccessibleComponent.setEnabled(boolean) definition code for javax.accessibility.AccessibleComponent.setEnabled(boolean) , AccessibleContext.getAccessibleStateSet() sample code for javax.accessibility.AccessibleContext.getAccessibleStateSet() definition code for javax.accessibility.AccessibleContext.getAccessibleStateSet() , AccessibleState.ENABLED sample code for javax.accessibility.AccessibleState.ENABLED definition code for javax.accessibility.AccessibleState.ENABLED , AccessibleStateSet sample code for javax.accessibility.AccessibleStateSet definition code for javax.accessibility.AccessibleStateSet

setEnabled sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setEnabled(boolean) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setEnabled(boolean)

public void setEnabled(boolean b)
Sets the enabled state of the object.

Specified by:
setEnabled sample code for javax.accessibility.AccessibleComponent.setEnabled(boolean) definition code for javax.accessibility.AccessibleComponent.setEnabled(boolean) in interface AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent
Parameters:
b - if true, enables this object; otherwise, disables it
See Also:
AccessibleComponent.isEnabled() sample code for javax.accessibility.AccessibleComponent.isEnabled() definition code for javax.accessibility.AccessibleComponent.isEnabled()

isVisible sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.isVisible() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.isVisible()

public boolean isVisible()
Determines if the object is visible. Note: this means that the object intends to be visible; however, it may not in fact be showing on the screen because one of the objects that this object is contained by is not visible. To determine if an object is showing on the screen, use isShowing.

Specified by:
isVisible sample code for javax.accessibility.AccessibleComponent.isVisible() definition code for javax.accessibility.AccessibleComponent.isVisible() in interface AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent
Returns:
true if object is visible; otherwise, false
See Also:
AccessibleComponent.setVisible(boolean) sample code for javax.accessibility.AccessibleComponent.setVisible(boolean) definition code for javax.accessibility.AccessibleComponent.setVisible(boolean) , AccessibleContext.getAccessibleStateSet() sample code for javax.accessibility.AccessibleContext.getAccessibleStateSet() definition code for javax.accessibility.AccessibleContext.getAccessibleStateSet() , AccessibleState.VISIBLE sample code for javax.accessibility.AccessibleState.VISIBLE definition code for javax.accessibility.AccessibleState.VISIBLE , AccessibleStateSet sample code for javax.accessibility.AccessibleStateSet definition code for javax.accessibility.AccessibleStateSet

setVisible sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setVisible(boolean) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setVisible(boolean)

public void setVisible(boolean b)
Sets the visible state of the object.

Specified by:
setVisible sample code for javax.accessibility.AccessibleComponent.setVisible(boolean) definition code for javax.accessibility.AccessibleComponent.setVisible(boolean) in interface AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent
Parameters:
b - if true, shows this object; otherwise, hides it
See Also:
AccessibleComponent.isVisible() sample code for javax.accessibility.AccessibleComponent.isVisible() definition code for javax.accessibility.AccessibleComponent.isVisible()

isShowing sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.isShowing() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.isShowing()

public boolean isShowing()
Determines if the object is showing. This is determined by checking the visibility of the object and ancestors of the object. Note: this will return true even if the object is obscured by another (for example, it happens to be underneath a menu that was pulled down).

Specified by:
isShowing sample code for javax.accessibility.AccessibleComponent.isShowing() definition code for javax.accessibility.AccessibleComponent.isShowing() in interface AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent
Returns:
true if object is showing; otherwise, false

contains sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.contains(java.awt.Point) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.contains(java.awt.Point)

public boolean contains(Point sample code for java.awt.Point definition code for java.awt.Point  p)
Checks whether the specified point is within this object's bounds, where the point's x and y coordinates are defined to be relative to the coordinate system of the object.

Specified by:
contains sample code for javax.accessibility.AccessibleComponent.contains(java.awt.Point) definition code for javax.accessibility.AccessibleComponent.contains(java.awt.Point) in interface AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent
Parameters:
p - the Point relative to the coordinate system of the object
Returns:
true if object contains Point; otherwise false
See Also:
AccessibleComponent.getBounds() sample code for javax.accessibility.AccessibleComponent.getBounds() definition code for javax.accessibility.AccessibleComponent.getBounds()

getLocationOnScreen sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getLocationOnScreen() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getLocationOnScreen()

public Point sample code for java.awt.Point definition code for java.awt.Point  getLocationOnScreen()
Returns the location of the object on the screen.

Specified by:
getLocationOnScreen sample code for javax.accessibility.AccessibleComponent.getLocationOnScreen() definition code for javax.accessibility.AccessibleComponent.getLocationOnScreen() in interface AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent
Returns:
location of object on screen -- can be null if this object is not on the screen
See Also:
AccessibleComponent.getBounds() sample code for javax.accessibility.AccessibleComponent.getBounds() definition code for javax.accessibility.AccessibleComponent.getBounds() , AccessibleComponent.getLocation() sample code for javax.accessibility.AccessibleComponent.getLocation() definition code for javax.accessibility.AccessibleComponent.getLocation()

getLocation sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getLocation() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getLocation()

public Point sample code for java.awt.Point definition code for java.awt.Point  getLocation()
Gets the location of the object relative to the parent in the form of a point specifying the object's top-left corner in the screen's coordinate space.

Specified by:
getLocation sample code for javax.accessibility.AccessibleComponent.getLocation() definition code for javax.accessibility.AccessibleComponent.getLocation() in interface AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent
Returns:
an instance of Point representing the top-left corner of the object's bounds in the coordinate space of the screen; null if this object or its parent are not on the screen
See Also:
AccessibleComponent.getBounds() sample code for javax.accessibility.AccessibleComponent.getBounds() definition code for javax.accessibility.AccessibleComponent.getBounds() , AccessibleComponent.getLocationOnScreen() sample code for javax.accessibility.AccessibleComponent.getLocationOnScreen() definition code for javax.accessibility.AccessibleComponent.getLocationOnScreen()

setLocation sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setLocation(java.awt.Point) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setLocation(java.awt.Point)

public void setLocation(Point sample code for java.awt.Point definition code for java.awt.Point  p)
Sets the location of the object relative to the parent.

Specified by:
setLocation sample code for javax.accessibility.AccessibleComponent.setLocation(java.awt.Point) definition code for javax.accessibility.AccessibleComponent.setLocation(java.awt.Point) in interface AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent
Parameters:
p - the new position for the top-left corner
See Also:
AccessibleComponent.getLocation() sample code for javax.accessibility.AccessibleComponent.getLocation() definition code for javax.accessibility.AccessibleComponent.getLocation()

getBounds sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getBounds() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getBounds()

public Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  getBounds()
Gets the bounds of this object in the form of a Rectangle object. The bounds specify this object's width, height, and location relative to its parent.

Specified by:
getBounds sample code for javax.accessibility.AccessibleComponent.getBounds() definition code for javax.accessibility.AccessibleComponent.getBounds() in interface AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent
Returns:
a rectangle indicating this component's bounds; null if this object is not on the screen
See Also:
AccessibleComponent.contains(java.awt.Point) sample code for javax.accessibility.AccessibleComponent.contains(java.awt.Point) definition code for javax.accessibility.AccessibleComponent.contains(java.awt.Point)

setBounds sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setBounds(java.awt.Rectangle) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setBounds(java.awt.Rectangle)

public void setBounds(Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  r)
Sets the bounds of this object in the form of a Rectangle object. The bounds specify this object's width, height, and location relative to its parent.

Specified by:
setBounds sample code for javax.accessibility.AccessibleComponent.setBounds(java.awt.Rectangle) definition code for javax.accessibility.AccessibleComponent.setBounds(java.awt.Rectangle) in interface AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent
Parameters:
r - a rectangle indicating this component's bounds
See Also:
AccessibleComponent.getBounds() sample code for javax.accessibility.AccessibleComponent.getBounds() definition code for javax.accessibility.AccessibleComponent.getBounds()

getSize sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getSize() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getSize()

public Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  getSize()
Returns the size of this object in the form of a Dimension object. The height field of the Dimension object contains this object's height, and the width field of the Dimension object contains this object's width.

Specified by:
getSize sample code for javax.accessibility.AccessibleComponent.getSize() definition code for javax.accessibility.AccessibleComponent.getSize() in interface AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent
Returns:
a Dimension object that indicates the size of this component; null if this object is not on the screen
See Also:
AccessibleComponent.setSize(java.awt.Dimension) sample code for javax.accessibility.AccessibleComponent.setSize(java.awt.Dimension) definition code for javax.accessibility.AccessibleComponent.setSize(java.awt.Dimension)

setSize sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setSize(java.awt.Dimension) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.setSize(java.awt.Dimension)

public void setSize(Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  d)
Resizes this object.

Specified by:
setSize sample code for javax.accessibility.AccessibleComponent.setSize(java.awt.Dimension) definition code for javax.accessibility.AccessibleComponent.setSize(java.awt.Dimension) in interface AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent
Parameters:
d - - the Dimension specifying the new size of the object
See Also:
AccessibleComponent.getSize() sample code for javax.accessibility.AccessibleComponent.getSize() definition code for javax.accessibility.AccessibleComponent.getSize()

getAccessibleAt sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleAt(java.awt.Point) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleAt(java.awt.Point)

public Accessible sample code for javax.accessibility.Accessible definition code for javax.accessibility.Accessible  getAccessibleAt(Point sample code for java.awt.Point definition code for java.awt.Point  p)
Returns the Accessible child, if one exists, contained at the local coordinate Point. If there is no Accessible child, null is returned.

Specified by:
getAccessibleAt sample code for javax.accessibility.AccessibleComponent.getAccessibleAt(java.awt.Point) definition code for javax.accessibility.AccessibleComponent.getAccessibleAt(java.awt.Point) in interface AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent
Parameters:
p - the point defining the top-left corner of the Accessible, given in the coordinate space of the object's parent
Returns:
the Accessible, if it exists, at the specified location; else null

isFocusTraversable sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.isFocusTraversable() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.isFocusTraversable()

public boolean isFocusTraversable()
Returns whether this object can accept focus or not.

Specified by:
isFocusTraversable sample code for javax.accessibility.AccessibleComponent.isFocusTraversable() definition code for javax.accessibility.AccessibleComponent.isFocusTraversable() in interface AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent
Returns:
true if object can accept focus; otherwise false
See Also:
AccessibleContext.getAccessibleStateSet() sample code for javax.accessibility.AccessibleContext.getAccessibleStateSet() definition code for javax.accessibility.AccessibleContext.getAccessibleStateSet() , AccessibleState.FOCUSABLE sample code for javax.accessibility.AccessibleState.FOCUSABLE definition code for javax.accessibility.AccessibleState.FOCUSABLE , AccessibleState.FOCUSED sample code for javax.accessibility.AccessibleState.FOCUSED definition code for javax.accessibility.AccessibleState.FOCUSED , AccessibleStateSet sample code for javax.accessibility.AccessibleStateSet definition code for javax.accessibility.AccessibleStateSet

requestFocus sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.requestFocus() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.requestFocus()

public void requestFocus()
Requests focus for this object.

Specified by:
requestFocus sample code for javax.accessibility.AccessibleComponent.requestFocus() definition code for javax.accessibility.AccessibleComponent.requestFocus() in interface AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent
See Also:
AccessibleComponent.isFocusTraversable() sample code for javax.accessibility.AccessibleComponent.isFocusTraversable() definition code for javax.accessibility.AccessibleComponent.isFocusTraversable()

addFocusListener sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.addFocusListener(java.awt.event.FocusListener) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.addFocusListener(java.awt.event.FocusListener)

public void addFocusListener(FocusListener sample code for java.awt.event.FocusListener definition code for java.awt.event.FocusListener  l)
Adds the specified focus listener to receive focus events from this component.

Specified by:
addFocusListener sample code for javax.accessibility.AccessibleComponent.addFocusListener(java.awt.event.FocusListener) definition code for javax.accessibility.AccessibleComponent.addFocusListener(java.awt.event.FocusListener) in interface AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent
Parameters:
l - the focus listener
See Also:
AccessibleComponent.removeFocusListener(java.awt.event.FocusListener) sample code for javax.accessibility.AccessibleComponent.removeFocusListener(java.awt.event.FocusListener) definition code for javax.accessibility.AccessibleComponent.removeFocusListener(java.awt.event.FocusListener)

removeFocusListener sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.removeFocusListener(java.awt.event.FocusListener) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.removeFocusListener(java.awt.event.FocusListener)

public void removeFocusListener(FocusListener sample code for java.awt.event.FocusListener definition code for java.awt.event.FocusListener  l)
Removes the specified focus listener so it no longer receives focus events from this component.

Specified by:
removeFocusListener sample code for javax.accessibility.AccessibleComponent.removeFocusListener(java.awt.event.FocusListener) definition code for javax.accessibility.AccessibleComponent.removeFocusListener(java.awt.event.FocusListener) in interface AccessibleComponent sample code for javax.accessibility.AccessibleComponent definition code for javax.accessibility.AccessibleComponent
Parameters:
l - the focus listener
See Also:
AccessibleComponent.addFocusListener(java.awt.event.FocusListener) sample code for javax.accessibility.AccessibleComponent.addFocusListener(java.awt.event.FocusListener) definition code for javax.accessibility.AccessibleComponent.addFocusListener(java.awt.event.FocusListener)

getAccessibleSelectionCount sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleSelectionCount() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleSelectionCount()

public int getAccessibleSelectionCount()
Returns the number of Accessible children currently selected. If no children are selected, the return value will be 0.

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:
the number of items currently selected

getAccessibleSelection sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleSelection(int) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleSelection(int)

public Accessible sample code for javax.accessibility.Accessible definition code for javax.accessibility.Accessible  getAccessibleSelection(int i)
Returns an Accessible representing the specified selected child in the object. If there isn't a selection, or there are fewer children selected than the integer passed in, the return value will be null.

Note that the index represents the i-th selected child, which is different from the i-th child.

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:
getAccessibleSelectionCount() sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleSelectionCount() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.getAccessibleSelectionCount()

isAccessibleChildSelected sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.isAccessibleChildSelected(int) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.isAccessibleChildSelected(int)

public boolean isAccessibleChildSelected(int i)
Determines 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 java.awt.MenuComponent.AccessibleAWTMenuComponent.addAccessibleSelection(int) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.addAccessibleSelection(int)

public void addAccessibleSelection(int i)
Adds the specified Accessible child of the object to the object's selection. If the object supports multiple selections, the specified child is added to any existing selection, otherwise it replaces any existing selection in the object. If the specified child 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 the child
See Also:
AccessibleContext.getAccessibleChild(int) sample code for javax.accessibility.AccessibleContext.getAccessibleChild(int) definition code for javax.accessibility.AccessibleContext.getAccessibleChild(int)

removeAccessibleSelection sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent.removeAccessibleSelection(int) definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.removeAccessibleSelection(int)

public void removeAccessibleSelection(int i)
Removes the specified child of the object from the object's selection. If the specified item isn't currently selected, this method has no effect.

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 the child
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 java.awt.MenuComponent.AccessibleAWTMenuComponent.clearAccessibleSelection() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.clearAccessibleSelection()

public void clearAccessibleSelection()
Clears the selection in the object, so that no children in the object are selected.

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 java.awt.MenuComponent.AccessibleAWTMenuComponent.selectAllAccessibleSelection() definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent.selectAllAccessibleSelection()

public void selectAllAccessibleSelection()
Causes every child of the object to be selected if the object supports multiple selections.

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