org.xnap.commons.gui.table
Class AbstractSimpleTableModel<T>
java.lang.Object
javax.swing.table.AbstractTableModel
org.xnap.commons.gui.table.AbstractSimpleTableModel<T>
- All Implemented Interfaces:
- Serializable, TableModel
public abstract class AbstractSimpleTableModel<T>
- extends AbstractTableModel
- See Also:
- Serialized Form
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSimpleTableModel
public AbstractSimpleTableModel(Class[] columnClasses)
add
public void add(int index,
T item)
add
public void add(int index,
T[] items)
add
public void add(T item)
getColumnClass
public Class<?> getColumnClass(int column)
- Specified by:
getColumnClass
in interface TableModel
- Overrides:
getColumnClass
in class AbstractTableModel
getColumnCount
public int getColumnCount()
getData
public List<T> getData()
getItem
public T getItem(int row)
getRowCount
public int getRowCount()
getValueAt
public abstract Object getValueAt(int row,
int column)
remove
public void remove(int index)
remove
public void remove(int firstRow,
int lastRow)
remove
public boolean remove(T item)
setData
public void setData(List<T> data)
Copyright © 2004-2007 XNap Commons Team. All Rights Reserved.