Packages  This Package  Prev  Next  Index  

§1.44 Interface MenuContainer

public  interface  java.awt.MenuContainer
{
        // Methods
    public abstract Font getFont();	§1.44.1
    public abstract boolean postEvent(Event  evt);	§1.44.2
    public abstract void remove(MenuComponent  comp);	§1.44.3
}
The MenuContainer interface specifies the methods that all menu-related containers must implement. Note that menu containers are not required to be full-fleged Container objects (II-§1.11).


Methods

getFont

public abstract Font getFont()
Returns:
the font used in this menu component, if there is one; null otherwise.

postEvent

public abstract boolean postEvent(Event evt)
Posts an event to this menu container..
Parameters:
evt - the event
Returns:
true if this menu component or one of its parents handled the event; false otherwise.

remove

public abstract void remove(MenuComponent comp)
Removes the specified menu component from this menu container.
Parameters:
m - the menu component to be removed

Packages  This Package  Prev  Next  Index
Java API Document (HTML generated by dkramer on April 22, 1996)
Copyright © 1996 Sun Microsystems, Inc. All rights reserved
Please send any comments or corrections to doug.kramer@sun.com