public class TreeNode extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TreeNode.TREETYPE |
| Modifier and Type | Field and Description |
|---|---|
static String |
CAN_EDIT |
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 and Description |
|---|
TreeNode() |
TreeNode(String name,
TreeNodeType nodeType) |
| Modifier and Type | Method and Description |
|---|---|
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) |
protected String name
protected String path
protected boolean isRetricted
protected boolean hasChild
protected TreeNodeType nodeType
public static final String STACK_PARAMS
public static final String PATH
public static final String SELECTED_PAGE
public static final String CURRENT_PATH
public static final String CURRENT_PAGE
public static final String CAN_EDIT
public static final String SHOW_EXCERPT
public static final String SHOW_DESCENDANT
public static final String CHILDREN_NUMBER
public static final String DEPTH
protected boolean isSelected
public TreeNode()
public TreeNode(String name, TreeNodeType nodeType)
public TreeNodeType getNodeType()
public void setNodeType(TreeNodeType nodeType)
public boolean isHasChild()
public void setHasChild(boolean hasChild)
public String getName()
public void setName(String name)
public boolean isSelected()
public void setSelected(boolean isSelected)
public String getPath()
public boolean isRetricted()
public void setRetricted(boolean isRetricted)
public void pushDescendants(HashMap<String,Object> context) throws Exception
Exceptionprotected void addChildren(HashMap<String,Object> context) throws Exception
Exceptionpublic String buildPath()
Copyright © 2003–2018 eXo Platform SAS. All rights reserved.