org.xnap.commons.gui.table
Class AbstractSimpleTableModel<T>

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by org.xnap.commons.gui.table.AbstractSimpleTableModel<T>
All Implemented Interfaces:
Serializable, TableModel

public abstract class AbstractSimpleTableModel<T>
extends AbstractTableModel

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
AbstractSimpleTableModel(Class[] columnClasses)
           
 
Method Summary
 void add(int index, T item)
           
 void add(int index, T[] items)
           
 void add(T item)
           
 Class<?> getColumnClass(int column)
           
 int getColumnCount()
           
 List<T> getData()
           
 T getItem(int row)
           
 int getRowCount()
           
abstract  Object getValueAt(int row, int column)
           
 void remove(int index)
           
 void remove(int firstRow, int lastRow)
           
 boolean remove(T item)
           
 void setData(List<T> data)
           
 
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
 

Constructor Detail

AbstractSimpleTableModel

public AbstractSimpleTableModel(Class[] columnClasses)
Method Detail

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.