diff options
author | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-09 04:26:17 +0000 |
---|---|---|
committer | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-09 04:26:17 +0000 |
commit | 71946bc3b406beb3d1fb9b447204e4236d645c43 (patch) | |
tree | cdf9958b411887bead2263ea8ef0bdfc8eae6319 /libjava/java/awt/MenuContainer.java | |
parent | 0fc014c9ce8232f14be66144bf5a4c08a3e5ffe7 (diff) | |
download | ppe42-gcc-71946bc3b406beb3d1fb9b447204e4236d645c43.tar.gz ppe42-gcc-71946bc3b406beb3d1fb9b447204e4236d645c43.zip |
AWT/Swing merge from GNU Classpath.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56147 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/awt/MenuContainer.java')
-rw-r--r-- | libjava/java/awt/MenuContainer.java | 61 |
1 files changed, 26 insertions, 35 deletions
diff --git a/libjava/java/awt/MenuContainer.java b/libjava/java/awt/MenuContainer.java index 33ac07d837d..dd8b3412e2b 100644 --- a/libjava/java/awt/MenuContainer.java +++ b/libjava/java/awt/MenuContainer.java @@ -1,4 +1,4 @@ -/* MenuContainer.java -- Container for menu items. +/* MenuContainer.java -- container for menu items Copyright (C) 1999, 2002 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -39,42 +39,33 @@ exception statement from your version. */ package java.awt; /** - * This interface is a container for menu components. - * - * @author Aaron M. Renn (arenn@urbanophile.com) - */ + * This interface is a container for menu components. + * + * @author Aaron M. Renn <arenn@urbanophile.com> + * @since 1.0 + * @status updated to 1.4 + */ public interface MenuContainer { + /** + * Returns the font in use by this container. + * + * @return the menu font + */ + Font getFont(); -/** - * Returns the font in use by this container. - * - * @return The font in use by this container. - */ -public abstract Font -getFont(); - -/*************************************************************************/ - -/** - * Removes the specified menu component from the menu. - * - * @param component The menu component to remove. - */ -public abstract void -remove(MenuComponent component); - -/*************************************************************************/ - -/** - * 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); + /** + * Removes the specified menu component from the menu. + * + * @param component the menu component to remove + */ + void remove(MenuComponent component); + /** + * Posts an event to the listeners. + * + * @param event the event to dispatch + * @deprecated use {@link MenuComponent#dispatchEvent(AWTEvent)} instead + */ + boolean postEvent(Event event); } // interface MenuContainer |