Module org.apache.wicket.extensions
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>
,IDetachable
,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 a
SingleSortState
object.- Author:
- svenmeier
- See Also:
-
Constructor Summary
-
Method Summary
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 Details
-
SortableTreeProvider
public SortableTreeProvider()
-
-
Method Details
-
getSortState
- Specified by:
getSortState
in interfaceISortStateLocator<T>
- Returns:
- ISortState object
- See Also:
-
getSort
Returns current sort state- Returns:
- current sort state
-
setSort
Sets the current sort state- Parameters:
param
- parameter containing new sorting information
-
setSort
Sets the current sort state- Parameters:
property
- sort propertyascending
- sort direction
-
detach
Description copied from interface:IDetachable
Detaches model after use. This is generally used to null out transient references that can be re-attached later.- Specified by:
detach
in interfaceIDetachable
- See Also:
-