Uses of Class
com.googlecode.lanterna.gui2.table.TableModel
Packages that use TableModel
-
Uses of TableModel in com.googlecode.lanterna.gui2.table
Fields in com.googlecode.lanterna.gui2.table declared as TableModelMethods in com.googlecode.lanterna.gui2.table that return TableModelModifier and TypeMethodDescriptionAdds a new column into the table model as the last column.TableModel.addListener(TableModel.Listener<V> listener) Adds a listener to this table model that will be notified whenever the model changesTableModel.addRow(Collection<V> values) Adds a new row to the table model at the end.final TableModel<V> Adds a new row to the table model at the end.TableModel.clear()Removes all rows from the table, this will trigger listeners for each rowTable.getTableModel()Returns the underlying table modelTableModel.insertColumn(int index, String label, V[] newColumnValues) Adds a new column into the table model at a specified index.TableModel.insertRow(int index, Collection<V> values) Inserts a new row to the table model at a particular index.TableModel.removeColumn(int index) Removes a column from the table modelTableModel.removeListener(TableModel.Listener<V> listener) Removes a listener from this model so that it will no longer receive any notifications when the model changesTableModel.removeRow(int index) Removes a row at a particular index from the table model.Updates the call value stored at a specific column/row coordinate.TableModel.setColumnLabel(int index, String newLabel) Updates the label of a column headerMethods in com.googlecode.lanterna.gui2.table with parameters of type TableModelModifier and TypeMethodDescriptionvoidTableModel.Listener.onCellChanged(TableModel<V> model, int row, int column, V oldValue, V newValue) Called when an existing cell had its content updatedvoidTableModel.Listener.onColumnAdded(TableModel<V> model, int index) Called when a new column has been added to the modelvoidTableModel.Listener.onColumnRemoved(TableModel<V> model, int index, String oldHeader, List<V> oldColumn) Called when a column has been removed from the modelvoidTableModel.Listener.onRowAdded(TableModel<V> model, int index) Called when a new row has been added to the modelvoidTableModel.Listener.onRowRemoved(TableModel<V> model, int index, List<V> oldRow) Called when a row has been removed from the modelTable.setTableModel(TableModel<V> tableModel) Updates the table with a new table model, effectively replacing the content of the table completely