Package adams.terminal.menu
Class GarbageCollector
- java.lang.Object
-
- adams.terminal.menu.AbstractMenuItemDefinition
-
- adams.terminal.menu.GarbageCollector
-
- All Implemented Interfaces:
MenuItem
,Serializable
,Comparable<AbstractMenuItemDefinition>
public class GarbageCollector extends AbstractMenuItemDefinition
Runs the garbage collector.- 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
-
-
Constructor Summary
Constructors Constructor Description GarbageCollector()
Initializes the menu item with no owner.GarbageCollector(adams.terminal.application.AbstractTerminalApplication owner)
Initializes the menu item.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doRun(com.googlecode.lanterna.gui2.WindowBasedTextGUI context)
Actual execution.String
getCategory()
Returns the category of the menu item in which it should appear, i.e., the name of the menu.String
getTitle()
Returns the title of the window (and text of menuitem).-
Methods inherited from class adams.terminal.menu.AbstractMenuItemDefinition
compareTo, equals, getOwner, getRunnable, initialize, logError, logError, logMessage, postRun, preRun, setOwner
-
-
-
-
Method Detail
-
doRun
protected void doRun(com.googlecode.lanterna.gui2.WindowBasedTextGUI context)
Actual execution.- Specified by:
doRun
in classAbstractMenuItemDefinition
- Parameters:
context
- the context to use
-
getTitle
public String getTitle()
Returns the title of the window (and text of menuitem).- Specified by:
getTitle
in interfaceMenuItem
- Specified by:
getTitle
in 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:
getCategory
in classAbstractMenuItemDefinition
- Returns:
- the category/menu name
-
-