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>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.googlecode.lanterna.gui2.menu.MenuBar
MenuBar.DefaultMenuBarRenderer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
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.void
Called by the GUI system when you add a component to a container; DO NOT CALL THIS YOURSELF!void
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
-
Constructor Details
-
EmptyMenuBar
private EmptyMenuBar()
-
-
Method Details
-
isInvalid
public boolean isInvalid()Description copied from interface:TextGUIElement
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.- Specified by:
isInvalid
in interfaceTextGUIElement
- Overrides:
isInvalid
in classAbstractComponent<MenuBar>
- Returns:
true
if the component is invalid and needs redrawing,false
otherwise
-
onAdded
Description copied from interface:Component
Called by the GUI system when you add a component to a container; DO NOT CALL THIS YOURSELF!- Specified by:
onAdded
in interfaceComponent
- Overrides:
onAdded
in classAbstractComponent<MenuBar>
- Parameters:
container
- Container that this component was just added to
-
onRemoved
Description copied from interface:Component
Called by the GUI system when you remove a component from a container; DO NOT CALL THIS YOURSELF!- Specified by:
onRemoved
in interfaceComponent
- Overrides:
onRemoved
in classAbstractComponent<MenuBar>
- Parameters:
container
- Container that this component was just removed from
-
isEmptyMenuBar
public boolean isEmptyMenuBar()- Overrides:
isEmptyMenuBar
in classMenuBar
-