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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jline.curses.Component
Component.Behavior
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addComponent
(Component component, Constraint constraint) protected void
Returns a read-only collection of all contained components.void
handleInput
(String input) void
handleMouse
(MouseEvent event) protected abstract void
layout()
void
Methods inherited from class org.jline.curses.impl.AbstractComponent
computePreferredSize, computeRenderer, doGetPreferredSize, draw, enable, focus, focused, 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 Details
-
components
-
-
Constructor Details
-
AbstractPanel
public AbstractPanel()
-
-
Method Details
-
addComponent
-
getComponents
Description copied from interface:Container
Returns a read-only collection of all contained components.- Specified by:
getComponents
in interfaceContainer
-
setSize
- Specified by:
setSize
in interfaceComponent
- Overrides:
setSize
in classAbstractComponent
-
layout
protected abstract void layout() -
doDraw
- Specified by:
doDraw
in classAbstractComponent
-
handleMouse
- Specified by:
handleMouse
in interfaceComponent
- Overrides:
handleMouse
in classAbstractComponent
-
handleInput
- Specified by:
handleInput
in interfaceComponent
- Overrides:
handleInput
in classAbstractComponent
-