项目初始导入
This commit is contained in:
62
src/main/java/com/nis/supcan/TreeList.java
Normal file
62
src/main/java/com/nis/supcan/TreeList.java
Normal file
@@ -0,0 +1,62 @@
|
||||
/**
|
||||
* Copyright © 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
|
||||
*/
|
||||
package com.nis.supcan;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user