1 |
/* MenuContainer.java -- Container for menu items. |
/* MenuContainer.java -- container for menu items |
2 |
Copyright (C) 1999, 2002 Free Software Foundation, Inc. |
Copyright (C) 1999, 2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
39 |
package java.awt; |
package java.awt; |
40 |
|
|
41 |
/** |
/** |
42 |
* This interface is a container for menu components. |
* This interface is a container for menu components. |
43 |
* |
* |
44 |
* @author Aaron M. Renn (arenn@urbanophile.com) |
* @author Aaron M. Renn <arenn@urbanophile.com> |
45 |
*/ |
* @since 1.0 |
46 |
|
* @status updated to 1.4 |
47 |
|
*/ |
48 |
public interface MenuContainer |
public interface MenuContainer |
49 |
{ |
{ |
50 |
|
/** |
51 |
/** |
* Returns the font in use by this container. |
52 |
* Returns the font in use by this container. |
* |
53 |
* |
* @return the menu font |
54 |
* @return The font in use by this container. |
*/ |
55 |
*/ |
Font getFont(); |
56 |
public abstract Font |
|
57 |
getFont(); |
/** |
58 |
|
* Removes the specified menu component from the menu. |
59 |
/*************************************************************************/ |
* |
60 |
|
* @param component the menu component to remove |
61 |
/** |
*/ |
62 |
* Removes the specified menu component from the menu. |
void remove(MenuComponent component); |
63 |
* |
|
64 |
* @param component The menu component to remove. |
/** |
65 |
*/ |
* Posts an event to the listeners. |
66 |
public abstract void |
* |
67 |
remove(MenuComponent component); |
* @param event the event to dispatch |
68 |
|
* @deprecated use {@link MenuComponent#dispatchEvent(AWTEvent)} instead |
69 |
/*************************************************************************/ |
*/ |
70 |
|
boolean postEvent(Event event); |
|
/** |
|
|
* Posts and event to the listeners. This is replaced by |
|
|
* <code>dispatchEvent</code>. |
|
|
* |
|
|
* @param event The event to dispatch. |
|
|
* |
|
|
* @deprecated |
|
|
*/ |
|
|
public abstract boolean |
|
|
postEvent(Event event); |
|
|
|
|
71 |
} // interface MenuContainer |
} // interface MenuContainer |