Class java.awt.MenuComponent
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.awt.MenuComponent

java.lang.Object
   |
   +----java.awt.MenuComponent

public class MenuComponent
extends Object
The super class of all menu related components.

Constructor Index

 o MenuComponent()

Method Index

 o getFont()
Gets the font used for this MenuItem.
 o getParent()
Returns the parent container.
 o getPeer()
Gets the MenuComponent's peer.
 o paramString()
Returns the String parameter of this MenuComponent.
 o postEvent(Event)
Posts the specified event to the menu.
 o removeNotify()
Removes the menu component's peer.
 o setFont(Font)
Sets the font to be used for this MenuItem to the specified font.
 o toString()
Returns the String representation of this MenuComponent's values.

Constructors

 o MenuComponent
  public MenuComponent()

Methods

 o getParent
  public MenuContainer getParent()
Returns the parent container.
 o getPeer
  public MenuComponentPeer getPeer()
Gets the MenuComponent's peer. The peer allows us to modify the appearance of the menu component without changing the functionality of the menu component.
 o getFont
  public Font getFont()
Gets the font used for this MenuItem.
Returns:
the font if one is used; null otherwise.
 o setFont
  public void setFont(Font f)
Sets the font to be used for this MenuItem to the specified font.
Parameters:
f - the font to be set
 o removeNotify
  public void removeNotify()
Removes the menu component's peer. The peer allows us to modify the appearance of the menu component without changing the functionality of the menu component.
 o postEvent
  public boolean postEvent(Event evt)
Posts the specified event to the menu.
Parameters:
evt - the event which is to take place
 o paramString
  protected String paramString()
Returns the String parameter of this MenuComponent.
 o toString
  public String toString()
Returns the String representation of this MenuComponent's values.
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index