to.etc.domui.component.tbl
Interface ITableModel<T>
- All Known Subinterfaces:
- IKeyedTableModel<T>
- All Known Implementing Classes:
- DefaultTableModel, SimpleCollectionModel, SimpleKeyModel, SimpleListModel, SimpleSearchModel, TableKeyModelBase, 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. |
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
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()