Package | Description |
---|---|
com.googlecode.lanterna.gui2 |
Modifier and Type | Method and Description |
---|---|
Panel |
Panel.addComponent(Component component)
Adds a new child component to the panel.
|
Panel |
Panel.addComponent(Component component,
LayoutData layoutData)
This method is a shortcut for calling:
|
static Panel |
Panels.grid(int columns,
Component... components)
Creates a new
Panel with a GridLayout layout manager and adds all the components passed in |
static Panel |
Panels.horizontal(Component... components)
Creates a new
Panel with a LinearLayout layout manager in horizontal mode and adds all the
components passed in |
Panel |
Panel.removeAllComponents()
Removes all child components from this panel
|
Panel |
Panel.setLayoutManager(LayoutManager layoutManager)
Assigns a new layout manager to this panel, replacing the previous layout manager assigned.
|
static Panel |
Panels.vertical(Component... components)
Creates a new
Panel with a LinearLayout layout manager in vertical mode and adds all the
components passed in |
Modifier and Type | Method and Description |
---|---|
protected ComponentRenderer<Panel> |
Panel.createDefaultRenderer() |
Modifier and Type | Method and Description |
---|---|
Component |
Component.addTo(Panel panel)
Same as calling
panel.addComponent(thisComponent) |
T |
AbstractComponent.addTo(Panel panel) |
Copyright © 2016. All rights reserved.