- java.lang.Object
-
- com.googlecode.lanterna.gui2.Panels
-
public class Panels extends java.lang.Object
Utility class for quickly bunching up components in a panel, arranged in a particular pattern
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Panels()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Panel
grid(int columns, Component... components)
Creates a newPanel
with aGridLayout
layout manager and adds all the components passed instatic Panel
horizontal(Component... components)
Creates a newPanel
with aLinearLayout
layout manager in horizontal mode and adds all the components passed instatic Panel
vertical(Component... components)
Creates a newPanel
with aLinearLayout
layout manager in vertical mode and adds all the components passed in
-
-
-
Method Detail
-
horizontal
public static Panel horizontal(Component... components)
Creates a newPanel
with aLinearLayout
layout manager in horizontal mode and adds all the components passed in- Parameters:
components
- Components to be added to the newPanel
, in order- Returns:
- The new
Panel
-
vertical
public static Panel vertical(Component... components)
Creates a newPanel
with aLinearLayout
layout manager in vertical mode and adds all the components passed in- Parameters:
components
- Components to be added to the newPanel
, in order- Returns:
- The new
Panel
-
-