Uses of Interface
com.googlecode.lanterna.gui2.Component
Packages that use Component
Package
Description
-
Uses of Component in com.googlecode.lanterna.graphics
Classes in com.googlecode.lanterna.graphics with type parameters of type ComponentModifier and TypeInterfaceDescriptionstatic interface
SimpleTheme.RendererProvider<T extends Component>
Methods in com.googlecode.lanterna.graphics with type parameters of type ComponentModifier and TypeMethodDescription<T extends Component>
ComponentRenderer<T> AbstractTheme.DefinitionImpl.getRenderer
(Class<T> type) <T extends Component>
ComponentRenderer<T> DelegatingThemeDefinition.getRenderer
(Class<T> type) <T extends Component>
ComponentRenderer<T> SimpleTheme.Definition.getRenderer
(Class<T> type) <T extends Component>
ComponentRenderer<T> ThemeDefinition.getRenderer
(Class<T> type) Returns aComponentRenderer
attached to this definition for the specified type.<T extends Component>
SimpleTheme.DefinitionSimpleTheme.Definition.setRenderer
(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 ComponentModifier and TypeClassDescriptionclass
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.gui2Modifier and TypeInterfaceDescriptioninterface
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 is a component that contains a collection of child components.interface
This interface marks a component as able to receive keyboard input from the user.Classes in com.googlecode.lanterna.gui2 that implement ComponentModifier and TypeClassDescriptionprotected class
private static class
class
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
This class is a list box implementation that displays a number of items that has actions associated with them.class
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
private static class
private static class
class
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
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
Simple component which draws a solid color over its area.class
Special component that is by default displayed as the background of a text gui unless you override it with something else.class
class
Label is a simple read-only text display component.class
This class is the basic building block for creating user interfaces, being the standard implementation ofContainer
that supports multiple children.class
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
Classic scrollbar that can be used to display where inside a larger component a view is showing.class
Static non-interactive component that is typically rendered as a single line.class
class
This component keeps a text content that is editable by the user.Fields in com.googlecode.lanterna.gui2 declared as ComponentModifier and TypeFieldDescriptionprivate final Component
SplitPanel.compA
private final Component
SplitPanel.compB
private Component
AbstractComposite.component
Fields in com.googlecode.lanterna.gui2 with type parameters of type ComponentMethods in com.googlecode.lanterna.gui2 that return ComponentModifier and TypeMethodDescriptionSame as callingpanel.addComponent(thisComponent)
private Component[][]
GridLayout.buildTable
(List<Component> components) private Component[][]
GridLayout.eliminateUnusedRowsAndColumns
(Component[][] table) AbstractBasePane.getComponent()
AbstractComposite.getComponent()
BasePane.getComponent()
Returns the component that is the content of the BasePane.Composite.getComponent()
Returns the component that this Composite is wrappingWindow.getComponent()
Returns the component which is the top-level in the component hierarchy inside this window.Component.setLayoutData
(LayoutData data) Sets optional layout data associated with this 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.setPreferredSize
(TerminalSize explicitPreferredSize) Overrides the components preferred size calculation and makes thegetPreferredSize()
always return the value passed in here.Component.setSize
(TerminalSize size) This method will be called by the layout manager when it has decided how large the component will be.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.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 ComponentModifier and TypeMethodDescriptionAbstractComposite.getChildren()
Container.getChildren()
Returns collection that is to be considered a copy of the list of children contained inside of this object.Panel.getChildren()
AbstractComposite.getChildrenList()
Container.getChildrenList()
Returns list that is to be considered a copy of the list of children inside of this container.Panel.getChildrenList()
ComponentRenderer
<? extends Component> Component.getRenderer()
Returns the renderer used to draw this component and measure its preferred size.private EnumMap
<BorderLayout.Location, Component> BorderLayout.makeLookupMap
(List<Component> components) Methods in com.googlecode.lanterna.gui2 with parameters of type ComponentModifier and TypeMethodDescriptionPanel.addComponent
(int index, Component component) Adds a new child component to the panel.Panel.addComponent
(Component component) Adds a new child component to the 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) GridLayout.getExpandableColumns
(Component[][] table) 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
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
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 ComponentModifier and TypeMethodDescriptionprivate Component[][]
GridLayout.buildTable
(List<Component> components) private void
LinearLayout.doFlexibleHorizontalLayout
(TerminalSize area, List<Component> components) private void
LinearLayout.doFlexibleVerticalLayout
(TerminalSize area, List<Component> components) private void
LinearLayout.doHorizontalLayout
(TerminalSize area, List<Component> components) Deprecated.void
AbsoluteLayout.doLayout
(TerminalSize area, List<Component> components) void
BorderLayout.doLayout
(TerminalSize area, List<Component> components) void
GridLayout.doLayout
(TerminalSize area, List<Component> components) void
LayoutManager.doLayout
(TerminalSize area, 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, List<Component> components) void
SplitPanel.ScrollPanelLayoutManager.doLayout
(TerminalSize area, List<Component> components) private void
LinearLayout.doVerticalLayout
(TerminalSize area, List<Component> components) Deprecated.AbsoluteLayout.getPreferredSize
(List<Component> components) BorderLayout.getPreferredSize
(List<Component> components) GridLayout.getPreferredSize
(List<Component> components) LayoutManager.getPreferredSize
(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.LinearLayout.getPreferredSize
(List<Component> components) SplitPanel.ScrollPanelLayoutManager.getPreferredSize
(List<Component> components) private TerminalSize
LinearLayout.getPreferredSizeHorizontally
(List<Component> components) private TerminalSize
LinearLayout.getPreferredSizeVertically
(List<Component> components) private EnumMap
<BorderLayout.Location, Component> BorderLayout.makeLookupMap
(List<Component> components) Constructors in com.googlecode.lanterna.gui2 with parameters of type ComponentModifierConstructorDescriptionMenuPopupWindow
(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.protected
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 -
Uses of Component in com.googlecode.lanterna.gui2.table
Classes in com.googlecode.lanterna.gui2.table that implement ComponentModifier and TypeClassDescriptionclass
Table<V>
The table class is an interactable component that displays a grid of cells containing data along with a header of labels.