T
- public interface TreeNodeConvertor<T>
限定符和类型 | 方法和说明 |
---|---|
TreeComponentDTO |
fromList(Collection<T> alist)
从一个集合中获取一颗树
|
TreeComponentDTO |
fromList(Collection<T> alist,
TreeComponentDTO root)
从集合中获取一个树,装载进入root中
|
TreeComponentDTO |
fromObject(T t)
将一个对象转换为树型节点
|
List<TreeComponentDTO> |
getForestfromList(Collection<T> alist)
从一个集合中获取包含多颗树的列表
|
TreeComponentDTO fromObject(T t)
t
- 数据源对象TreeComponentDTO fromList(Collection<T> alist)
alist
- 需要转换的数据源List<TreeComponentDTO> getForestfromList(Collection<T> alist)
alist
- 需要转换的数据源TreeComponentDTO fromList(Collection<T> alist, TreeComponentDTO root)
alist
- root
- 指定的跟节点Copyright © 2014 EPIC Team. All rights reserved.