Class AbstractJDKMenuItemDefinition

    • Constructor Detail

      • AbstractJDKMenuItemDefinition

        public AbstractJDKMenuItemDefinition()
        Initializes the menu item with no owner.
      • AbstractJDKMenuItemDefinition

        public AbstractJDKMenuItemDefinition​(adams.terminal.application.AbstractTerminalApplication owner)
        Initializes the menu item.
        Parameters:
        owner - the owning application
    • Method Detail

      • doLaunch

        protected abstract void doLaunch​(com.googlecode.lanterna.gui2.WindowBasedTextGUI context)
        Performs the actual launch.
        Parameters:
        context - the context to use
      • doRun

        protected void doRun​(com.googlecode.lanterna.gui2.WindowBasedTextGUI context)
        Actual execution.
        Specified by:
        doRun in class AbstractMenuItemDefinition
        Parameters:
        context - the context to use
      • 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 class AbstractMenuItemDefinition
        Returns:
        the category/menu name