Package org.jline.curses.impl
Class Menu
- java.lang.Object
-
- org.jline.curses.impl.AbstractComponent
-
- org.jline.curses.impl.Menu
-
- All Implemented Interfaces:
Component
public class Menu extends AbstractComponent
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jline.curses.Component
Component.Behavior
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doDraw(Screen screen)
protected Size
doGetPreferredSize()
java.util.List<SubMenu>
getContents()
void
handleInput(java.lang.String input)
void
handleMouse(org.jline.terminal.MouseEvent event)
void
setPosition(Position position)
-
Methods inherited from class org.jline.curses.impl.AbstractComponent
computePreferredSize, computeRenderer, draw, enable, focus, getBehaviors, getDefaultRenderer, getParent, getPosition, getPreferredSize, getRenderer, getScreenPosition, getSize, getTheme, getWindow, isEnabled, isFocused, isIn, onFocus, onUnfocus, setBehaviors, setParent, setPreferredSize, setRenderer, setSize, setTheme
-
-
-
-
Constructor Detail
-
Menu
public Menu(java.util.List<SubMenu> contents)
-
-
Method Detail
-
getContents
public java.util.List<SubMenu> getContents()
-
doDraw
protected void doDraw(Screen screen)
- Specified by:
doDraw
in classAbstractComponent
-
doGetPreferredSize
protected Size doGetPreferredSize()
- Specified by:
doGetPreferredSize
in classAbstractComponent
-
handleMouse
public void handleMouse(org.jline.terminal.MouseEvent event)
- Specified by:
handleMouse
in interfaceComponent
- Overrides:
handleMouse
in classAbstractComponent
-
handleInput
public void handleInput(java.lang.String input)
- Specified by:
handleInput
in interfaceComponent
- Overrides:
handleInput
in classAbstractComponent
-
setPosition
public void setPosition(Position position)
- Specified by:
setPosition
in interfaceComponent
- Overrides:
setPosition
in classAbstractComponent
-
-