to.etc.domui.component.tbl
Interface ITableModel<T>

All Known Subinterfaces:
IKeyedTableModel<T>, IModifyableTableModel<T>
All Known Implementing Classes:
DefaultTableModel, SimpleCollectionModel, SimpleListModel, SimpleSearchModel, TableListModelBase, TableModelBase

public interface ITableModel<T>

The model for a table. This is the abstract type. A table model contains a list of objects accessible by index and by key. Access by index is used to handle paging.

Author:
Frits Jalvingh Created on Jun 1, 2008

Field Summary
static int DEFAULT_MAX_SIZE
          Default size used to truncate results in case of large datasets as query results, if no other limit has been set.
 
Method Summary
 void addChangeListener(ITableModelListener<T> l)
           
 java.util.List<T> getItems(int start, int end)
           
 int getRows()
          This must return the total #of rows in this table.
 void refresh()
           
 void removeChangeListener(ITableModelListener<T> l)
           
 

Field Detail

DEFAULT_MAX_SIZE

static final int DEFAULT_MAX_SIZE
Default size used to truncate results in case of large datasets as query results, if no other limit has been set.

See Also:
Constant Field Values
Method Detail

getItems

@Nonnull
java.util.List<T> getItems(int start,
                                   int end)
                           throws java.lang.Exception
Throws:
java.lang.Exception

getRows

int getRows()
            throws java.lang.Exception
This must return the total #of rows in this table.

Returns:
Throws:
java.lang.Exception

addChangeListener

void addChangeListener(@Nonnull
                       ITableModelListener<T> l)

removeChangeListener

void removeChangeListener(@Nonnull
                          ITableModelListener<T> l)

refresh

void refresh()