Uses of Interface
com.googlecode.lanterna.gui2.Component
-
Packages that use Component Package Description com.googlecode.lanterna.graphics com.googlecode.lanterna.gui2 com.googlecode.lanterna.gui2.dialogs com.googlecode.lanterna.gui2.menu com.googlecode.lanterna.gui2.table -
-
Uses of Component in com.googlecode.lanterna.graphics
Classes in com.googlecode.lanterna.graphics with type parameters of type Component Modifier and Type Interface Description static interface
SimpleTheme.RendererProvider<T extends Component>
Methods in com.googlecode.lanterna.graphics with type parameters of type Component Modifier and Type Method Description <T extends Component>
ComponentRenderer<T>AbstractTheme.DefinitionImpl. getRenderer(java.lang.Class<T> type)
<T extends Component>
ComponentRenderer<T>DelegatingThemeDefinition. getRenderer(java.lang.Class<T> type)
<T extends Component>
ComponentRenderer<T>SimpleTheme.Definition. getRenderer(java.lang.Class<T> type)
<T extends Component>
ComponentRenderer<T>ThemeDefinition. getRenderer(java.lang.Class<T> type)
Returns aComponentRenderer
attached to this definition for the specified type.<T extends Component>
SimpleTheme.DefinitionSimpleTheme.Definition. setRenderer(java.lang.Class<T> type, SimpleTheme.RendererProvider<T> rendererProvider)
Registered a callback to get a customComponentRenderer
for a particular class. -
Uses of Component in com.googlecode.lanterna.gui2
Classes in com.googlecode.lanterna.gui2 with type parameters of type Component Modifier and Type Class Description class
AbstractComponent<T extends Component>
AbstractComponent provides some good default behaviour for aComponent
, all components in Lanterna extends from this class in some way.interface
ComponentRenderer<T extends Component>
This interface defines a renderer for a component, an external class that does the sizing and rendering.interface
InteractableRenderer<T extends Component & Interactable>
Extended interface for component renderers used with interactable components.Subinterfaces of Component in com.googlecode.lanterna.gui2 Modifier and Type Interface Description interface
Border
Main interface for different border classes, with additional methods to help lanterna figure out the size and offset of components wrapped by borders.interface
Container
Container is a component that contains a collection of child components.interface
Interactable
This interface marks a component as able to receive keyboard input from the user.Classes in com.googlecode.lanterna.gui2 that implement Component Modifier and Type Class Description protected class
AbstractBasePane.ContentHolder
private static class
AbstractBasePane.EmptyMenuBar
class
AbstractBorder
Abstract implementation ofBorder
interface that has some of the methods filled out.class
AbstractComponent<T extends Component>
AbstractComponent provides some good default behaviour for aComponent
, all components in Lanterna extends from this class in some way.class
AbstractComposite<T extends Container>
This abstract implementation contains common code for the differentComposite
implementations.class
AbstractInteractableComponent<T extends AbstractInteractableComponent<T>>
Default implementation of Interactable that extends from AbstractComponent.class
AbstractListBox<V,T extends AbstractListBox<V,T>>
Base class for several list box implementations, this will handle things like list of items and the scrollbar.class
ActionListBox
This class is a list box implementation that displays a number of items that has actions associated with them.class
AnimatedLabel
This is a special label that contains not just a single text to display but a number of frames that are cycled through.private static class
Borders.DoubleLine
private static class
Borders.SingleLine
private static class
Borders.StandardBorder
class
Button
Simple labeled button that the user can trigger by pressing the Enter or the Spacebar key on the keyboard when the component is in focus.class
CheckBox
The checkbox component looks like a regular checkbox that you can find in modern graphics user interfaces, a label and a space that the user can toggle on and off by using enter or space keys.class
CheckBoxList<V>
This is a list box implementation where each item has its own checked state that can be toggled on and offclass
ComboBox<V>
This is a simple combo box implementation that allows the user to select one out of multiple items through a drop-down menu.class
EmptySpace
Simple component which draws a solid color over its area.class
GUIBackdrop
Special component that is by default displayed as the background of a text gui unless you override it with something else.class
ImageComponent
class
Label
Label is a simple read-only text display component.class
Panel
This class is the basic building block for creating user interfaces, being the standard implementation ofContainer
that supports multiple children.class
ProgressBar
This GUI element gives a visual indication of how far a process of some sort has progressed at any given time.class
RadioBoxList<V>
The list box will display a number of items, of which one and only one can be marked as selected.class
ScrollBar
Classic scrollbar that can be used to display where inside a larger component a view is showing.class
Separator
Static non-interactive component that is typically rendered as a single line.class
SplitPanel
class
TextBox
This component keeps a text content that is editable by the user.Fields in com.googlecode.lanterna.gui2 declared as Component Modifier and Type Field Description private Component
SplitPanel. compA
private Component
SplitPanel. compB
private Component
AbstractComposite. component
Fields in com.googlecode.lanterna.gui2 with type parameters of type Component Modifier and Type Field Description private java.util.List<Component>
Panel. components
Methods in com.googlecode.lanterna.gui2 that return Component Modifier and Type Method Description Component
Component. addTo(Panel panel)
Same as callingpanel.addComponent(thisComponent)
private Component[][]
GridLayout. buildTable(java.util.List<Component> components)
private Component[][]
GridLayout. eliminateUnusedRowsAndColumns(Component[][] table)
Component
AbstractBasePane. getComponent()
Component
AbstractComposite. getComponent()
Component
BasePane. getComponent()
Returns the component that is the content of the BasePane.Component
Composite. getComponent()
Returns the component that this Composite is wrappingComponent
Window. getComponent()
Returns the component which is the top-level in the component hierarchy inside this window.Component
Component. setLayoutData(LayoutData data)
Sets optional layout data associated with this component.Component
Component. setPosition(TerminalPosition position)
This method will be called by the layout manager when it has decided where the component is to be located.Component
Component. setPreferredSize(TerminalSize explicitPreferredSize)
Overrides the components preferred size calculation and makes thegetPreferredSize()
always return the value passed in here.Component
Component. setSize(TerminalSize size)
This method will be called by the layout manager when it has decided how large the component will be.Component
AbstractComponent. setTheme(Theme theme)
Component
Component. setTheme(Theme theme)
Overrides theTheme
this component will use so rather than deriving the theme from either the window or the GUI system, it will always return this theme.Component
Component. setVisible(boolean visible)
Sets the component's own state as to if it should be visible or not.Methods in com.googlecode.lanterna.gui2 that return types with arguments of type Component Modifier and Type Method Description java.util.Collection<Component>
AbstractComposite. getChildren()
java.util.Collection<Component>
Container. getChildren()
Returns collection that is to be considered a copy of the list of children contained inside of this object.java.util.Collection<Component>
Panel. getChildren()
java.util.List<Component>
AbstractComposite. getChildrenList()
java.util.List<Component>
Container. getChildrenList()
Returns list that is to be considered a copy of the list of children inside of this container.java.util.List<Component>
Panel. getChildrenList()
ComponentRenderer<? extends Component>
Component. getRenderer()
Returns the renderer used to draw this component and measure its preferred size.private java.util.EnumMap<BorderLayout.Location,Component>
BorderLayout. makeLookupMap(java.util.List<Component> components)
Methods in com.googlecode.lanterna.gui2 with parameters of type Component Modifier and Type Method Description Panel
Panel. addComponent(int index, Component component)
Adds a new child component to the panel.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:boolean
AbstractComposite. containsComponent(Component component)
boolean
Container. containsComponent(Component component)
Returnstrue
if this container contains the supplied component either directly or indirectly through intermediate containers.boolean
Panel. containsComponent(Component component)
private Component[][]
GridLayout. eliminateUnusedRowsAndColumns(Component[][] table)
private java.util.Set<java.lang.Integer>
GridLayout. getExpandableColumns(Component[][] table)
private java.util.Set<java.lang.Integer>
GridLayout. getExpandableRows(Component[][] table)
private GridLayout.GridLayoutData
GridLayout. getLayoutData(Component component)
private int[]
GridLayout. getPreferredColumnWidths(Component[][] table)
private int[]
GridLayout. getPreferredRowHeights(Component[][] table)
static Panel
Panels. grid(int columns, Component... components)
Creates a newPanel
with aGridLayout
layout manager and adds all the components passed instatic Panel
Panels. horizontal(Component... components)
Creates a newPanel
with aLinearLayout
layout manager in horizontal mode and adds all the components passed instatic SplitPanel
SplitPanel. ofHorizontal(Component left, Component right)
static SplitPanel
SplitPanel. ofVertical(Component top, Component bottom)
boolean
AbstractBasePane.ContentHolder. removeComponent(Component component)
boolean
AbstractComposite. removeComponent(Component component)
boolean
Container. removeComponent(Component component)
Removes the component from the container.boolean
Panel. removeComponent(Component component)
void
AbstractBasePane.ContentHolder. setComponent(Component component)
void
AbstractBasePane. setComponent(Component component)
void
AbstractBorder. setComponent(Component component)
void
AbstractComposite. setComponent(Component component)
void
BasePane. setComponent(Component component)
Sets the top-level component inside this BasePane.void
Composite. setComponent(Component component)
Sets the component which is inside this Composite.void
Window. setComponent(Component component)
Sets the top-level component in the window, this will be the only component unless it's a container of some kind that you add child-components to.static Panel
Panels. vertical(Component... components)
Creates a newPanel
with aLinearLayout
layout manager in vertical mode and adds all the components passed inMethod parameters in com.googlecode.lanterna.gui2 with type arguments of type Component Modifier and Type Method Description private Component[][]
GridLayout. buildTable(java.util.List<Component> components)
private void
LinearLayout. doFlexibleHorizontalLayout(TerminalSize area, java.util.List<Component> components)
private void
LinearLayout. doFlexibleVerticalLayout(TerminalSize area, java.util.List<Component> components)
private void
LinearLayout. doHorizontalLayout(TerminalSize area, java.util.List<Component> components)
Deprecated.void
AbsoluteLayout. doLayout(TerminalSize area, java.util.List<Component> components)
void
BorderLayout. doLayout(TerminalSize area, java.util.List<Component> components)
void
GridLayout. doLayout(TerminalSize area, java.util.List<Component> components)
void
LayoutManager. doLayout(TerminalSize area, java.util.List<Component> components)
Given a size constraint, update the location and size of each component in the component list by laying them out in the available area.void
LinearLayout. doLayout(TerminalSize area, java.util.List<Component> components)
void
SplitPanel.ScrollPanelLayoutManager. doLayout(TerminalSize area, java.util.List<Component> components)
private void
LinearLayout. doVerticalLayout(TerminalSize area, java.util.List<Component> components)
Deprecated.TerminalSize
AbsoluteLayout. getPreferredSize(java.util.List<Component> components)
TerminalSize
BorderLayout. getPreferredSize(java.util.List<Component> components)
TerminalSize
GridLayout. getPreferredSize(java.util.List<Component> components)
TerminalSize
LayoutManager. getPreferredSize(java.util.List<Component> components)
This method returns the dimensions it would prefer to have to be able to layout all components while giving all of them as much space as they are asking for.TerminalSize
LinearLayout. getPreferredSize(java.util.List<Component> components)
TerminalSize
SplitPanel.ScrollPanelLayoutManager. getPreferredSize(java.util.List<Component> components)
private TerminalSize
LinearLayout. getPreferredSizeHorizontally(java.util.List<Component> components)
private TerminalSize
LinearLayout. getPreferredSizeVertically(java.util.List<Component> components)
private java.util.EnumMap<BorderLayout.Location,Component>
BorderLayout. makeLookupMap(java.util.List<Component> components)
Constructors in com.googlecode.lanterna.gui2 with parameters of type Component Constructor Description MenuPopupWindow(Component parent)
Creates a new popup window with a relative position to the component supplied.MultiWindowTextGUI(TextGUIThreadFactory guiThreadFactory, Screen screen, WindowManager windowManager, WindowPostRenderer postRenderer, Component background)
Creates a newMultiWindowTextGUI
that uses the specifiedScreen
as the backend for all drawing operations.MultiWindowTextGUI(Screen screen, WindowManager windowManager, Component background)
Creates a newMultiWindowTextGUI
that uses the specifiedScreen
as the backend for all drawing operations.MultiWindowTextGUI(Screen screen, WindowManager windowManager, WindowPostRenderer postRenderer, Component background)
Creates a newMultiWindowTextGUI
that uses the specifiedScreen
as the backend for all drawing operations.SplitPanel(Component a, Component b, boolean isHorizontal)
-
Uses of Component in com.googlecode.lanterna.gui2.dialogs
Classes in com.googlecode.lanterna.gui2.dialogs that implement Component Modifier and Type Class Description private class
FileDialog.FileSystemLocationLabel
-
Uses of Component in com.googlecode.lanterna.gui2.menu
Classes in com.googlecode.lanterna.gui2.menu that implement Component Modifier and Type Class Description class
Menu
class
MenuBar
A menu bar offering drop-down menus.class
MenuItem
This class is a single item that appears in aMenu
with an optional action attached to itMethods in com.googlecode.lanterna.gui2.menu that return types with arguments of type Component Modifier and Type Method Description java.util.Collection<Component>
MenuBar. getChildren()
java.util.List<Component>
MenuBar. getChildrenList()
Methods in com.googlecode.lanterna.gui2.menu with parameters of type Component Modifier and Type Method Description boolean
MenuBar. containsComponent(Component component)
boolean
MenuBar. removeComponent(Component component)
-
Uses of Component in com.googlecode.lanterna.gui2.table
Classes in com.googlecode.lanterna.gui2.table that implement Component Modifier and Type Class Description class
Table<V>
The table class is an interactable component that displays a grid of cells containing data along with a header of labels.
-