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 interfaceSimpleTheme.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 aComponentRendererattached 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 customComponentRendererfor a particular class. -
Uses of Component in com.googlecode.lanterna.gui2
Classes in com.googlecode.lanterna.gui2 with type parameters of type ComponentModifier and TypeClassDescriptionclassAbstractComponent<T extends Component>AbstractComponent provides some good default behaviour for aComponent, all components in Lanterna extends from this class in some way.interfaceComponentRenderer<T extends Component>This interface defines a renderer for a component, an external class that does the sizing and rendering.interfaceInteractableRenderer<T extends Component & Interactable>Extended interface for component renderers used with interactable components.Subinterfaces of Component in com.googlecode.lanterna.gui2Modifier and TypeInterfaceDescriptioninterfaceMain interface for different border classes, with additional methods to help lanterna figure out the size and offset of components wrapped by borders.interfaceContainer is a component that contains a collection of child components.interfaceThis interface marks a component as able to receive keyboard input from the user.Classes in com.googlecode.lanterna.gui2 that implement ComponentModifier and TypeClassDescriptionprotected classprivate static classclassAbstract implementation ofBorderinterface that has some of the methods filled out.classAbstractComponent<T extends Component>AbstractComponent provides some good default behaviour for aComponent, all components in Lanterna extends from this class in some way.classAbstractComposite<T extends Container>This abstract implementation contains common code for the differentCompositeimplementations.classAbstractInteractableComponent<T extends AbstractInteractableComponent<T>>Default implementation of Interactable that extends from AbstractComponent.classAbstractListBox<V, T extends AbstractListBox<V,T>> Base class for several list box implementations, this will handle things like list of items and the scrollbar.classThis class is a list box implementation that displays a number of items that has actions associated with them.classThis is a special label that contains not just a single text to display but a number of frames that are cycled through.private static classprivate static classprivate static classclassSimple labeled button that the user can trigger by pressing the Enter or the Spacebar key on the keyboard when the component is in focus.classThe 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.classCheckBoxList<V>This is a list box implementation where each item has its own checked state that can be toggled on and offclassComboBox<V>This is a simple combo box implementation that allows the user to select one out of multiple items through a drop-down menu.classSimple component which draws a solid color over its area.classSpecial component that is by default displayed as the background of a text gui unless you override it with something else.classclassLabel is a simple read-only text display component.classThis class is the basic building block for creating user interfaces, being the standard implementation ofContainerthat supports multiple children.classThis GUI element gives a visual indication of how far a process of some sort has progressed at any given time.classRadioBoxList<V>The list box will display a number of items, of which one and only one can be marked as selected.classClassic scrollbar that can be used to display where inside a larger component a view is showing.classStatic non-interactive component that is typically rendered as a single line.classclassThis component keeps a text content that is editable by the user.Fields in com.googlecode.lanterna.gui2 declared as ComponentModifier and TypeFieldDescriptionprivate final ComponentSplitPanel.compAprivate final ComponentSplitPanel.compBprivate ComponentAbstractComposite.componentFields 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 theThemethis 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:booleanAbstractComposite.containsComponent(Component component) booleanContainer.containsComponent(Component component) Returnstrueif this container contains the supplied component either directly or indirectly through intermediate containers.booleanPanel.containsComponent(Component component) private Component[][]GridLayout.eliminateUnusedRowsAndColumns(Component[][] table) GridLayout.getExpandableColumns(Component[][] table) GridLayout.getExpandableRows(Component[][] table) private GridLayout.GridLayoutDataGridLayout.getLayoutData(Component component) private int[]GridLayout.getPreferredColumnWidths(Component[][] table) private int[]GridLayout.getPreferredRowHeights(Component[][] table) static PanelCreates a newPanelwith aGridLayoutlayout manager and adds all the components passed instatic PanelPanels.horizontal(Component... components) Creates a newPanelwith aLinearLayoutlayout manager in horizontal mode and adds all the components passed instatic SplitPanelSplitPanel.ofHorizontal(Component left, Component right) static SplitPanelSplitPanel.ofVertical(Component top, Component bottom) booleanAbstractBasePane.ContentHolder.removeComponent(Component component) booleanAbstractComposite.removeComponent(Component component) booleanContainer.removeComponent(Component component) Removes the component from the container.booleanPanel.removeComponent(Component component) voidAbstractBasePane.ContentHolder.setComponent(Component component) voidAbstractBasePane.setComponent(Component component) voidAbstractBorder.setComponent(Component component) voidAbstractComposite.setComponent(Component component) voidBasePane.setComponent(Component component) Sets the top-level component inside this BasePane.voidComposite.setComponent(Component component) Sets the component which is inside this Composite.voidWindow.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 PanelCreates a newPanelwith aLinearLayoutlayout 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 voidLinearLayout.doFlexibleHorizontalLayout(TerminalSize area, List<Component> components) private voidLinearLayout.doFlexibleVerticalLayout(TerminalSize area, List<Component> components) private voidLinearLayout.doHorizontalLayout(TerminalSize area, List<Component> components) Deprecated.voidAbsoluteLayout.doLayout(TerminalSize area, List<Component> components) voidBorderLayout.doLayout(TerminalSize area, List<Component> components) voidGridLayout.doLayout(TerminalSize area, List<Component> components) voidLayoutManager.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.voidLinearLayout.doLayout(TerminalSize area, List<Component> components) voidSplitPanel.ScrollPanelLayoutManager.doLayout(TerminalSize area, List<Component> components) private voidLinearLayout.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 TerminalSizeLinearLayout.getPreferredSizeHorizontally(List<Component> components) private TerminalSizeLinearLayout.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 newMultiWindowTextGUIthat uses the specifiedScreenas the backend for all drawing operations.MultiWindowTextGUI(Screen screen, WindowManager windowManager, Component background) Creates a newMultiWindowTextGUIthat uses the specifiedScreenas the backend for all drawing operations.MultiWindowTextGUI(Screen screen, WindowManager windowManager, WindowPostRenderer postRenderer, Component background) Creates a newMultiWindowTextGUIthat uses the specifiedScreenas the backend for all drawing operations.protectedSplitPanel(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 TypeClassDescriptionclassTable<V>The table class is an interactable component that displays a grid of cells containing data along with a header of labels.