public class Panel extends AbstractContainer
| Modifier and Type | Class and Description |
|---|---|
static class |
Panel.Orientation |
Component.Alignment| Constructor and Description |
|---|
Panel() |
Panel(Border border,
Panel.Orientation panelOrientation) |
Panel(Panel.Orientation panelOrientation) |
Panel(String title) |
Panel(String title,
Border border,
Panel.Orientation panelOrientation) |
Panel(String title,
Panel.Orientation panelOrientation) |
| Modifier and Type | Method and Description |
|---|---|
void |
addComponent(Component component,
LayoutParameter... layoutParameters)
Adds a new subcomponent to this container.
|
protected TerminalSize |
calculatePreferredSize() |
Border |
getBorder() |
LayoutManager |
getLayoutManager() |
String |
getTitle() |
boolean |
maximisesHorisontally() |
boolean |
maximisesVertically() |
boolean |
removeComponent(Component component)
Removes a component from this container.
|
void |
repaint(TextGraphics graphics)
This is the main 'paint' method for a component, it's called when
lanterna wants the component to re-draw itself.
|
void |
setBetweenComponentsPadding(int paddingSize)
Deprecated.
Use the layout manager to set the padding between components
|
void |
setBorder(Border border) |
void |
setLayoutManager(LayoutManager layoutManager) |
void |
setTitle(String title) |
String |
toString() |
addContainerListener, addShortcut, addShortcut, components, containsComponent, getComponentAt, getComponentCount, hasInteractable, isScrollable, nextFocus, previousFocus, removeAllComponents, removeContainerListener, triggerShortcutaddBorder, addComponentListener, getAlignment, getComponentListeners, getGUIScreen, getMinimumSize, getParent, getPreferredSize, getWindow, invalidate, isVisible, removeComponentListener, setAlignment, setParent, setPreferredSize, setVisible, transformAccordingToAlignmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddBorder, addComponentListener, getAlignment, getMinimumSize, getParent, getPreferredSize, getWindow, isVisible, removeComponentListener, setAlignment, setPreferredSize, setVisiblepublic Panel()
public Panel(String title)
public Panel(Panel.Orientation panelOrientation)
public Panel(String title, Panel.Orientation panelOrientation)
public Panel(Border border, Panel.Orientation panelOrientation)
public Panel(String title, Border border, Panel.Orientation panelOrientation)
public Border getBorder()
public void setBorder(Border border)
public String getTitle()
public void setTitle(String title)
public void setLayoutManager(LayoutManager layoutManager)
public LayoutManager getLayoutManager()
public boolean maximisesVertically()
public boolean maximisesHorisontally()
@Deprecated public void setBetweenComponentsPadding(int paddingSize)
public void repaint(TextGraphics graphics)
Componentgraphics - TextGraphics object to use for drawing the component and
getting information about the drawing contextprotected TerminalSize calculatePreferredSize()
calculatePreferredSize in class AbstractComponentpublic void addComponent(Component component, LayoutParameter... layoutParameters)
ContaineraddComponent in interface ContaineraddComponent in class AbstractContainercomponent - Component to add to this containerlayoutParameters - Optional parameters to give hits to the layout managerpublic boolean removeComponent(Component component)
ContainerremoveComponent in interface ContainerremoveComponent in class AbstractContainercomponent - Component to remove from this containertrue if a component was found and removed, false otherwiseCopyright © 2015. All Rights Reserved.