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 private
EmptyMenuBar()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEmptyMenuBar()
boolean
isInvalid()
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
onAdded(Container container)
Called by the GUI system when you add a component to a container; DO NOT CALL THIS YOURSELF!void
onRemoved(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: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
public void onAdded(Container container)
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
public void onRemoved(Container container)
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
-
-