Uses of Class
com.googlecode.lanterna.gui2.table.Table
Packages that use Table
-
Uses of Table in com.googlecode.lanterna.gui2.table
Subclasses with type arguments of type Table in com.googlecode.lanterna.gui2.tableModifier and TypeClassDescriptionclassTable<V>The table class is an interactable component that displays a grid of cells containing data along with a header of labels.Subinterfaces with type arguments of type Table in com.googlecode.lanterna.gui2.tableModifier and TypeInterfaceDescriptioninterfaceFormalized interactable renderer for tablesMethods in com.googlecode.lanterna.gui2.table that return TableModifier and TypeMethodDescriptionTable.setCellSelection(boolean cellSelection) Iftrue, the user will be able to select and navigate individual cells, otherwise the user can only select full rows.Table.setEscapeByArrowKey(boolean escapeByArrowKey) Sets the flag for if this table can be navigated away from when the selected row is at one of the extremes and the user presses the array key to continue in that direction.Table.setSelectAction(Runnable selectAction) Assigns an action to run whenever the user presses the enter or space key while focused on the table.Table.setSelectedColumn(int selectedColumn) If in cell selection mode, updates which column is selected and ensures the selected column is visible in the view.Table.setSelectedRow(int selectedRow) Sets the index of the selected row and ensures the selected row is visible in the viewTable.setTableCellRenderer(TableCellRenderer<V> tableCellRenderer) Replaces theTableCellRendererused by this table when drawing cellsTable.setTableHeaderRenderer(TableHeaderRenderer<V> tableHeaderRenderer) Replaces theTableHeaderRendererused by this table when drawing the table's headerTable.setTableModel(TableModel<V> tableModel) Updates the table with a new table model, effectively replacing the content of the table completelyTable.setViewLeftColumn(int viewLeftColumn) Deprecated.Use the table renderers method insteadTable.setViewTopRow(int viewTopRow) Deprecated.Use the table renderers method insteadMethods in com.googlecode.lanterna.gui2.table with parameters of type TableModifier and TypeMethodDescriptionprotected voidDefaultTableCellRenderer.afterRender(Table<V> table, V cell, int columnIndex, int rowIndex, boolean isSelected, TextGUIGraphics textGUIGraphics) Called by the cell renderer after the cell content has been drawn into the assigned area.protected voidDefaultTableCellRenderer.applyStyle(Table<V> table, V cell, int columnIndex, int rowIndex, boolean isSelected, TextGUIGraphics textGUIGraphics) Called by the cell renderer to setup all the styling (colors and SGRs) before rendering the cell.protected voidDefaultTableCellRenderer.beforeRender(Table<V> table, V cell, int columnIndex, int rowIndex, boolean isSelected, TextGUIGraphics textGUIGraphics) Called by the cell renderer to prepare the cell area before rendering the cell.voidDefaultTableCellRenderer.drawCell(Table<V> table, V cell, int columnIndex, int rowIndex, TextGUIGraphics textGUIGraphics) voidTableCellRenderer.drawCell(Table<V> table, V cell, int columnIndex, int rowIndex, TextGUIGraphics textGUIGraphics) Called by the table when it's time to draw a cell, you can see how much size is available by checking the size of thetextGUIGraphics.voidDefaultTableRenderer.drawComponent(TextGUIGraphics graphics, Table<V> table) voidTableRenderer.drawComponent(TextGUIGraphics graphics, Table<V> component) voidDefaultTableHeaderRenderer.drawHeader(Table<V> table, String label, int index, TextGUIGraphics textGUIGraphics) private voidDefaultTableRenderer.drawHeader(TextGUIGraphics graphics, Table<V> table, List<Integer> columnSizes) voidTableHeaderRenderer.drawHeader(Table<V> table, String label, int index, TextGUIGraphics textGUIGraphics) Called by the table when it's time to draw a header, you can see how much size is available by checking the size of thetextGUIGraphics.private voidDefaultTableRenderer.drawRows(TextGUIGraphics graphics, Table<V> table, List<Integer> columnSizes, int visibleRows, int visibleColumns, int renderColumns, boolean needVerticalScrollBar, boolean needHorizontalScrollBar) DefaultTableRenderer.fitColumnsInAvailableSpace(Table<V> table, TerminalSize area, int visibleColumns) DefaultTableRenderer.getCursorLocation(Table<V> component) DefaultTableCellRenderer.getPreferredSize(Table<V> table, V cell, int columnIndex, int rowIndex) DefaultTableHeaderRenderer.getPreferredSize(Table<V> table, String label, int columnIndex) DefaultTableRenderer.getPreferredSize(Table<V> table) TableCellRenderer.getPreferredSize(Table<V> table, V cell, int columnIndex, int rowIndex) Called by the table when it wants to know how big a particular table cell should beTableHeaderRenderer.getPreferredSize(Table<V> table, String label, int columnIndex) Called by the table when it wants to know how big a particular table header should beTableRenderer.getPreferredSize(Table<V> component) protected voidDefaultTableCellRenderer.render(Table<V> table, V cell, int columnIndex, int rowIndex, boolean isSelected, TextGUIGraphics textGUIGraphics) Called by the cell renderer to draw the content of the cell into the assigned area.