@Deprecated public class BaseTree extends Object
构造器和说明 |
---|
BaseTree()
已过时。
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
addChild(BaseTree child)
已过时。
添加子节点
|
protected BaseTree |
createNode(Object src,
TreeNodeConvertor creator)
已过时。
创建根节点
|
protected BaseTree |
createRoot(Collection<Object> alist,
String parentField,
TreeNodeConvertor creator)
已过时。
创建根节点,如果没有发现可用跟则返回null
|
BaseTree |
fromList(Collection<Object> alist,
BaseTree root,
String parentField,
TreeNodeConvertor creator)
已过时。
从集合中获取一个树,装载进入root中
|
BaseTree |
fromList(Collection<Object> alist,
String parentField,
TreeNodeConvertor creator)
已过时。
从一个集合中获取一颗树
|
Map<String,Object> |
getAdditionalProperties()
已过时。
|
ArrayList<BaseTree> |
getChildren()
已过时。
|
String |
getCls()
已过时。
|
List<BaseTree> |
getForestfromList(Collection<Object> alist,
String parentField,
TreeNodeConvertor creator)
已过时。
从一个集合中获取包含多颗树的列表
|
String |
getId()
已过时。
|
BaseTree |
getParent()
已过时。
|
String |
getText()
已过时。
|
boolean |
isExpanded()
已过时。
|
protected BaseTree |
recurFormed(Collection<Object> alist,
BaseTree root,
String parentField,
TreeNodeConvertor creator)
已过时。
临时递归算法,如果有更好的算法获取数据可以overload次方法
|
void |
setAdditionalProperties(String name,
Object value)
已过时。
|
void |
setChildren(ArrayList<BaseTree> children)
已过时。
|
void |
setCls(String cls)
已过时。
|
void |
setExpanded(boolean expanded)
已过时。
设置展开
|
void |
setId(String id)
已过时。
|
boolean |
setParent(BaseTree parent)
已过时。
设置父节点
|
void |
setText(String text)
已过时。
|
public boolean isExpanded()
public void setExpanded(boolean expanded)
expanded
- public BaseTree getParent()
public boolean setParent(BaseTree parent)
parent
- public String getId()
public void setId(String id)
public String getText()
public void setText(String text)
public String getCls()
public void setCls(String cls)
public boolean addChild(BaseTree child)
protected BaseTree createRoot(Collection<Object> alist, String parentField, TreeNodeConvertor creator)
alist
- parentField
- creator
- protected BaseTree createNode(Object src, TreeNodeConvertor creator)
src
- creator
- public BaseTree fromList(Collection<Object> alist, String parentField, TreeNodeConvertor creator)
alist
- 需要转换的数据源parentField
- 表示父节点id的字段creator
- 节点构造器public List<BaseTree> getForestfromList(Collection<Object> alist, String parentField, TreeNodeConvertor creator)
alist
- 需要转换的数据源parentField
- 表示父节点id的字段creator
- 节点构造器public BaseTree fromList(Collection<Object> alist, BaseTree root, String parentField, TreeNodeConvertor creator)
alist
- root
- 指定的跟节点parentField
- creator
- protected BaseTree recurFormed(Collection<Object> alist, BaseTree root, String parentField, TreeNodeConvertor creator)
alist
- root
- parentField
- creator
- Copyright © 2014 EPIC Team. All rights reserved.