Class 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.AbstractTerminalApplication m_Owner
      the parent application frame.
      • Fields inherited from class adams.core.logging.LoggingObject

        m_Logger, m_LoggingIsEnabled, m_LoggingLevel
    • Constructor Summary

      Constructors 
      Constructor Description
      ApplicationMenu​(adams.terminal.application.AbstractTerminalApplication owner)
      Initializes menu generator.
    • Field Detail

      • m_Owner

        protected adams.terminal.application.AbstractTerminalApplication m_Owner
        the parent application frame.
    • Constructor Detail

      • ApplicationMenu

        public ApplicationMenu​(adams.terminal.application.AbstractTerminalApplication owner)
        Initializes menu generator.
        Parameters:
        owner - the owning application 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