?? constants.java
字號:
package com.lily.dap;
/**
* Constant values used throughout the application.
*
* <p>
* <a href="Constants.java.html"><i>View Source</i></a>
* </p>
*
* @author <a href="mailto:matt@raibledesigns.com">Matt Raible</a>
*/
public class Constants {
//~ Static fields/initializers =============================================
/** The name of the ResourceBundle used in this application */
public static final String BUNDLE_KEY = "ApplicationResources";
/** The encryption algorithm key to be used for passwords */
public static final String ENC_ALGORITHM = "algorithm";
/** A flag to indicate if passwords should be encrypted */
public static final String ENCRYPT_PASSWORD = "encryptPassword";
/** File separator from System properties */
public static final String FILE_SEP = System.getProperty("file.separator");
/** User home from System properties */
public static final String USER_HOME = System.getProperty("user.home") + FILE_SEP;
/** The name of the configuration hashmap stored in application scope. */
public static final String CONFIG = "appConfig";
/**
* Session scope attribute that holds the locale set by the user. By setting this key
* to the same one that Struts uses, we get synchronization in Struts w/o having
* to do extra work or have two session-level variables.
*/
public static final String PREFERRED_LOCALE_KEY = "org.apache.struts.action.LOCALE";
/**
* The request scope attribute under which an editable user form is stored
*/
public static final String USER_KEY = "userForm";
/**
* The request scope attribute that holds the user list
*/
public static final String USER_LIST = "userList";
/**
* The request scope attribute for indicating a newly-registered user
*/
public static final String REGISTERED = "registered";
/**
* The name of the Administrator role, as specified in web.xml
*/
public static final String ADMIN_ROLE = "admin";
/**
* The name of the User role, as specified in web.xml
*/
public static final String USER_ROLE = "user";
/**
* The name of the user's role list, a request-scoped attribute
* when adding/editing a user.
*/
public static final String USER_ROLES = "userRoles";
/**
* The name of the available roles list, a request-scoped attribute
* when adding/editing a user.
*/
public static final String AVAILABLE_ROLES = "availableRoles";
/**
* The name of the CSS Theme setting.
*/
public static final String CSS_THEME = "csstheme";
/**
* 檢索時檢索所有信息
*/
public static final Integer RETRIEVE_ALL = new Integer(-1);
/**
* 目錄分隔符
*/
public static final String DIRECTORY_SEPARATOR = "\\";
/**
* 字符串分隔符
*/
public static final String STRING_SEPARATOR1 = "~"; //波浪符
public static final String STRING_SEPARATOR2 = "#"; //井號符
public static final String STRING_SEPARATOR3 = ","; //逗號
public static final String STRING_SEPARATOR4 = ":"; //冒號
public static final String STRING_SEPARATOR5 = "、"; //頓號
public static final String STRING_SEPARATOR6 = "@"; //圈A符
public static final String STRING_SEPARATOR7 = "-"; //中劃線
public static final String STRING_SEPARATOR8 = "_"; //下劃線
public static final String STRING_SEPARATOR9 = "."; //點符號
public static final String ADDRESS_FORMAT_GROUP = "group"; //群組地址格式
public static final String ADDRESS_FORMAT_DEPARTMENT = "department"; //部門地址格式
public static final String ADDRESS_FORMAT_POST = "post"; //崗位地址格式
public static final String ADDRESS_FORMAT_PERSON = "person"; //人員地址格式
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -