org.exoplatform.wiki.tree
Class TreeNode
java.lang.Object
org.exoplatform.wiki.tree.TreeNode
- Direct Known Subclasses:
- PageTreeNode, RootTreeNode, SpaceTreeNode, WikiHomeTreeNode, WikiTreeNode
public class TreeNode
- extends Object
name
protected String name
path
protected String path
isRetricted
protected boolean isRetricted
hasChild
protected boolean hasChild
nodeType
protected TreeNodeType nodeType
children
protected List<TreeNode> children
STACK_PARAMS
public static final String STACK_PARAMS
- See Also:
- Constant Field Values
PATH
public static final String PATH
- See Also:
- Constant Field Values
SELECTED_PAGE
public static final String SELECTED_PAGE
- See Also:
- Constant Field Values
CURRENT_PATH
public static final String CURRENT_PATH
- The current path that's used in move page
- See Also:
- Constant Field Values
CURRENT_PAGE
public static final String CURRENT_PAGE
- See Also:
- Constant Field Values
SHOW_EXCERPT
public static final String SHOW_EXCERPT
- See Also:
- Constant Field Values
SHOW_DESCENDANT
public static final String SHOW_DESCENDANT
- See Also:
- Constant Field Values
CHILDREN_NUMBER
public static final String CHILDREN_NUMBER
- See Also:
- Constant Field Values
DEPTH
public static final String DEPTH
- See Also:
- Constant Field Values
isSelected
protected boolean isSelected
TreeNode
public TreeNode()
TreeNode
public TreeNode(String name,
TreeNodeType nodeType)
getNodeType
public TreeNodeType getNodeType()
setNodeType
public void setNodeType(TreeNodeType nodeType)
isHasChild
public boolean isHasChild()
setHasChild
public void setHasChild(boolean hasChild)
getChildren
public List<TreeNode> getChildren()
getName
public String getName()
setName
public void setName(String name)
isSelected
public boolean isSelected()
setSelected
public void setSelected(boolean isSelected)
setChildren
public void setChildren(List<TreeNode> children)
getPath
public String getPath()
isRetricted
public boolean isRetricted()
setRetricted
public void setRetricted(boolean isRetricted)
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
pushDescendants
public void pushDescendants(HashMap<String,Object> context)
throws Exception
- Throws:
Exception
addChildren
protected void addChildren(HashMap<String,Object> context)
throws Exception
- Throws:
Exception
getNumberOfChildren
protected int getNumberOfChildren(HashMap<String,Object> context,
int size)
buildPath
public String buildPath()
Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.