Package java.awt Previous
Previous
Java API
Java API
Index
Index
Next
Next

Interface MenuContainer

Methods

public  interface  java.awt.MenuContainer
{
        // Methods
    public abstract Font getFont();	
    public abstract boolean postEvent(Event  evt);	
    public abstract void remove(MenuComponent  comp);	
}

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 .


Methods


getFont

public abstract Font getFont() 

Return Value:

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..

Return Value:

Returns true if this menu component or one of its parents handled the event; false otherwise.

ParameterDescription
evt the event


remove

public abstract void remove(MenuComponent  comp) 

Removes the specified menu component from this menu container.

ParameterDescription
m the menu component to be removed



Top© 1996 Sun Microsystems, Inc. All rights reserved.