Package adams.gui.menu
Class FlowEditor
-
- All Implemented Interfaces:
AdditionalParameterHandler
,LastWidgetLaunched<FlowEditorPanel>
,Serializable
,Comparable<AbstractMenuItemDefinition>
public class FlowEditor extends AbstractParameterHandlingMenuItemDefinition implements LastWidgetLaunched<FlowEditorPanel>
Opens the Flow Editor. You can load/run flows. If no prefix or prefixed with "load:" a file only gets loaded. If prefixed with "run:" the file gets loaded and executed. Multiple files can be specified.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected FlowEditorPanel
m_FlowEditorPanel
the last editor that was launched.-
Fields inherited from class adams.gui.menu.AbstractParameterHandlingMenuItemDefinition
m_Parameters
-
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 FlowEditor()
Initializes the menu item with no owner.FlowEditor(AbstractApplicationFrame owner)
Initializes the menu item.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCategory()
Returns the category of the menu item in which it should appear, i.e., the name of the menu.String
getIconName()
Returns the file name of the icon.FlowEditorPanel
getLastWidget()
Returns the last widget that was launched.String
getTitle()
Returns the title of the window (and text of menuitem).UserMode
getUserMode()
Returns the user mode, which determines visibility as well.protected void
initialize()
Initializes the members.boolean
isSingleton()
Whether the panel can only be displayed once.void
launch()
Launches the functionality of the menu item.-
Methods inherited from class adams.gui.menu.AbstractParameterHandlingMenuItemDefinition
setAdditionalParameters
-
Methods inherited from class adams.gui.application.AbstractBasicMenuItemDefinition
getMenuItem, getUseThread, postLaunch, preLaunch
-
Methods inherited from class adams.gui.application.AbstractMenuItemDefinition
compareTo, createChildFrame, createChildFrame, equals, forCommandLine, forName, getActualCategory, getIcon, getLogger, getOwner, isAvailable, requiresRestartableApplication, setOwner
-
-
-
-
Field Detail
-
m_FlowEditorPanel
protected FlowEditorPanel m_FlowEditorPanel
the last editor that was launched.
-
-
Constructor Detail
-
FlowEditor
public FlowEditor()
Initializes the menu item with no owner.
-
FlowEditor
public FlowEditor(AbstractApplicationFrame owner)
Initializes the menu item.- Parameters:
owner
- the owning application
-
-
Method Detail
-
initialize
protected void initialize()
Initializes the members.- Overrides:
initialize
in classAbstractParameterHandlingMenuItemDefinition
-
getIconName
public String getIconName()
Returns the file name of the icon.- Overrides:
getIconName
in classAbstractMenuItemDefinition
- Returns:
- the filename or null if no icon available
-
launch
public void launch()
Launches the functionality of the menu item.- Specified by:
launch
in classAbstractBasicMenuItemDefinition
-
getTitle
public String getTitle()
Returns the title of the window (and text of menuitem).- Specified by:
getTitle
in classAbstractMenuItemDefinition
- Returns:
- the title
-
isSingleton
public boolean isSingleton()
Whether the panel can only be displayed once.- Specified by:
isSingleton
in classAbstractMenuItemDefinition
- Returns:
- true if the panel can only be displayed once
-
getUserMode
public UserMode getUserMode()
Returns the user mode, which determines visibility as well.- Specified by:
getUserMode
in classAbstractMenuItemDefinition
- Returns:
- the user mode
-
getCategory
public String getCategory()
Returns the category of the menu item in which it should appear, i.e., the name of the menu.- Specified by:
getCategory
in classAbstractMenuItemDefinition
- Returns:
- the category/menu name
-
getLastWidget
public FlowEditorPanel getLastWidget()
Returns the last widget that was launched.- Specified by:
getLastWidget
in interfaceLastWidgetLaunched<FlowEditorPanel>
- Returns:
- the widget, null if none launched
-
-