Package org.jline.curses.impl
Class AbstractPanel
- java.lang.Object
-
- org.jline.curses.impl.AbstractComponent
-
- org.jline.curses.impl.AbstractPanel
-
- Direct Known Subclasses:
BorderPanel,GridPanel
public abstract class AbstractPanel extends AbstractComponent implements Container
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jline.curses.Component
Component.Behavior
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<Component,Constraint>components
-
Constructor Summary
Constructors Constructor Description AbstractPanel()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddComponent(Component component, Constraint constraint)protected voiddoDraw(Screen screen)java.util.Collection<Component>getComponents()Returns a read-only collection of all contained components.voidhandleInput(java.lang.String input)voidhandleMouse(org.jline.terminal.MouseEvent event)protected abstract voidlayout()voidsetSize(Size size)-
Methods inherited from class org.jline.curses.impl.AbstractComponent
computePreferredSize, computeRenderer, doGetPreferredSize, draw, enable, focus, getBehaviors, getDefaultRenderer, getParent, getPosition, getPreferredSize, getRenderer, getScreenPosition, getSize, getTheme, getWindow, isEnabled, isFocused, isIn, onFocus, onUnfocus, setBehaviors, setParent, setPosition, setPreferredSize, setRenderer, setTheme
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jline.curses.Component
draw, enable, focus, getBehaviors, getParent, getPosition, getPreferredSize, getScreenPosition, getSize, isEnabled, isFocused, isIn, setPosition
-
-
-
-
Field Detail
-
components
protected final java.util.Map<Component,Constraint> components
-
-
Method Detail
-
addComponent
public void addComponent(Component component, Constraint constraint)
-
getComponents
public java.util.Collection<Component> getComponents()
Description copied from interface:ContainerReturns a read-only collection of all contained components.- Specified by:
getComponentsin interfaceContainer
-
setSize
public void setSize(Size size)
- Specified by:
setSizein interfaceComponent- Overrides:
setSizein classAbstractComponent
-
layout
protected abstract void layout()
-
doDraw
protected void doDraw(Screen screen)
- Specified by:
doDrawin classAbstractComponent
-
handleMouse
public void handleMouse(org.jline.terminal.MouseEvent event)
- Specified by:
handleMousein interfaceComponent- Overrides:
handleMousein classAbstractComponent
-
handleInput
public void handleInput(java.lang.String input)
- Specified by:
handleInputin interfaceComponent- Overrides:
handleInputin classAbstractComponent
-
-