T - the generic type of the modelpublic abstract class GenericTableModel<T> extends AbstractTableModel
listenerList| Constructor and Description |
|---|
GenericTableModel()
Instantiates a new generic table model.
|
GenericTableModel(List<T> list)
Instantiates a new generic table model.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(T row)
Adds the row.
|
void |
addList(List<T> list)
Adds the list.
|
void |
clear()
Removes all data from this table model.
|
T |
get(int row)
Gets the row from the given index.
|
List<T> |
getData()
Gets the data.
|
int |
getRowCount()
Gets the row count.
|
T |
remove(T row)
Removes the given Object.
|
List<T> |
removeAll(int[] selectedRows)
Removes the all.
|
List<T> |
removeAll(List<T> toRemove)
Removes the all the given Object.
|
T |
removeAt(int row)
Removes the row at the given index.
|
void |
setData(List<T> data)
Sets the data.
|
void |
update(T row)
Update the row.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAtclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetColumnCount, getValueAtpublic GenericTableModel()
public void add(T row)
row - the row to add.public void addList(List<T> list)
list - the list of rows to add.public void clear()
public T get(int row)
row - The index from the row to get.public int getRowCount()
TableModel.getRowCount()public T remove(T row)
row - the rowpublic List<T> removeAll(int[] selectedRows)
selectedRows - the selected rowspublic List<T> removeAll(List<T> toRemove)
toRemove - the to removepublic T removeAt(int row)
row - The index from the row to remove.public void update(T row)
row - the rowCopyright © 2007–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.