Package adams.terminal.core
Class MenuBar
- java.lang.Object
-
- com.googlecode.lanterna.gui2.AbstractComponent<com.googlecode.lanterna.gui2.Panel>
-
- com.googlecode.lanterna.gui2.Panel
-
- adams.terminal.core.MenuBar
-
- All Implemented Interfaces:
com.googlecode.lanterna.gui2.Component
,com.googlecode.lanterna.gui2.Container
,com.googlecode.lanterna.gui2.TextGUIElement
public class MenuBar extends com.googlecode.lanterna.gui2.Panel
A lanterna menubar offering drop-down menus.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description MenuBar()
Initializes the menubar.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMenu(Menu menu)
Adds the menu at the end.-
Methods inherited from class com.googlecode.lanterna.gui2.Panel
addComponent, addComponent, calculatePreferredSize, containsComponent, createDefaultRenderer, getChildCount, getChildren, getLayoutManager, handleInput, invalidate, isInvalid, nextFocus, previousFocus, removeAllComponents, removeComponent, setLayoutManager, updateLookupMap
-
Methods inherited from class com.googlecode.lanterna.gui2.AbstractComponent
addTo, draw, getBasePane, getLayoutData, getParent, getPosition, getPreferredSize, getRenderer, getSize, getTextGUI, getTheme, getThemeDefinition, hasParent, isInside, onAdded, onAfterDrawing, onBeforeDrawing, onRemoved, runOnGUIThreadIfExistsOtherwiseRunDirect, self, setLayoutData, setPosition, setPreferredSize, setRenderer, setSize, setTheme, toBasePane, toGlobal, withBorder
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.googlecode.lanterna.gui2.Component
addTo, getBasePane, getLayoutData, getParent, getPosition, getPreferredSize, getRenderer, getSize, getTextGUI, getTheme, getThemeDefinition, hasParent, isInside, onAdded, onRemoved, setLayoutData, setPosition, setPreferredSize, setSize, setTheme, toBasePane, toGlobal, withBorder
-
-
-
-
Method Detail
-
addMenu
public void addMenu(Menu menu)
Adds the menu at the end.- Parameters:
menu
- the menu to add
-
-