diff options
author | Bryce McKinlay <bryce@waitaki.otago.ac.nz> | 2002-08-09 04:26:17 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2002-08-09 05:26:17 +0100 |
commit | 7bde45b2eb84502b62e77e46d947e46dcbd333d6 (patch) | |
tree | cdf9958b411887bead2263ea8ef0bdfc8eae6319 /libjava/java/awt/MenuContainer.java | |
parent | 097684ce62b505168739fc98e952f92a8719a1fa (diff) | |
download | gcc-7bde45b2eb84502b62e77e46d947e46dcbd333d6.zip gcc-7bde45b2eb84502b62e77e46d947e46dcbd333d6.tar.gz gcc-7bde45b2eb84502b62e77e46d947e46dcbd333d6.tar.bz2 |
AWT/Swing merge from GNU Classpath.
From-SVN: r56147
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 33ac07d..dd8b341 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 |