item.java

来自「一个免费wap站」· Java 代码 · 共 39 行

JAVA
39
字号
package com.eline.wap.catalog.model;

import java.io.Serializable;

import com.eline.wap.common.model.Section;

/**
 * 
 * @author Lucifer
 *
 * The base class of ListItem / SingleItem, It represents a particular item 
 * in the Catalog Component
 * 
 * Sample:	http://www.eclipse.org/webtools/community/tutorials/cmptutorial/CMPScheduleWebApp.html
 * 			http://www.cn-java.com/opensource/opensource02.php
 */

public abstract class Item extends Section implements Serializable {

	private static final long serialVersionUID = 1L;
	
	public static final int TYPE_UNDEFINED	= -1;
	public static final int TYPE_LIST	= 0;
	public static final int TYPE_SINGLE	= 1;
	public static final int TYPE_EFFECT	= 2;

	private int type	= TYPE_UNDEFINED;

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	abstract public String getDisplayTitle();
}

⌨️ 快捷键说明

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