Package adams.gui.application
Class AbstractSubMenuDefinition
- java.lang.Object
-
- adams.gui.application.AbstractMenuItemDefinition
-
- adams.gui.application.AbstractSubMenuDefinition
-
- All Implemented Interfaces:
Serializable
,Comparable<AbstractMenuItemDefinition>
- Direct Known Subclasses:
RemoteCommands
public abstract class AbstractSubMenuDefinition extends AbstractMenuItemDefinition
Ancestor for menu items that provide a submenu.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.gui.application.AbstractMenuItemDefinition
CATEGORY_HELP, CATEGORY_MACHINELEARNING, CATEGORY_MAINTENANCE, CATEGORY_PROGRAM, CATEGORY_TOOLS, CATEGORY_VISUALIZATION, CATEGORY_WIZARD, m_Owner
-
-
Constructor Summary
Constructors Constructor Description AbstractSubMenuDefinition()
Initializes the menu item with no owner.AbstractSubMenuDefinition(AbstractApplicationFrame owner)
Initializes the menu item.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description JMenuItem
getMenuItem()
Returns the JMenuItem to use.protected abstract JMenuItem[]
getSubMenuItems()
Returns the menu items to add to the submenu.-
Methods inherited from class adams.gui.application.AbstractMenuItemDefinition
compareTo, createChildFrame, createChildFrame, equals, forCommandLine, forName, getActualCategory, getCategory, getIcon, getIconName, getLogger, getOwner, getTitle, getUserMode, initialize, isAvailable, isSingleton, requiresRestartableApplication, setOwner
-
-
-
-
Constructor Detail
-
AbstractSubMenuDefinition
public AbstractSubMenuDefinition()
Initializes the menu item with no owner.
-
AbstractSubMenuDefinition
public AbstractSubMenuDefinition(AbstractApplicationFrame owner)
Initializes the menu item.- Parameters:
owner
- the owning application
-
-
Method Detail
-
getSubMenuItems
protected abstract JMenuItem[] getSubMenuItems()
Returns the menu items to add to the submenu.- Returns:
- the menu items
-
getMenuItem
public JMenuItem getMenuItem()
Returns the JMenuItem to use.- Specified by:
getMenuItem
in classAbstractMenuItemDefinition
- Returns:
- the menu item
-
-