Package org.hippoecm.frontend.model.tree
Class JcrTreeNode
java.lang.Object
org.hippoecm.frontend.model.NodeModelWrapper<JcrTreeNode>
org.hippoecm.frontend.model.tree.JcrTreeNode
- All Implemented Interfaces:
Serializable
,TreeNode
,org.apache.wicket.model.IDetachable
,org.apache.wicket.model.IModel<JcrTreeNode>
,org.apache.wicket.util.io.IClusterable
,IJcrTreeNode
- Direct Known Subclasses:
FolderTreeNode
- See Also:
-
Field Summary
Fields inherited from class org.hippoecm.frontend.model.NodeModelWrapper
nodeModel
-
Constructor Summary
ConstructorDescriptionJcrTreeNode
(org.apache.wicket.model.IModel<Node> nodeModel, IJcrTreeNode parent) JcrTreeNode
(org.apache.wicket.model.IModel<Node> nodeModel, IJcrTreeNode parent, Comparator<IJcrTreeNode> childComparator) -
Method Summary
Modifier and TypeMethodDescriptionEnumeration<? extends TreeNode>
children()
protected JcrTreeNode
createChildJcrTreeNode
(JcrNodeModel childNodeModel) Creates child tree node.void
detach()
void
Ensure child tree nodes sorted properly.boolean
boolean
Resolve the child that corresponds to a particular name.getChildAt
(int i) int
int
int
hashCode()
boolean
isLeaf()
Loads child nodes.protected List<IJcrTreeNode>
Loads child tree nodes.protected void
sortChildTreeNodes
(List<IJcrTreeNode> childTreeNodes) Sort child tree nodes.toString()
Methods inherited from class org.hippoecm.frontend.model.NodeModelWrapper
getNode, getNodeModel, getObject, setNodeModel, setObject
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.hippoecm.frontend.model.tree.IJcrTreeNode
getNodeModel
Methods inherited from interface org.apache.wicket.model.IModel
as, combineWith, filter, flatMap, isPresent, map, orElse, orElseGet
-
Constructor Details
-
JcrTreeNode
-
JcrTreeNode
public JcrTreeNode(org.apache.wicket.model.IModel<Node> nodeModel, IJcrTreeNode parent, Comparator<IJcrTreeNode> childComparator)
-
-
Method Details
-
getChild
Resolve the child that corresponds to a particular name.- Specified by:
getChild
in interfaceIJcrTreeNode
- Parameters:
name
-- Returns:
- child node
- Throws:
RepositoryException
-
getParent
-
children
-
getChildAt
- Specified by:
getChildAt
in interfaceTreeNode
-
getChildCount
public int getChildCount()- Specified by:
getChildCount
in interfaceTreeNode
-
getIndex
-
isLeaf
public boolean isLeaf() -
getAllowsChildren
public boolean getAllowsChildren()- Specified by:
getAllowsChildren
in interfaceTreeNode
-
ensureChildrenSorted
public void ensureChildrenSorted()Ensure child tree nodes sorted properly. -
detach
public void detach()- Specified by:
detach
in interfaceorg.apache.wicket.model.IDetachable
- Specified by:
detach
in interfaceorg.apache.wicket.model.IModel<JcrTreeNode>
- Overrides:
detach
in classNodeModelWrapper<JcrTreeNode>
-
loadChildren
Loads child tree nodes.- Returns:
- loaded child tree nodes
- Throws:
RepositoryException
- if repository exception occurs
-
loadChildNodes
Loads child nodes.- Returns:
- loaded child nodes
- Throws:
RepositoryException
- if repository exception occurs
-
createChildJcrTreeNode
Creates child tree node.- Parameters:
childNodeModel
- child node model- Returns:
- child tree node.
-
sortChildTreeNodes
Sort child tree nodes.- Parameters:
childTreeNodes
- child tree nodes- Throws:
RepositoryException
- if repository exception occurs
-
equals
-
hashCode
public int hashCode() -
toString
-