net.mlw.vlh.swing.support
Class AbstractValueListTableModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended bynet.mlw.vlh.swing.support.AbstractValueListTableModel
All Implemented Interfaces:
Serializable, TableModel, ValueListTableModel
Direct Known Subclasses:
DyanBeanTableModel

public abstract class AbstractValueListTableModel
extends AbstractTableModel
implements ValueListTableModel

Version:
$Revision: 1.5 $ $Date: 2005/08/30 18:54:25 $
Author:
Matthew L. Wilson
See Also:
Serialized Form

Field Summary
protected  List list
           
protected  int rowCount
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
AbstractValueListTableModel()
           
 
Method Summary
 int addBean(Object bean)
           
 boolean contains(Object bean)
           
 Object getBean(int row)
           
 int getRowCount()
           
 int removeBean(Object bean)
           
 void setList(List list)
           
 void setValueList(ValueList valueList)
           
 int trimFromList(int index)
           
 
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 net.mlw.vlh.swing.ValueListTableModel
getSortPropertyName
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getValueAt, isCellEditable, removeTableModelListener, setValueAt
 

Field Detail

list

protected List list

rowCount

protected int rowCount
Constructor Detail

AbstractValueListTableModel

public AbstractValueListTableModel()
Method Detail

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface TableModel
See Also:
TableModel.getRowCount()

addBean

public int addBean(Object bean)
Specified by:
addBean in interface ValueListTableModel

getBean

public Object getBean(int row)
Specified by:
getBean in interface ValueListTableModel

setList

public void setList(List list)

setValueList

public void setValueList(ValueList valueList)
Specified by:
setValueList in interface ValueListTableModel

trimFromList

public int trimFromList(int index)
Specified by:
trimFromList in interface ValueListTableModel
See Also:
net.mlw.vlh.swing.ValueListTableModel#trimFromBottomOfList()

contains

public boolean contains(Object bean)
Specified by:
contains in interface ValueListTableModel
See Also:
ValueListTableModel.contains(Object)

removeBean

public int removeBean(Object bean)
Specified by:
removeBean in interface ValueListTableModel


Copyright © 2003-2006 mlavilson. All Rights Reserved.