java.awt
Class MenuComponent
java.lang.Object
|
+--java.awt.MenuComponent
All Implemented Interfaces:
Serializable
This is the superclass of all non-menu AWT widgets.
Author:- Aaron M. Renn (arenn@urbanophile.com)
MenuComponent
public MenuComponent() Default constructor for subclasses.
Throws:
dispatchEvent
public final void dispatchEvent(java.awt.AWTEvent event) Sends this event to this component or a subcomponent for processing.
Parameters:
getFont
public Font getFont() Returns the font in use for this component.
Returns:
- The font for this component.
getName
public String getName() Returns the name of this component.
Returns:
- The name of this component.
getParent
public MenuContainer getParent() Returns the parent of this component.
Returns:
- The parent of this component.
getPeer
public MenuComponentPeer getPeer() Returns the native windowing system peer for this component.
Returns:
- The peer for this component.
getTreeLock
protected final Object getTreeLock() Returns the object used for synchronization locks on this component
when performing tree and layout functions.
Returns:
- The synchronization lock for this component.
paramString
protected String paramString() Returns a debugging string for this component
postEvent
public boolean postEvent(java.awt.Event event) AWT 1.0 event dispatcher.
Parameters:
processEvent
protected void processEvent(java.awt.AWTEvent event) Processes the specified event. In this class, this method simply
calls one of the more specific event handlers.
Parameters:
removeNotify
public void removeNotify() Destroys this component's native peer
setFont
public void setFont(java.awt.Font font) Sets the font for this component to the specified font.
Parameters:
setName
public void setName(java.lang.String name) Sets the name of this component to the specified name.
Parameters:
toString
public String toString() Returns a string representation of this component.
Returns:
- A string representation of this component