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()
-
-
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 boolean 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 Class Hierarchy This Package Previous Next Index