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.
-
MenuComponent()
-
-
dispatchEvent(AWTEvent)
-
-
getFont()
- Gets the font used for this MenuItem.
-
getName()
- Gets the name of the menu component.
-
getParent()
- Returns the parent container.
-
getPeer()
-
Deprecated.
-
paramString()
- Returns the String parameter of this MenuComponent.
-
postEvent(Event)
- Posts the specified event to the menu.
-
processEvent(AWTEvent)
-
Processes events occurring on this menu component.
-
removeNotify()
- Removes the menu component's peer.
-
setFont(Font)
- Sets the font to be used for this MenuItem to the specified font.
-
setName(String)
- Sets the name of the component to the specified string.
-
toString()
- Returns the String representation of this MenuComponent's values.
MenuComponent
method MenuComponent() public
getName
method getName() returns String public
- Gets the name of the menu component.
setName
method setName(name=String) public
- Sets the name of the component to the specified string.
- Parameters:
- name - the name of the component.
getParent
method getParent() returns MenuContainer public
- Returns the parent container.
getPeer
method getPeer() returns MenuComponentPeer public
- Note: getPeer() is deprecated.
As of JDK version 1.1,
programs should not directly manipulate peers.
getFont
method getFont() returns Font public
- Gets the font used for this MenuItem.
- Returns:
- the font if one is used; null otherwise.
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
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.
postEvent
method postEvent(evt=Event) returns boolean public
- Posts the specified event to the menu.
- Parameters:
- evt - the event which is to take place
dispatchEvent
method dispatchEvent(e=AWTEvent) public final
processEvent
method processEvent(e=AWTEvent) Inheritable
- Processes events occurring on this menu component.
- Parameters:
- e - the event
paramString
method paramString() returns String Inheritable
- Returns the String parameter of this MenuComponent.
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