to.etc.domui.component.tbl
Class SimpleListModel<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.SimpleListModel<T>
All Implemented Interfaces:
IModifyableTableModel<T>, ITableModel<T>

public class SimpleListModel<T>
extends TableListModelBase<T>

DO NOT USE IF YOUR DATA CAN CHANGE AND YOU ARE NOT UPDATING THOSE CHANGES HERE!! This model uses a list to populate a table. It is meant to be used only if the resulting model is maintained by yourself. Model for list-based data. The actual list instance will be maintained on updates.

Author:
Frits Jalvingh Created on Dec 6, 2009

Field Summary
 
Fields inherited from interface to.etc.domui.component.tbl.ITableModel
DEFAULT_MAX_SIZE
 
Constructor Summary
SimpleListModel(java.util.List<T> list)
           
 
Method Summary
protected  java.util.List<T> getList()
           
 
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, refresh, removeChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleListModel

public SimpleListModel(java.util.List<T> list)
Method Detail

getList

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