Uses of Class
com.googlecode.lanterna.gui2.table.Table
-
Packages that use Table Package Description com.googlecode.lanterna.gui2.table -
-
Uses of Table in com.googlecode.lanterna.gui2.table
Methods in com.googlecode.lanterna.gui2.table that return Table Modifier and Type Method Description Table<V>
Table. setCellSelection(boolean cellSelection)
Iftrue
, the user will be able to select and navigate individual cells, otherwise the user can only select full rows.Table<V>
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<V>
Table. setSelectAction(java.lang.Runnable selectAction)
Assigns an action to run whenever the user presses the enter or space key while focused on the table.Table<V>
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<V>
Table. setSelectedRow(int selectedRow)
Sets the index of the selected row and ensures the selected row is visible in the viewTable<V>
Table. setTableCellRenderer(TableCellRenderer<V> tableCellRenderer)
Replaces theTableCellRenderer
used by this table when drawing cellsTable<V>
Table. setTableHeaderRenderer(TableHeaderRenderer<V> tableHeaderRenderer)
Replaces theTableHeaderRenderer
used by this table when drawing the table's headerTable<V>
Table. setTableModel(TableModel<V> tableModel)
Updates the table with a new table model, effectively replacing the content of the table completelyTable<V>
Table. setViewLeftColumn(int viewLeftColumn)
Deprecated.Use the table renderers method insteadTable<V>
Table. setViewTopRow(int viewTopRow)
Deprecated.Use the table renderers method insteadMethods in com.googlecode.lanterna.gui2.table with parameters of type Table Modifier and Type Method Description protected void
DefaultTableCellRenderer. 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 void
DefaultTableCellRenderer. 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 void
DefaultTableCellRenderer. 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.void
DefaultTableCellRenderer. drawCell(Table<V> table, V cell, int columnIndex, int rowIndex, TextGUIGraphics textGUIGraphics)
void
TableCellRenderer. 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
.void
DefaultTableRenderer. drawComponent(TextGUIGraphics graphics, Table<V> table)
void
TableRenderer. drawComponent(TextGUIGraphics graphics, Table<V> component)
void
DefaultTableHeaderRenderer. drawHeader(Table<V> table, java.lang.String label, int index, TextGUIGraphics textGUIGraphics)
private void
DefaultTableRenderer. drawHeader(TextGUIGraphics graphics, Table<V> table, java.util.List<java.lang.Integer> columnSizes)
void
TableHeaderRenderer. drawHeader(Table<V> table, java.lang.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 void
DefaultTableRenderer. drawRows(TextGUIGraphics graphics, Table<V> table, java.util.List<java.lang.Integer> columnSizes, int visibleRows, int visibleColumns, int renderColumns, boolean needVerticalScrollBar, boolean needHorizontalScrollBar)
private java.util.List<java.lang.Integer>
DefaultTableRenderer. fitColumnsInAvailableSpace(Table<V> table, TerminalSize area, int visibleColumns)
TerminalPosition
DefaultTableRenderer. getCursorLocation(Table<V> component)
TerminalSize
DefaultTableCellRenderer. getPreferredSize(Table<V> table, V cell, int columnIndex, int rowIndex)
TerminalSize
DefaultTableHeaderRenderer. getPreferredSize(Table<V> table, java.lang.String label, int columnIndex)
TerminalSize
DefaultTableRenderer. getPreferredSize(Table<V> table)
TerminalSize
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 beTerminalSize
TableHeaderRenderer. getPreferredSize(Table<V> table, java.lang.String label, int columnIndex)
Called by the table when it wants to know how big a particular table header should beTerminalSize
TableRenderer. getPreferredSize(Table<V> component)
protected void
DefaultTableCellRenderer. 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.
-