Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.awt

Class MenuComponent

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

All Implemented Interfaces:

Serializable


public abstract class MenuComponent

extends Object

implements Serializable

This is the superclass of all non-menu AWT widgets.

Author:

Constructor Summary

MenuComponent()

Default constructor for subclasses.

Method Summary

voiddispatchEvent(java.awt.AWTEvent event)

Sends this event to this component or a subcomponent for processing.
java.awt.FontgetFont()

Returns the font in use for this component.
java.lang.StringgetName()

Returns the name of this component.
java.awt.MenuContainergetParent()

Returns the parent of this component.
java.awt.peer.MenuComponentPeergetPeer()

Returns the native windowing system peer for this component.
java.lang.ObjectgetTreeLock()

Returns the object used for synchronization locks on this component when performing tree and layout functions.
java.lang.StringparamString()

Returns a debugging string for this component
booleanpostEvent(java.awt.Event event)

AWT 1.0 event dispatcher.
voidprocessEvent(java.awt.AWTEvent event)

Processes the specified event.
voidremoveNotify()

Destroys this component's native peer
voidsetFont(java.awt.Font font)

Sets the font for this component to the specified font.
voidsetName(java.lang.String name)

Sets the name of this component to the specified name.
java.lang.StringtoString()

Returns a string representation of this component.

Constructor Details

MenuComponent

public MenuComponent()

Default constructor for subclasses.

Throws:


Method Details

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:


getName

public String getName()

Returns the name of this component.

Returns:


getParent

public MenuContainer getParent()

Returns the parent of this component.

Returns:


getPeer

public MenuComponentPeer getPeer()

Returns the native windowing system peer for this component.

Returns:


getTreeLock

protected final Object getTreeLock()

Returns the object used for synchronization locks on this component when performing tree and layout functions.

Returns:


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: