|
||||||||||
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>
to.etc.domui.component.tbl.SimpleSearchModel<T>
public class SimpleSearchModel<T>
Nested Class Summary | |
---|---|
static interface |
SimpleSearchModel.IQuery<T>
Functor interface to create some abstract query result. |
Field Summary |
---|
Fields inherited from interface to.etc.domui.component.tbl.ITableModel |
---|
DEFAULT_MAX_SIZE |
Constructor Summary | |
---|---|
SimpleSearchModel(IQueryHandler<T> ss,
QCriteria<T> qc)
|
|
SimpleSearchModel(NodeBase contextSourceNode,
QCriteria<T> qc)
EXPERIMENTAL INTERFACE |
|
SimpleSearchModel(NodeBase contextSource,
SimpleSearchModel.IQuery<T> q)
|
|
SimpleSearchModel(QDataContextFactory ss,
QCriteria<T> qc)
Use {@link SimpleSearchModel#SimpleSearchModel(IQueryHandler, QCriteria) instead! |
|
SimpleSearchModel(QDataContextFactory f,
SimpleSearchModel.IQuery<T> q)
|
Method Summary | |
---|---|
void |
clear()
|
T |
findRowObject(java.lang.String key)
|
java.util.List<T> |
getItems(int start,
int end)
|
protected java.util.List<T> |
getList()
|
int |
getMaxRowCount()
Return the current result row limit. |
QCriteria<T> |
getQuery()
|
java.lang.String |
getRowKey(int row)
|
java.lang.String |
getSortKey()
If this model is currently sorted, this returns an identifier (usually a property reference) indicating on which column the thingy is sorted. |
int |
getTruncatedCount()
|
protected void |
initResult()
|
boolean |
isRefreshAfterShelve()
|
boolean |
isSortDescending()
If the set is a sorted set, this returns TRUE if the sort order is descending. |
boolean |
isTruncated()
|
void |
onShelve()
When the component is shelved we discard all results. |
void |
onUnshelve()
|
void |
refresh()
|
void |
setMaxRowCount(int maxRowCount)
Set the current result row limit. |
void |
setRefreshAfterShelve(boolean refreshAfterShelve)
|
void |
sortOn(java.lang.String key,
boolean descending)
When called this does a re-query using the specified sort property. |
Methods inherited from class to.etc.domui.component.tbl.TableListModelBase |
---|
add, add, delete, delete, getComparator, getItem, 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, getRows, removeChangeListener |
Constructor Detail |
---|
public SimpleSearchModel(@Nonnull NodeBase contextSourceNode, @Nonnull QCriteria<T> qc)
contextSourceNode
- qc
- public SimpleSearchModel(@Nonnull QDataContextFactory ss, @Nonnull QCriteria<T> qc)
ss
- qc
- public SimpleSearchModel(@Nonnull IQueryHandler<T> ss, @Nonnull QCriteria<T> qc)
public SimpleSearchModel(@Nonnull QDataContextFactory f, @Nonnull SimpleSearchModel.IQuery<T> q)
public SimpleSearchModel(@Nonnull NodeBase contextSource, @Nonnull SimpleSearchModel.IQuery<T> q)
Method Detail |
---|
public QCriteria<T> getQuery()
public void setRefreshAfterShelve(boolean refreshAfterShelve)
refreshAfterShelve
- public boolean isRefreshAfterShelve()
public int getMaxRowCount()
public void setMaxRowCount(int maxRowCount)
public boolean isTruncated()
public int getTruncatedCount()
getTruncatedCount
in interface ITruncateableDataModel
protected void initResult() throws java.lang.Exception
java.lang.Exception
@Nonnull protected java.util.List<T> getList() throws java.lang.Exception
getList
in class TableListModelBase<T>
java.lang.Exception
@Nonnull public java.util.List<T> getItems(int start, int end) throws java.lang.Exception
getItems
in interface ITableModel<T>
getItems
in class TableListModelBase<T>
java.lang.Exception
public T findRowObject(java.lang.String key) throws java.lang.Exception
findRowObject
in interface IKeyedTableModel<T>
java.lang.Exception
public java.lang.String getRowKey(int row) throws java.lang.Exception
getRowKey
in interface IKeyedTableModel<T>
java.lang.Exception
to.etc.domui.component.tbl.ITableModel#getRowKey(int)
public void clear()
public void sortOn(java.lang.String key, boolean descending) throws java.lang.Exception
sortOn
in interface ISortableTableModel
java.lang.Exception
@Nullable public java.lang.String getSortKey()
ISortableTableModel
getSortKey
in interface ISortableTableModel
public boolean isSortDescending()
ISortableTableModel
isSortDescending
in interface ISortableTableModel
public void onShelve() throws java.lang.Exception
onShelve
in interface IShelvedListener
java.lang.Exception
IShelvedListener.onShelve()
public void onUnshelve() throws java.lang.Exception
onUnshelve
in interface IShelvedListener
java.lang.Exception
public void refresh()
refresh
in interface ITableModel<T>
refresh
in class TableModelBase<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |