【Java开源代码栏目提醒】:网学会员为广大网友收集整理了,Constant.java,希望对大家有所帮助!
package com.opensource.blog.comm;
import java.util.*;
import org.apache.struts.util.*;
public class Constant {
public static String VERSION = "1.0";
public static final String CHARSET = "GBK";
public static String ROOTPATH = "";
public static String INDEXFILE = "index.html";
public static String INDEXFILELIST = "index_file.html";
public static String TEXTLINKSFILE = "text_links.html";
public static String PICLINKSFILE = "pic_links.html";
public static String LOGOFILE = "logo.html";
public static String NEWLYARTFILE = "newly_article.html";
public static String NEWLYNOTEFILE = "newly_noteicle.html";
public static String CALENDERFILE = "calendar.html";
public static String CALENDERFILEIN = "calendar_fin.html";
public static String RECLOSEWIN = "CLOSEWIN";
public static final String USER_SESSION_KEY = "user_session";
public static final int ART_NOT_HIDE = 1;
public static final int ART_IS_HIDE = 0;
public static final int LINK_TEXT = 0;
public static final int LINK_LOGO = 1;
public static final int SORT_MAX_NUM = 10;
public static final int LINK_MAX_NUM = 50;
public static String[] ONORYES = {
"否", "是"};
public static String[] YESORON = {
"是", "否"};
public static String[] PRO = {
"请选择", "北京", "上海", "天津", "重庆", "辽宁", "广东", "浙江", "江苏", "山东", "四川", "黑龙江",
"湖南", "湖北", "福建", "陕西", "河南", "安徽", "河北", "吉林", "江西", "广西", "山西", "内蒙古",
"甘肃", "贵州", "新疆", "云南", "宁夏", "海南", "青海", "西藏", "港澳台", "海外", "其它"};
public static String[] AGE = {
"请选择", "20岁以下", "20-30岁", "30-40岁", "40-50岁", "50岁以上"};
public static String[] WORK = {
"请选择", "待业", "退休", "学生", "专业人士", "经理", "公务员", "职员", "私营主", "其它"};
public static String[] INCOME = {
"请选择", "6000以上", "4001-6000", "2001-4000", "1001-2000", "501-1000",
"500以下"};
public static String[] SORT = {
"个人空间", "
经济金融", "公司企业", "电脑网络", "综合参考", "教育
学习", "情感绿洲", "娱乐休闲", "少儿乐园",
"文学", "生活资讯", "
医药健康", "新闻出版", "政法军事", "科学技术", "社会文化", "体育竞技", "旅游自然",
"艺术", "
网络游戏", "班级集体"};
public static String[] INDUSTRY = {
"请选择", "金融业", "服务业", "信息产业", "制造业", "传播业", "教育", "政府机构", "医疗保健", "房地产",
"其它"};
public static String[] EDULEVEL = {
"请选择", "博士", "硕士", "大学", "高中", "初中", "小学"};
public static String[] LEFTORRIGHT = {
"左", "右"};
public static String[] BOOKMARK = {
"设置为横排列", "设置为竖排列"};
public static List YESORNOS = new ArrayList();
public static List PROS = new ArrayList();
public static List AGES = new ArrayList();
public static List WORKS = new ArrayList();
public static List INCOMES = new ArrayList();
public static List SORTS = new ArrayList();
public static List INDUSTRYS = new ArrayList();
public static List EDULEVELS = new ArrayList();
public static List ONORYESS = new ArrayList();
public static List LEFTORRIGHTS = new ArrayList();
public static List YEARS = new ArrayList();
public static List MONTHS = new ArrayList();
public static List DAYS = new ArrayList();
public static List HOURS = new ArrayList();
public static List MINSECS = new ArrayList();
public static List FACES = new ArrayList();
public static List BOOKMARKS = new ArrayList();
static {
for (int i = 0; i < YESORON.length; i++) {
YESORNOS.add(new LabelValueBean(YESORON[i], String.valueOf(i)));
}
for (int i = 0; i < PRO.length; i++) {
PROS.add(new LabelValueBean(PRO[i], String.valueOf(i)));
}
for (int i = 0; i < AGE.length; i++) {
AGES.add(new LabelValueBean(AGE[i], String.valueOf(i)));
}
for (int i = 0; i < WORK.length; i++) {
WORKS.add(new LabelValueBean(WORK[i], String.valueOf(i)));
}
for (int i = 0; i < INCOME.length; i++) {
INCOMES.add(new LabelValueBean(INCOME[i], String.valueOf(i)));
}
for (int i = 0; i < SORT.length; i++) {
SORTS.add(new LabelValueBean(SORT[i], String.valueOf(i)));
}
for (int i = 0; i < INDUSTRY.length; i++) {
INDUSTRYS.add(new LabelValueBean(INDUSTRY[i], String.valueOf(i)));
}
for (int i = 0; i < EDULEVEL.length; i++) {
EDULEVELS.add(new LabelValueBean(EDULEVEL[i], String.valueOf(i)));
}
for (int i = 0; i < ONORYES.length; i++) {
ONORYESS.add(new LabelValueBean(ONORYES[i], String.valueOf(i)));
}
for (int i = 0; i < LEFTORRIGHT.length; i++) {
LEFTORRIGHTS.add(new LabelValueBean(LEFTORRIGHT[i], String.valueOf(i)));
}
YEARS.add(new LabelValueBean("", "0"));
for (int i = 200