Class TreeViewModel
-
- All Implemented Interfaces:
Serializable
,org.apache.wicket.model.IDetachable
,org.apache.wicket.model.IModel<List<? extends TreeNode<?>>>
,org.apache.wicket.util.io.IClusterable
public abstract class TreeViewModel extends org.apache.wicket.model.LoadableDetachableModel<List<? extends TreeNode<?>>>
- Author:
- Sebastien Briquet - sebfz1
- See Also:
TreeNodeFactory
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TreeViewModel()
Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected List<? extends TreeNode<?>>
load()
protected abstract List<? extends TreeNode<?>>
load(int nodeId)
Loads children nodes of specifiednodeId
void
setNodeId(int nodeId)
Sets the node-id-
Methods inherited from class org.apache.wicket.model.LoadableDetachableModel
detach, getObject, isAttached, of, onAttach, onDetach, setObject, toString
-
-
-
-
Method Detail
-
load
protected abstract List<? extends TreeNode<?>> load(int nodeId)
Loads children nodes of specifiednodeId
- Parameters:
nodeId
- the (parent) node-id- Returns:
- the list of children
TreeNode
-
setNodeId
public void setNodeId(int nodeId)
Sets the node-id- Parameters:
nodeId
- the node-id
-
-