Module org.apache.wicket.extensions
Class TreeDataProvider<T>
java.lang.Object
org.apache.wicket.extensions.markup.html.repeater.tree.table.TreeDataProvider<T>
- Type Parameters:
T- node type
- All Implemented Interfaces:
Serializable,ITreeDataProvider<T>,org.apache.wicket.markup.repeater.data.IDataProvider<T>,org.apache.wicket.model.IDetachable,org.apache.wicket.util.io.IClusterable
An adapter of a
ITreeProvider to a IDataProvider.- Author:
- svenmeier
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddetach()protected abstract booleaniterateChildren(T node) Hook method to decide whether the given node's children should be iterated.iterator(long first, long count) Wrap the given node in aNodeModelwhich provides additional branch information needed byTreeColumn.longsize()
-
Constructor Details
-
TreeDataProvider
Construct.- Parameters:
provider- the provider to adapt
-
-
Method Details
-
size
- Specified by:
sizein interfaceorg.apache.wicket.markup.repeater.data.IDataProvider<T>
-
iterator
- Specified by:
iteratorin interfaceorg.apache.wicket.markup.repeater.data.IDataProvider<T>
-
iterateChildren
Hook method to decide whether the given node's children should be iterated.- Parameters:
node- node- Returns:
trueif the node's children should be iterated
-
model
Description copied from interface:ITreeDataProviderWrap the given node in aNodeModelwhich provides additional branch information needed byTreeColumn.- Specified by:
modelin interfaceorg.apache.wicket.markup.repeater.data.IDataProvider<T>- Specified by:
modelin interfaceITreeDataProvider<T>- Parameters:
object- node
-
detach
- Specified by:
detachin interfaceorg.apache.wicket.markup.repeater.data.IDataProvider<T>- Specified by:
detachin interfaceorg.apache.wicket.model.IDetachable
-