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.
   
  -   MenuComponent() MenuComponent()
-  
   
  -   getFont() getFont()
-  Gets the font used for this MenuItem.
  
-   getParent() getParent()
-  Returns the parent container.
  
-   getPeer() getPeer()
-  Gets the MenuComponent's peer.
  
-   paramString() paramString()
-  Returns the String parameter of this MenuComponent.
  
-   postEvent(Event) postEvent(Event)
-  Posts the specified event to the menu.
  
-   removeNotify() removeNotify()
-  Removes the menu component's peer.
  
-   setFont(Font) setFont(Font)
-  Sets the font to be used for this MenuItem to the specified font.
  
-   toString() toString()
-  Returns the String representation of this MenuComponent's values.
   
 MenuComponent
MenuComponent
  public MenuComponent()
   
 getParent
getParent
  public MenuContainer getParent()
  -  Returns the parent container.
 getPeer
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.
 getFont
getFont
  public Font getFont()
  -  Gets the font used for this MenuItem.
  
    -  Returns:
    
-  the font if one is used; null otherwise.
  
 
 setFont
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
  
 
 removeNotify
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.
 postEvent
postEvent
  public boolean postEvent(Event evt)
  -  Posts the specified event to the menu.
  
    -  Parameters:
    
-  evt - the event which is to take place
  
 
 paramString
paramString
  protected String paramString()
  -  Returns the String parameter of this MenuComponent.
 toString
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