API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt. MenuComponent View Source
Author(s)
Arthur van Hoff
Since
JDK1.0
Version
1.81, 06/01/06
Serial
Hierarchy
 Object
      MenuComponent
Implements
 Serializable
Subclasses
Description
publicabstract abstract class MenuComponent
  The abstract class MenuComponent is the superclass of all menu-related components.
See also:   
Constructors
public MenuComponent () throws HeadlessException
  Creates a MenuComponent.
Methods
Hide/Show inherited methods
pack-private String constructComponentName ()
  Constructs a name for this MenuComponent.
publicfinal void dispatchEvent (AWTEvent e)
  Delivers an event to this component or one of its sub components.
pack-private void dispatchEventImpl (AWTEvent e)
pack-private boolean eventEnabled (AWTEvent e)
pack-private int getAccessibleChildIndex (MenuComponent child)
  Gets the index of the child within this MenuComponent.
public AccessibleContext getAccessibleContext ()
  Gets the AccessibleContext associated with this MenuComponent.
pack-private int getAccessibleIndexInParent ()
  Gets the index of this object in its accessible parent.
pack-private AccessibleStateSet getAccessibleStateSet ()
  Gets the state of this object.
pack-privatefinal Font getFont_NoClientCode ()
public Font getFont ()
  Gets the font used for this menu component.
public String getName ()
  Gets the name of the menu component.
pack-privatefinal MenuContainer getParent_NoClientCode ()
public MenuContainer getParent ()
  Returns the parent container for this menu component.
@Deprecated
public MenuComponentPeer getPeer ()
protectedfinal Object getTreeLock ()
  Gets this component's locking object (the object that owns the thread sychronization monitor) for AWT component-tree and layout operations.
protected String paramString ()
  Returns a string representing the state of this MenuComponent.
@Deprecated
public boolean postEvent (Event evt)
  Posts the specified event to the menu.
protected void processEvent (AWTEvent e)
  Processes events occurring on this menu component.
public void removeNotify ()
  Removes the menu component's peer.
public void setFont (Font f)
  Sets the font to be used for this menu component to the specified font.
public void setName (String name)
  Sets the name of the component to the specified string.
public String toString ()
  Returns a representation of this menu component as a string.
Fields
Hide/Show inherited fields
pack-private AccessibleContext accessibleContext
pack-privatefinalstatic String actionListenerK = "actionL"
pack-privatetransient sun.awt.AppContext appContext
  The AppContext of the MenuComponent.
pack-private Font font
  The menu component's font.
pack-privatefinalstatic String itemListenerK = "itemL"
pack-private boolean newEventsOnly
  Defaults to false.
pack-privatetransient MenuContainer parent
pack-privatetransient MenuComponentPeer peer
Nested Classes
  MenuComponent.AccessibleAWTMenuComponent
Inner class of MenuComponent used to provide default support for accessibility.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar