listitem.java
来自「一个免费wap站」· Java 代码 · 共 84 行
JAVA
84 行
package com.eline.wap.catalog.model;
public class ListItem extends Item {
private static final long serialVersionUID = 1L;
// List attributes
static public final int LIST_NORMAL = 0;
static public final int LIST_BOOK = 1;
static public final int LIST_NEWS = 2;
static public final int LIST_RING = 3;
static public final int LIST_PICTURE = 4;
static public final int LIST_J2ME = 5;
static public final int LIST_ANIMATION = 6;
public ListItem() {
super.setType(Item.TYPE_LIST);
}
public String getName() {
return this.getString("name", "");
}
public void setName(String name) {
this.setString("name", name);
}
public String getDescription() {
return this.getString("description", "");
}
public void setDescription(String description) {
this.setString("description", description);
}
public int getListAttribute() {
return this.getInt("listAttribute", LIST_NORMAL);
}
public void setListAttribute(int listAttribute) {
this.setInt("listAttribute", listAttribute);
}
public String getIconFile() {
return this.getString("iconFile", "");
}
public void setIconFile(String iconFile) {
this.setString("iconFile", iconFile);
}
public String getBannerFile() {
return this.getString("bannerFile", "");
}
public void setBannerFile(String bannerFile) {
this.setString("bannerFile", bannerFile);
}
/**
* Get display title, only used for manage side.
* @return
*/
public String getDisplayTitle() {
switch (this.getListAttribute()) {
default:
case LIST_NORMAL:
return "[普通目录]" + this.getName();
case LIST_BOOK:
return "[书籍目录]" + this.getName();
case LIST_NEWS:
return "[资讯目录]" + this.getName();
case LIST_RING:
return "[铃声目录]" + this.getName();
case LIST_PICTURE:
return "[图片目录]" + this.getName();
case LIST_J2ME:
return "[J2ME目录]" + this.getName();
case LIST_ANIMATION:
return "[动画目录]" + this.getName();
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?