|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
net.sourceforge.jaulp.swing.tablemodel.GenericTableModel<T>
public abstract class GenericTableModel<T>
The Class GenericTableModel.
| Field Summary |
|---|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
GenericTableModel()
Instantiates a new generic table model. |
|
GenericTableModel(java.util.List<T> list)
Instantiates a new generic table model. |
|
| Method Summary | |
|---|---|
void |
add(T row)
Adds the row. |
void |
addList(java.util.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. |
java.util.List<T> |
getData()
Gets the data. |
int |
getRowCount()
|
T |
remove(T row)
Removes the given Object. |
java.util.List<T> |
removeAll(int[] selectedRows)
Removes the all. |
java.util.List<T> |
removeAll(java.util.List<T> toRemove)
Removes the all the given Object. |
T |
removeAt(int row)
Removes the row at the given index. |
void |
setData(java.util.List<T> data)
Sets the data. |
void |
update(T row)
Update the row. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.table.TableModel |
|---|
getColumnCount, getValueAt |
| Constructor Detail |
|---|
public GenericTableModel()
public GenericTableModel(java.util.List<T> list)
list - The list with the data to set.| Method Detail |
|---|
public void add(T row)
row - the row to add.public void addList(java.util.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 java.util.List<T> getData()
public int getRowCount()
TableModel.getRowCount()public T remove(T row)
row - the row
public java.util.List<T> removeAll(int[] selectedRows)
selectedRows - the selected rows
public java.util.List<T> removeAll(java.util.List<T> toRemove)
toRemove - the to remove
public T removeAt(int row)
row - The index from the row to remove.
public void setData(java.util.List<T> data)
data - the new datapublic void update(T row)
row - the row
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||