Package | Description |
---|---|
com.googlecode.lanterna.gui2.table |
Modifier and Type | Method | Description |
---|---|---|
TableModel<V> |
TableModel.addColumn(String label,
V[] newColumnValues) |
Adds a new column into the table model as the last column.
|
TableModel<V> |
TableModel.addListener(TableModel.Listener<V> listener) |
Adds a listener to this table model that will be notified whenever the model changes
|
TableModel<V> |
TableModel.addRow(Collection<V> values) |
Adds a new row to the table model at the end
|
TableModel<V> |
TableModel.addRow(V... values) |
Adds a new row to the table model at the end
|
TableModel<V> |
TableModel.clear() |
Removes all rows from the table, this will trigger listeners for each row
|
TableModel<V> |
Table.getTableModel() |
Returns the underlying table model
|
TableModel<V> |
TableModel.insertColumn(int index,
String label,
V[] newColumnValues) |
Adds a new column into the table model at a specified index.
|
TableModel<V> |
TableModel.insertRow(int index,
Collection<V> values) |
Inserts a new row to the table model at a particular index
|
TableModel<V> |
TableModel.removeColumn(int index) |
Removes a column from the table model
|
TableModel<V> |
TableModel.removeListener(TableModel.Listener<V> listener) |
Removes a listener from this model so that it will no longer receive any notifications when the model changes
|
TableModel<V> |
TableModel.removeRow(int index) |
Removes a row at a particular index from the table model
|
TableModel<V> |
TableModel.setCell(int columnIndex,
int rowIndex,
V value) |
Updates the call value stored at a specific column/row coordinate.
|
TableModel<V> |
TableModel.setColumnLabel(int index,
String newLabel) |
Updates the label of a column header
|
Modifier and Type | Method | Description |
---|---|---|
void |
TableModel.Listener.onCellChanged(TableModel<V> model,
int row,
int column,
V oldValue,
V newValue) |
Called when an existing cell had its content updated
|
void |
TableModel.Listener.onColumnAdded(TableModel<V> model,
int index) |
Called when a new column has been added to the model
|
void |
TableModel.Listener.onColumnRemoved(TableModel<V> model,
int index,
String oldHeader,
List<V> oldColumn) |
Called when a column has been removed from the model
|
void |
TableModel.Listener.onRowAdded(TableModel<V> model,
int index) |
Called when a new row has been added to the model
|
void |
TableModel.Listener.onRowRemoved(TableModel<V> model,
int index,
List<V> oldRow) |
Called when a row has been removed from the model
|
Table<V> |
Table.setTableModel(TableModel<V> tableModel) |
Updates the table with a new table model, effectively replacing the content of the table completely
|
Copyright © 2020. All rights reserved.