categorylist.java

来自「一个网上购物商城系统」· Java 代码 · 共 59 行

JAVA
59
字号
/**
  * @(#)tarena.data.CategoryList.java  2008-11-10  
  * Copy Right Information	: Tarena
  * Project					: xindou
  * JDK version used		: jdk1.6.4
  * Comments				: 此处输入简单类说明
  * Version					: 1.0
  * Sr	Date		Modified By		Why & What is modified
  * 1.	2008-11-10 	小猪     		新建
  * 2.	2008-11-17 	陈达     		修改
  **/
package tarena.data;

import java.io.Serializable;
import java.util.List;

 /**
 * 分类及其下级分类
 * 2008-11-10
 * @author		达内科技[Tarena Training Group]
 * @version	1.0
 * @since		JDK1.6(建议) 
 * @author		Administrator
 */
@SuppressWarnings("serial")
public class CategoryList implements Serializable{

	private AbractCategory rootcategory;
	private List<CategoryList> childcategory;
	
	public CategoryList(AbractCategory rootcategory,List<CategoryList> childcategory) {
		this.rootcategory = rootcategory;
		this.childcategory = childcategory;
	}
	
	
	
	public CategoryList(AbractCategory rootcategory) {
		super();
		this.rootcategory = rootcategory;
	}



	public CategoryList() {}
	public List<CategoryList> getChildcategory() {
		return childcategory;
	}
	public void setChildcategory(List<CategoryList> childcategory) {
		this.childcategory = childcategory;
	}
	public AbractCategory getRootcategory() {
		return rootcategory;
	}
	public void setRootcategory(AbractCategory rootcategory) {
		this.rootcategory = rootcategory;
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?