|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wicket.extensions.markup.html.repeater.data.sort.SortableDataProvider
A ISortableDataProvider
that allows sorting on columns.
Nested Class Summary |
Nested classes inherited from class wicket.extensions.markup.html.repeater.data.sort.ISortableDataProvider |
ISortableDataProvider.SortState |
Constructor Summary | |
SortableDataProvider()
|
Method Summary | |
void |
addSort(SortParam sp)
Adds the sort parameter to the end of the list. |
void |
addSort(java.lang.String property)
Adds the field to the end of the sort list. |
void |
addSort(java.lang.String property,
boolean ascending)
Adds the sort parameter to the front of the list. |
void |
clearSort()
Removes all sorting fields. |
SortParam |
getSort()
|
java.util.List |
getSortList()
|
ISortableDataProvider.SortState |
getSortState(java.lang.String property)
Gets the sort state of a property |
void |
setDefaultSort(java.lang.String property,
boolean ascending)
Sets the sort parameter to use when no other fields are set. |
void |
setMaxColumns(int maxColumns)
Sets the maximum number of columns to sort on. |
void |
setSort(SortParam sp)
Removes all previous sort fields and adds the one given. |
void |
setSort(java.lang.String property,
boolean ascending)
Removes all previous sort fields and adds the one given. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface wicket.extensions.markup.html.repeater.data.IDataProvider |
iterator, model, size |
Constructor Detail |
public SortableDataProvider()
Method Detail |
public void clearSort()
public void setDefaultSort(java.lang.String property, boolean ascending)
property
- the name of the property to sort onascending
- true for ascending, false for descendingpublic void setMaxColumns(int maxColumns)
maxColumns
- max number of columnspublic void addSort(SortParam sp)
sp
- the parameter to addpublic void addSort(java.lang.String property, boolean ascending)
property
- the name of the property to sort onascending
- true for ascending, false for descendingpublic void addSort(java.lang.String property)
ISortableDataProvider
addSort
in interface ISortableDataProvider
property
- the name of the property to sort onISortableDataProvider.addSort(String)
public SortParam getSort()
public java.util.List getSortList()
getSortList
in interface ISortableDataProvider
public void setSort(SortParam sp)
sp
- new sort parampublic void setSort(java.lang.String property, boolean ascending)
property
- sort propertyascending
- ascending flagpublic ISortableDataProvider.SortState getSortState(java.lang.String property)
ISortableDataProvider
getSortState
in interface ISortableDataProvider
property
- sort property to be checked
ISortableDataProvider.getSortState(String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |