|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.domui.component.tbl.TableModelBase<T>
to.etc.domui.component.tbl.TableListModelBase<T>
public abstract class TableListModelBase<T>
Field Summary |
---|
Fields inherited from interface to.etc.domui.component.tbl.ITableModel |
---|
DEFAULT_MAX_SIZE |
Constructor Summary | |
---|---|
TableListModelBase()
|
Method Summary | |
---|---|
void |
add(int index,
T row)
Add the item at the specified index. |
void |
add(T row)
Add the item at the end (or the appropriate location wrt the sort order) of the list. |
T |
delete(int index)
Delete the object at the specified index. |
boolean |
delete(T val)
|
java.util.Comparator<T> |
getComparator()
When set the list will be kept ordered. |
T |
getItem(int index)
|
java.util.List<T> |
getItems(int start,
int end)
|
protected abstract java.util.List<T> |
getList()
|
int |
getRows()
This must return the total #of rows in this table. |
void |
modified(int index)
|
void |
modified(T val)
|
void |
move(int to,
int from)
Convenience method to move an item from index from to index to. |
void |
setComparator(java.util.Comparator<T> comparator)
Sets a new comparator to use. |
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 |
Methods inherited from interface to.etc.domui.component.tbl.ITableModel |
---|
addChangeListener, refresh, removeChangeListener |
Constructor Detail |
---|
public TableListModelBase()
Method Detail |
---|
protected abstract java.util.List<T> getList() throws java.lang.Exception
java.lang.Exception
public java.util.List<T> getItems(int start, int end) throws java.lang.Exception
getItems
in interface ITableModel<T>
java.lang.Exception
public T getItem(int index) throws java.lang.Exception
getItem
in class TableModelBase<T>
java.lang.Exception
public int getRows() throws java.lang.Exception
ITableModel
getRows
in interface ITableModel<T>
java.lang.Exception
public java.util.Comparator<T> getComparator()
public void setComparator(java.util.Comparator<T> comparator) throws java.lang.Exception
comparator
-
java.lang.Exception
public void add(int index, T row) throws java.lang.Exception
add
in interface IModifyableTableModel<T>
java.lang.Exception
public void add(T row) throws java.lang.Exception
add
in interface IModifyableTableModel<T>
java.lang.Exception
public T delete(int index) throws java.lang.Exception
delete
in interface IModifyableTableModel<T>
index
-
java.lang.Exception
public boolean delete(T val) throws java.lang.Exception
delete
in interface IModifyableTableModel<T>
java.lang.Exception
public void modified(int index) throws java.lang.Exception
java.lang.Exception
public void modified(T val) throws java.lang.Exception
java.lang.Exception
public void move(int to, int from) throws java.lang.Exception
to
- from
-
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |