Class SortableTreeProvider<T,S>
- java.lang.Object
-
- org.apache.wicket.extensions.markup.html.repeater.util.SortableTreeProvider<T,S>
-
- Type Parameters:
T-S- the type of the sorting parameter
- All Implemented Interfaces:
Serializable,ISortStateLocator<S>,ISortableTreeProvider<T,S>,ITreeProvider<T>,org.apache.wicket.model.IDetachable,org.apache.wicket.util.io.IClusterable
public abstract class SortableTreeProvider<T,S> extends Object implements ISortableTreeProvider<T,S>
Convenience implementation of a tree provider that can also act as a locator for aSingleSortStateobject.- Author:
- svenmeier
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SortableTreeProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddetach()SortParam<S>getSort()Returns current sort stateISortState<S>getSortState()voidsetSort(SortParam<S> param)Sets the current sort statevoidsetSort(S property, boolean ascending)Sets the current sort state-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.wicket.extensions.markup.html.repeater.tree.ITreeProvider
getChildren, getRoots, hasChildren, model
-
-
-
-
Constructor Detail
-
SortableTreeProvider
public SortableTreeProvider()
-
-
Method Detail
-
getSortState
public final ISortState<S> getSortState()
- Specified by:
getSortStatein interfaceISortStateLocator<T>- Returns:
- ISortState object
- See Also:
ISortStateLocator.getSortState()
-
setSort
public void setSort(SortParam<S> param)
Sets the current sort state- Parameters:
param- parameter containing new sorting information
-
setSort
public void setSort(S property, boolean ascending)
Sets the current sort state- Parameters:
property- sort propertyascending- sort direction
-
detach
public void detach()
- Specified by:
detachin interfaceorg.apache.wicket.model.IDetachable- See Also:
IDataProvider.detach()
-
-