public class JcrTreeNode extends NodeModelWrapper<JcrTreeNode> implements IJcrTreeNode
nodeModel
Constructor and Description |
---|
JcrTreeNode(org.apache.wicket.model.IModel<javax.jcr.Node> nodeModel,
IJcrTreeNode parent) |
JcrTreeNode(org.apache.wicket.model.IModel<javax.jcr.Node> nodeModel,
IJcrTreeNode parent,
Comparator<IJcrTreeNode> childComparator) |
Modifier and Type | Method and Description |
---|---|
Enumeration<? extends TreeNode> |
children() |
protected JcrTreeNode |
createChildJcrTreeNode(JcrNodeModel childNodeModel)
Creates child tree node.
|
void |
detach() |
void |
ensureChildrenSorted()
Ensure child tree nodes sorted properly.
|
boolean |
equals(Object object) |
boolean |
getAllowsChildren() |
IJcrTreeNode |
getChild(String name)
Resolve the child that corresponds to a particular name.
|
TreeNode |
getChildAt(int i) |
int |
getChildCount() |
int |
getIndex(TreeNode node) |
TreeNode |
getParent() |
int |
hashCode() |
boolean |
isLeaf() |
protected List<javax.jcr.Node> |
loadChildNodes()
Loads child nodes.
|
protected List<IJcrTreeNode> |
loadChildren()
Loads child tree nodes.
|
protected void |
sortChildTreeNodes(List<IJcrTreeNode> childTreeNodes)
Sort child tree nodes.
|
String |
toString() |
getChainedModel, getNode, getNodeModel, getObject, setChainedModel, setObject
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getNodeModel
public JcrTreeNode(org.apache.wicket.model.IModel<javax.jcr.Node> nodeModel, IJcrTreeNode parent)
public JcrTreeNode(org.apache.wicket.model.IModel<javax.jcr.Node> nodeModel, IJcrTreeNode parent, Comparator<IJcrTreeNode> childComparator)
public IJcrTreeNode getChild(String name) throws javax.jcr.RepositoryException
getChild
in interface IJcrTreeNode
name
- javax.jcr.RepositoryException
public Enumeration<? extends TreeNode> children()
public TreeNode getChildAt(int i)
getChildAt
in interface TreeNode
public int getChildCount()
getChildCount
in interface TreeNode
public boolean getAllowsChildren()
getAllowsChildren
in interface TreeNode
public void ensureChildrenSorted()
public void detach()
detach
in interface org.apache.wicket.model.IDetachable
detach
in class NodeModelWrapper<JcrTreeNode>
protected List<IJcrTreeNode> loadChildren() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if repository exception occursprotected List<javax.jcr.Node> loadChildNodes() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if repository exception occursprotected JcrTreeNode createChildJcrTreeNode(JcrNodeModel childNodeModel)
childNodeModel
- child node modelprotected void sortChildTreeNodes(List<IJcrTreeNode> childTreeNodes) throws javax.jcr.RepositoryException
childTreeNodes
- child tree nodesjavax.jcr.RepositoryException
- if repository exception occursCopyright © 2007–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.