org.exoplatform.wiki.tree
Class TreeNode

java.lang.Object
  extended by org.exoplatform.wiki.tree.TreeNode
Direct Known Subclasses:
PageTreeNode, RootTreeNode, SpaceTreeNode, WikiHomeTreeNode, WikiTreeNode

public class TreeNode
extends Object


Nested Class Summary
static class TreeNode.TREETYPE
           
 
Field Summary
protected  List<TreeNode> children
           
static String CHILDREN_NUMBER
           
static String CURRENT_PAGE
           
static String CURRENT_PATH
          The current path that's used in move page
static String DEPTH
           
protected  boolean hasChild
           
protected  boolean isRetricted
           
protected  boolean isSelected
           
protected  String name
           
protected  TreeNodeType nodeType
           
protected  String path
           
static String PATH
           
static String SELECTED_PAGE
           
static String SHOW_DESCENDANT
           
static String SHOW_EXCERPT
           
static String STACK_PARAMS
           
 
Constructor Summary
TreeNode()
           
TreeNode(String name, TreeNodeType nodeType)
           
 
Method Summary
protected  void addChildren(HashMap<String,Object> context)
           
 String buildPath()
           
 boolean equals(Object obj)
           
 List<TreeNode> getChildren()
           
 String getName()
           
 TreeNodeType getNodeType()
           
protected  int getNumberOfChildren(HashMap<String,Object> context, int size)
           
 String getPath()
           
 int hashCode()
           
 boolean isHasChild()
           
 boolean isRetricted()
           
 boolean isSelected()
           
 void pushDescendants(HashMap<String,Object> context)
           
 void setChildren(List<TreeNode> children)
           
 void setHasChild(boolean hasChild)
           
 void setName(String name)
           
 void setNodeType(TreeNodeType nodeType)
           
 void setRetricted(boolean isRetricted)
           
 void setSelected(boolean isSelected)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

TreeNode

public TreeNode()

TreeNode

public TreeNode(String name,
                TreeNodeType nodeType)
Method Detail

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.