| Package java.awt |
Previous |
Java API |
Index |
Next |
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 .
public abstract Font getFont()Return Value:
Returns the font used in this menu component, if there is one; null otherwise.
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.
Parameter Description evt the event
public abstract void remove(MenuComponent comp)Removes the specified menu component from this menu container.
Parameter Description m the menu component to be removed
| © 1996 Sun Microsystems, Inc. All rights reserved. |