Package adams.terminal.menu
Class Homepage
- java.lang.Object
-
- adams.terminal.menu.AbstractMenuItemDefinition
-
- adams.terminal.menu.AbstractURLMenuItemDefinition
-
- adams.terminal.menu.Homepage
-
- All Implemented Interfaces:
MenuItem,Serializable,Comparable<AbstractMenuItemDefinition>
public class Homepage extends AbstractURLMenuItemDefinition
Outputs the project homepage.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.terminal.menu.AbstractMenuItemDefinition
CATEGORY_HELP, CATEGORY_MAINTENANCE, CATEGORY_PROGRAM, CATEGORY_TOOLS, m_Owner
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCategory()Returns the category of the menu item in which it should appear, i.e., the name of the menu.StringgetTitle()Returns the title of the window (and text of menuitem).protected StringgetURL()The URL to open in a browser.-
Methods inherited from class adams.terminal.menu.AbstractURLMenuItemDefinition
doRun
-
Methods inherited from class adams.terminal.menu.AbstractMenuItemDefinition
compareTo, equals, getOwner, getRunnable, initialize, logError, logError, logMessage, postRun, preRun, setOwner
-
-
-
-
Method Detail
-
getURL
protected String getURL()
The URL to open in a browser.- Specified by:
getURLin classAbstractURLMenuItemDefinition- Returns:
- the URL
-
getTitle
public String getTitle()
Returns the title of the window (and text of menuitem).- Specified by:
getTitlein interfaceMenuItem- Specified by:
getTitlein classAbstractMenuItemDefinition- Returns:
- the title
-
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:
getCategoryin classAbstractMenuItemDefinition- Returns:
- the category/menu name
-
-