Module com.googlecode.lanterna
Package com.googlecode.lanterna.gui2
Class AbstractBasePane.EmptyMenuBar
- java.lang.Object
-
- com.googlecode.lanterna.gui2.AbstractComponent<MenuBar>
-
- com.googlecode.lanterna.gui2.menu.MenuBar
-
- com.googlecode.lanterna.gui2.AbstractBasePane.EmptyMenuBar
-
- All Implemented Interfaces:
Component,Container,TextGUIElement
- Enclosing class:
- AbstractBasePane<T extends BasePane>
private static class AbstractBasePane.EmptyMenuBar extends MenuBar
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.googlecode.lanterna.gui2.menu.MenuBar
MenuBar.DefaultMenuBarRenderer
-
-
Constructor Summary
Constructors Modifier Constructor Description privateEmptyMenuBar()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisEmptyMenuBar()booleanisInvalid()Checks if this element (or any of its child components, if any) has signaled that what it's currently displaying is out of date and needs re-drawing.voidonAdded(Container container)Called by the GUI system when you add a component to a container; DO NOT CALL THIS YOURSELF!voidonRemoved(Container container)Called by the GUI system when you remove a component from a container; DO NOT CALL THIS YOURSELF!-
Methods inherited from class com.googlecode.lanterna.gui2.menu.MenuBar
add, containsComponent, createDefaultRenderer, getChildCount, getChildren, getChildrenList, getMenu, getMenuCount, handleInput, nextFocus, previousFocus, removeComponent, toBasePane, updateLookupMap
-
Methods inherited from class com.googlecode.lanterna.gui2.AbstractComponent
addTo, calculatePreferredSize, draw, getBasePane, getGlobalPosition, getLayoutData, getParent, getPosition, getPreferredSize, getRenderer, getSize, getTextGUI, getTheme, getThemeDefinition, hasParent, invalidate, isInside, isVisible, onAfterDrawing, onBeforeDrawing, runOnGUIThreadIfExistsOtherwiseRunDirect, self, setLayoutData, setPosition, setPreferredSize, setRenderer, setSize, setTheme, setVisible, 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, getGlobalPosition, getLayoutData, getParent, getPosition, getPreferredSize, getRenderer, getSize, getTextGUI, getTheme, getThemeDefinition, hasParent, invalidate, isInside, isVisible, setLayoutData, setPosition, setPreferredSize, setSize, setTheme, setVisible, toGlobal, withBorder
-
Methods inherited from interface com.googlecode.lanterna.gui2.TextGUIElement
draw
-
-
-
-
Method Detail
-
isInvalid
public boolean isInvalid()
Description copied from interface:TextGUIElementChecks if this element (or any of its child components, if any) has signaled that what it's currently displaying is out of date and needs re-drawing.- Specified by:
isInvalidin interfaceTextGUIElement- Overrides:
isInvalidin classAbstractComponent<MenuBar>- Returns:
trueif the component is invalid and needs redrawing,falseotherwise
-
onAdded
public void onAdded(Container container)
Description copied from interface:ComponentCalled by the GUI system when you add a component to a container; DO NOT CALL THIS YOURSELF!- Specified by:
onAddedin interfaceComponent- Overrides:
onAddedin classAbstractComponent<MenuBar>- Parameters:
container- Container that this component was just added to
-
onRemoved
public void onRemoved(Container container)
Description copied from interface:ComponentCalled by the GUI system when you remove a component from a container; DO NOT CALL THIS YOURSELF!- Specified by:
onRemovedin interfaceComponent- Overrides:
onRemovedin classAbstractComponent<MenuBar>- Parameters:
container- Container that this component was just removed from
-
isEmptyMenuBar
public boolean isEmptyMenuBar()
- Overrides:
isEmptyMenuBarin classMenuBar
-
-