to.etc.domui.component.tbl
Class DefaultTableModel<T>

java.lang.Object
  extended by to.etc.domui.component.tbl.TableModelBase<T>
      extended by to.etc.domui.component.tbl.TableListModelBase<T>
          extended by to.etc.domui.component.tbl.DefaultTableModel<T>
All Implemented Interfaces:
IModifyableTableModel<T>, ITableModel<T>

public class DefaultTableModel<T>
extends TableListModelBase<T>
implements ITableModel<T>

This uses a list as the base for the model. It handles all listener chores, and exposes some extra methods for users to send model events. FIXME Needs to be generic

Author:
Frits Jalvingh Created on Jun 1, 2008

Field Summary
 
Fields inherited from interface to.etc.domui.component.tbl.ITableModel
DEFAULT_MAX_SIZE
 
Constructor Summary
DefaultTableModel()
           
DefaultTableModel(java.util.List<T> in)
           
 
Method Summary
protected  java.util.List<T> getList()
           
 void refresh()
           
 
Methods inherited from class to.etc.domui.component.tbl.TableListModelBase
add, add, delete, delete, getComparator, getItem, getItems, getRows, modified, modified, move, setComparator
 
Methods inherited from class to.etc.domui.component.tbl.TableModelBase
addChangeListener, fireAdded, fireDeleted, fireModelChanged, fireModified, getListeners, removeChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface to.etc.domui.component.tbl.ITableModel
addChangeListener, getItems, getRows, removeChangeListener
 

Constructor Detail

DefaultTableModel

public DefaultTableModel()

DefaultTableModel

public DefaultTableModel(java.util.List<T> in)
Method Detail

getList

protected java.util.List<T> getList()
                             throws java.lang.Exception
Specified by:
getList in class TableListModelBase<T>
Throws:
java.lang.Exception

refresh

public void refresh()
Specified by:
refresh in interface ITableModel<T>
Overrides:
refresh in class TableModelBase<T>