Class java.awt.MenuComponent
All Packages This Package Previous Next
Class java.awt.MenuComponent
java.lang.Object
|
+----java.awt.MenuComponent
-
public class
MenuComponent
-
extends Object
The super class of all menu related components.
-
Version:
-
1.6, 08/17/95
-
Author:
-
Arthur van Hoff
-
MenuComponent()
-
-
getFont()
-
Gets the font used for this MenuItem.
-
getParent()
-
Returns the parent container.
-
getPeer()
-
Gets the menucomponent's peer.
-
paramString()
-
Returns the String parameter of this MenuComponent.
-
postEvent(Event)
-
Posts the specified event to the menu.
-
removeNotify()
-
Removes the menu component's peer.
-
setFont(Font)
-
Sets the font to be used for this MenuItem to the specified font.
-
toString()
-
Returns the String representation of this MenuComponent's values.
MenuComponent
public MenuComponent()
getParent
public MenuContainer getParent()
-
Returns the parent container.
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
public Font getFont()
-
Gets the font used for this MenuItem.
-
Returns:
-
the font if one is used; null otherwise.
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
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
public void postEvent(Event evt)
-
Posts the specified event to the menu.
-
Parameters:
-
evt
-
the event which is to take place
paramString
protected String paramString()
-
Returns the String parameter of this MenuComponent.
toString
public String toString()
-
Returns the String representation of this MenuComponent's values.
-
Overrides:
-
toString in class Object
All Packages This Package Previous Next