Package adams.terminal.application
Class ApplicationMenu
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.terminal.application.ApplicationMenu
-
- All Implemented Interfaces:
adams.core.logging.LoggingSupporter,adams.core.SizeOfHandler,Serializable
public class ApplicationMenu extends adams.core.logging.LoggingObject implements Serializable
Generates the menu for the terminal application.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected adams.terminal.application.AbstractTerminalApplicationm_Ownerthe parent application frame.
-
Constructor Summary
Constructors Constructor Description ApplicationMenu(adams.terminal.application.AbstractTerminalApplication owner)Initializes menu generator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MenuBargetMenuBar(com.googlecode.lanterna.gui2.WindowBasedTextGUI context)Generates the menu and returns it.adams.terminal.application.AbstractTerminalApplicationgetOwner()Returns the owning frame.
-
-
-
Method Detail
-
getOwner
public adams.terminal.application.AbstractTerminalApplication getOwner()
Returns the owning frame.- Returns:
- the owner
-
getMenuBar
public MenuBar getMenuBar(com.googlecode.lanterna.gui2.WindowBasedTextGUI context)
Generates the menu and returns it.- Parameters:
context- the context to use- Returns:
- the menu bar
-
-