All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.awt.MenuComponent

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

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


Constructor Index

 o MenuComponent()

Method Index

 o dispatchEvent(AWTEvent)
 o getFont()
Gets the font used for this MenuItem.
 o getName()
Gets the name of the menu component.
 o getParent()
Returns the parent container.
 o getPeer()
Deprecated.
 o paramString()
Returns the String parameter of this MenuComponent.
 o postEvent(Event)
Posts the specified event to the menu.
 o processEvent(AWTEvent)
Processes events occurring on this menu component.
 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 setName(String)
Sets the name of the component to the specified string.
 o toString()
Returns the String representation of this MenuComponent's values.

Constructors

 o MenuComponent
    method MenuComponent() public 

Methods

 o getName
    method getName() returns String public     
Gets the name of the menu component.

 o setName
    method setName(name=String)  public     
Sets the name of the component to the specified string.

Parameters:
name - the name of the component.
 o getParent
    method getParent() returns MenuContainer public     
Returns the parent container.

 o getPeer
    method getPeer() returns MenuComponentPeer public     
Note: getPeer() is deprecated. As of JDK version 1.1, programs should not directly manipulate peers.

 o getFont
    method getFont() returns Font public     
Gets the font used for this MenuItem.

Returns:
the font if one is used; null otherwise.
 o setFont
    method setFont(f=Font)  public     
Sets the font to be used for this MenuItem to the specified font.

Parameters:
f - the font to be set
 o removeNotify
    method removeNotify()  public     
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
    method postEvent(evt=Event) returns boolean public     
Posts the specified event to the menu.

Parameters:
evt - the event which is to take place
 o dispatchEvent
    method dispatchEvent(e=AWTEvent)  public   final  
 o processEvent
    method processEvent(e=AWTEvent)  Inheritable     
Processes events occurring on this menu component.

Parameters:
e - the event
 o paramString
    method paramString() returns String Inheritable     
Returns the String parameter of this MenuComponent.

 o toString
    method toString() returns String public     
Returns the String representation of this MenuComponent's values.

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index