Package adams.gui.application
Class AbstractBasicMenuItemDefinition
- java.lang.Object
-
- adams.gui.application.AbstractMenuItemDefinition
-
- adams.gui.application.AbstractBasicMenuItemDefinition
-
- All Implemented Interfaces:
Serializable
,Comparable<AbstractMenuItemDefinition>
- Direct Known Subclasses:
About
,AbstractClassifierBasedGeneticAlgorithmWizard
,AbstractJDKMenuItemDefinition
,AbstractParameterHandlingMenuItemDefinition
,AbstractSequenceViewer
,AbstractURLMenuItemDefinition
,AbstractWekaMenuItemDefinition
,ActorUsage
,AppendDatasets
,BatchFilterDatasets
,ClassHelp
,ConfigureOptionHandler
,ConnectToDatabases
,ConsoleWindow
,ContainerNesting
,DateTest
,Documentation
,EmailAddressBook
,FavoritesManagement
,FileChooserBookmarksManagement
,FindClass
,FindInFiles
,GarbageCollector
,GroovyConsole
,ImageProcessor
,LogEntryDatabaseViewer
,MakeCompatibleDatasets
,MemoryMonitor
,MergeDatasets
,NestedFormatViewer
,OptionsConversion
,OptionTree
,PlaceholderManagement
,PlotPanelTest
,Preferences
,PrettyPrintJSON
,PrettyPrintXML
,PreviewBrowser
,ProgramExit
,ProgramLookAndFeel
,ProgramRestart
,ProgramRestartWithMoreHeap
,ProgramUserMode
,PropertiesViewer
,RegExpTest
,RunTool
,ScriptingLog
,SendErrorReport
,SpreadSheetProcessor
,SqlWorkbench
,SSH
,StringConversion
,SystemInfo
,SystemPerformance
,TakeScreenshot
,Telnet
,Terminal
,TimeseriesExplorer
,XSLT
public abstract class AbstractBasicMenuItemDefinition extends AbstractMenuItemDefinition
Abstract ancestor for definining menu items in the ApplicationFrame menu.- 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 AbstractBasicMenuItemDefinition()
Initializes the menu item with no owner.AbstractBasicMenuItemDefinition(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 boolean
getUseThread()
Whether to use a simple runnable for launching or a separate thread.abstract void
launch()
Launches the functionality of the menu item.void
postLaunch()
Hook method that gets executed just after calling "launch()".void
preLaunch()
Hook method that gets executed just before calling "launch()".-
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
-
AbstractBasicMenuItemDefinition
public AbstractBasicMenuItemDefinition()
Initializes the menu item with no owner.
-
AbstractBasicMenuItemDefinition
public AbstractBasicMenuItemDefinition(AbstractApplicationFrame owner)
Initializes the menu item.- Parameters:
owner
- the owning application
-
-
Method Detail
-
getUseThread
protected boolean getUseThread()
Whether to use a simple runnable for launching or a separate thread.- Returns:
- true if to use separate thread
-
preLaunch
public void preLaunch()
Hook method that gets executed just before calling "launch()".
Default implementation does nothing.
-
launch
public abstract void launch()
Launches the functionality of the menu item.
-
postLaunch
public void postLaunch()
Hook method that gets executed just after calling "launch()".
Default implementation does nothing.
-
getMenuItem
public JMenuItem getMenuItem()
Returns the JMenuItem to use.- Specified by:
getMenuItem
in classAbstractMenuItemDefinition
- Returns:
- the menu item
- See Also:
launch()
-
-