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 void
addComponent(Component component, Constraint constraint)
protected void
doDraw(Screen screen)
java.util.Collection<Component>
getComponents()
Returns a read-only collection of all contained components.void
handleInput(java.lang.String input)
void
handleMouse(org.jline.terminal.MouseEvent event)
protected abstract void
layout()
void
setSize(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:Container
Returns a read-only collection of all contained components.- Specified by:
getComponents
in interfaceContainer
-
setSize
public void setSize(Size size)
- Specified by:
setSize
in interfaceComponent
- Overrides:
setSize
in classAbstractComponent
-
layout
protected abstract void layout()
-
doDraw
protected void doDraw(Screen screen)
- Specified by:
doDraw
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
-
-