a7bc13d45ba6be893c4fac74476cc15240b66feb.svn-base
1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/**
* Copyright © 2015-2018 ODM All rights reserved.
*/
package com.thinkgem.jeesite.common.supcan.treelist;
import java.util.List;
import com.google.common.collect.Lists;
import com.thinkgem.jeesite.common.supcan.annotation.common.fonts.SupFont;
import com.thinkgem.jeesite.common.supcan.annotation.treelist.SupTreeList;
import com.thinkgem.jeesite.common.supcan.common.Common;
import com.thinkgem.jeesite.common.supcan.common.fonts.Font;
import com.thinkgem.jeesite.common.supcan.common.properties.Properties;
import com.thoughtworks.xstream.annotations.XStreamAlias;
/**
* 硕正TreeList
* @author WangZhen
* @version 2013-11-04
*/
@XStreamAlias("TreeList")
public class TreeList extends Common {
/**
* 列集合
*/
@XStreamAlias("Cols")
private List<Object> cols;
public TreeList() {
super();
}
public TreeList(Properties properties) {
this();
this.properties = properties;
}
public TreeList(SupTreeList supTreeList) {
this();
if (supTreeList != null){
if (supTreeList.properties() != null){
this.properties = new Properties(supTreeList.properties());
}
if (supTreeList.fonts() != null){
for (SupFont supFont : supTreeList.fonts()){
if (this.fonts == null){
this.fonts = Lists.newArrayList();
}
this.fonts.add(new Font(supFont));
}
}
}
}
public List<Object> getCols() {
if (cols == null){
cols = Lists.newArrayList();
}
return cols;
}
public void setCols(List<Object> cols) {
this.cols = cols;
}
}