java.awt

Interface MenuContainer

public interface MenuContainer

This interface is a container for menu components.

Since: 1.0

UNKNOWN: updated to 1.4

Method Summary
FontgetFont()
Returns the font in use by this container.
booleanpostEvent(Event event)
Posts an event to the listeners.
voidremove(MenuComponent component)
Removes the specified menu component from the menu.

Method Detail

getFont

public Font getFont()
Returns the font in use by this container.

Returns: the menu font

postEvent

public boolean postEvent(Event event)

Deprecated: use {@link MenuComponent#dispatchEvent(AWTEvent)} instead

Posts an event to the listeners.

Parameters: event the event to dispatch

remove

public void remove(MenuComponent component)
Removes the specified menu component from the menu.

Parameters: component the menu component to remove