📄 displayinweb.java
字号:
package com.gctech.sms.core;
import java.io.*;
import java.util.Collection;
import java.util.TreeMap;
import java.util.Map;
/**
* <p>Title: 是否在WEB中展示。</p>
* <p>Description:是否在WEB中展示。 </p>
* <p>Copyright: Copyright (c) 2004</p>
* <p>Company: gctech</p>
* @author 王红宝
* @version $Id: DisplayInWeb.java,v 1.1.1.1 2004/04/21 09:30:41 wanghb Exp $
*/
public class DisplayInWeb implements Serializable {
public static final DisplayInWeb DIPLAYED = new DisplayInWeb(0, "在web中展示");
public static final DisplayInWeb NOT_DIPLAYED = new DisplayInWeb(1, "不在web中展示");
private String name;
private int value;
static Map all = new TreeMap();
static {
all.put(new Integer(0), DIPLAYED);
all.put(new Integer(1), NOT_DIPLAYED);
}
public static Collection getAll(){
return all.values();
}
public static String valueToName(int value){
DisplayInWeb cmdSts = (DisplayInWeb)all.get(new Integer(value));
return cmdSts.getName();
}
public DisplayInWeb(int value, String name) {
this.value = value;
this.name = name;
}
private void readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException {
ois.defaultReadObject();
}
private void writeObject(ObjectOutputStream oos) throws IOException {
oos.defaultWriteObject();
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getValue() {
return value;
}
public void setValue(int value) {
this.value = value;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -