Package adams.gui.menu
Class AbstractURLMenuItemDefinition
- java.lang.Object
-
- adams.gui.application.AbstractMenuItemDefinition
-
- adams.gui.application.AbstractBasicMenuItemDefinition
-
- adams.gui.menu.AbstractURLMenuItemDefinition
-
- All Implemented Interfaces:
Serializable
,Comparable<AbstractMenuItemDefinition>
- Direct Known Subclasses:
Homepage
public abstract class AbstractURLMenuItemDefinition extends AbstractBasicMenuItemDefinition
Ancestor for menu item definitions that open a URL in a browser.- 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 AbstractURLMenuItemDefinition()
Initializes the menu item with no owner.AbstractURLMenuItemDefinition(AbstractApplicationFrame owner)
Initializes the menu item.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract String
getURL()
The URL to open in a browser.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.application.AbstractBasicMenuItemDefinition
getMenuItem, getUseThread, postLaunch, preLaunch
-
Methods inherited from class adams.gui.application.AbstractMenuItemDefinition
compareTo, createChildFrame, createChildFrame, equals, forCommandLine, forName, getActualCategory, getCategory, getIcon, getIconName, getLogger, getOwner, getTitle, getUserMode, initialize, isAvailable, requiresRestartableApplication, setOwner
-
-
-
-
Constructor Detail
-
AbstractURLMenuItemDefinition
public AbstractURLMenuItemDefinition()
Initializes the menu item with no owner.
-
AbstractURLMenuItemDefinition
public AbstractURLMenuItemDefinition(AbstractApplicationFrame owner)
Initializes the menu item.- Parameters:
owner
- the owning application
-
-
Method Detail
-
getURL
protected abstract String getURL()
The URL to open in a browser.- Returns:
- the URL
-
launch
public void launch()
Launches the functionality of the menu item.- Specified by:
launch
in classAbstractBasicMenuItemDefinition
-
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
-
-