Package | Description |
---|---|
com.googlecode.lanterna.gui2.table |
Modifier and Type | Method | Description |
---|---|---|
Table<V> |
Table.setCellSelection(boolean cellSelection) |
If
true , 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(Runnable selectAction) |
Assigns an action to run whenever the user presses the enter 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 view
|
Table<V> |
Table.setTableCellRenderer(TableCellRenderer<V> tableCellRenderer) |
Replaces the
TableCellRenderer used by this table when drawing cells |
Table<V> |
Table.setTableHeaderRenderer(TableHeaderRenderer<V> tableHeaderRenderer) |
Replaces the
TableHeaderRenderer used by this table when drawing the table's header |
Table<V> |
Table.setTableModel(TableModel<V> tableModel) |
Updates the table with a new table model, effectively replacing the content of the table completely
|
Table<V> |
Table.setViewLeftColumn(int viewLeftColumn) |
Sets the view column offset for the first column to display in the table.
|
Table<V> |
Table.setViewTopRow(int viewTopRow) |
Sets the view row offset for the first row to display in the table.
|
Modifier and Type | Method | Description |
---|---|---|
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
the
textGUIGraphics . |
void |
DefaultTableRenderer.drawComponent(TextGUIGraphics graphics,
Table<V> table) |
|
void |
TableRenderer.drawComponent(TextGUIGraphics graphics,
Table<V> component) |
|
void |
DefaultTableHeaderRenderer.drawHeader(Table<V> table,
String label,
int index,
TextGUIGraphics textGUIGraphics) |
|
void |
TableHeaderRenderer.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 the
textGUIGraphics . |
TerminalPosition |
DefaultTableRenderer.getCursorLocation(Table<V> component) |
|
TerminalSize |
DefaultTableCellRenderer.getPreferredSize(Table<V> table,
V cell,
int columnIndex,
int rowIndex) |
|
TerminalSize |
DefaultTableHeaderRenderer.getPreferredSize(Table<V> table,
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 be
|
TerminalSize |
TableHeaderRenderer.getPreferredSize(Table<V> table,
String label,
int columnIndex) |
Called by the table when it wants to know how big a particular table header should be
|
TerminalSize |
TableRenderer.getPreferredSize(Table<V> component) |
Copyright © 2020. All rights reserved.