📄 agoracastconstants.java
字号:
FIELD_NAME_RATE,
FIELD_NAME_CITY,
FIELD_NAME_STATE } ),
new AgoracastCategory (
"job-wanted",
"Job seekers.",
new String [ ] {
FIELD_NAME_ASKING,
FIELD_NAME_CITY,
FIELD_NAME_COUNTRY,
FIELD_NAME_EMAIL,
FIELD_NAME_NAME,
FIELD_NAME_PHONE,
FIELD_NAME_RATE,
FIELD_NAME_STATE,
FIELD_NAME_TITLE,
FIELD_NAME_ZIPCODE },
new String [ ] {
FIELD_NAME_ASKING,
FIELD_NAME_CITY,
FIELD_NAME_COUNTRY,
FIELD_NAME_PHONE,
FIELD_NAME_RATE,
FIELD_NAME_STATE,
FIELD_NAME_TITLE } ),
new AgoracastCategory (
"house-for-rent",
"House for rent.",
new String [ ] {
FIELD_NAME_RENT,
FIELD_NAME_EMAIL,
FIELD_NAME_CITY,
FIELD_NAME_STATE,
FIELD_NAME_COUNTRY,
FIELD_NAME_ZIPCODE },
new String [ ] {
FIELD_NAME_RENT,
FIELD_NAME_CITY,
FIELD_NAME_STATE,
FIELD_NAME_COUNTRY,
FIELD_NAME_ZIPCODE } ),
new AgoracastCategory (
"house-for-sale",
"House for sale.",
new String [ ] {
FIELD_NAME_ASKING,
FIELD_NAME_EMAIL,
FIELD_NAME_CITY,
FIELD_NAME_STATE,
FIELD_NAME_COUNTRY,
FIELD_NAME_ZIPCODE },
new String [ ] {
FIELD_NAME_ASKING,
FIELD_NAME_CITY,
FIELD_NAME_STATE,
FIELD_NAME_COUNTRY,
FIELD_NAME_ZIPCODE } ),
new AgoracastCategory (
"personal-ad",
"Personal ad.",
new String [ ] {
FIELD_NAME_NAME,
FIELD_NAME_AGE,
FIELD_NAME_GENDER,
FIELD_NAME_RACE,
FIELD_NAME_RELIGION,
FIELD_NAME_EMAIL,
FIELD_NAME_CITY,
FIELD_NAME_STATE,
FIELD_NAME_COUNTRY,
FIELD_NAME_ZIPCODE },
new String [ ] {
FIELD_NAME_AGE,
FIELD_NAME_GENDER,
FIELD_NAME_RACE,
FIELD_NAME_RELIGION,
FIELD_NAME_CITY,
FIELD_NAME_STATE,
FIELD_NAME_COUNTRY,
FIELD_NAME_ZIPCODE } ),
new AgoracastCategory (
"wanted",
"Miscellaneous item wanted.",
new String [ ] {
FIELD_NAME_NAME,
FIELD_NAME_BIDDING,
FIELD_NAME_EMAIL },
new String [ ] {
FIELD_NAME_NAME,
FIELD_NAME_BIDDING,
FIELD_NAME_EMAIL } ) };
public static final String [ ] CHOICES_CATEGORY
= AgoracastCategory.getNames ( CATEGORIES );
public static final String [ ] CHOICES_GENDER = {
"male",
"female",
"other" };
public static final AgoracastField [ ] DEFAULT_FIELDS
= new AgoracastField [ ] {
new AgoracastField (
FIELD_NAME_AGE, // name
null, // value
AgoracastField.TYPE_NUMBER,
false, // isReverse
null, // choices
"Age in years" ), // semantic
new AgoracastField (
FIELD_NAME_ASKING, // name
null, // value
AgoracastField.TYPE_NUMBER,
false, // isReverse
null, // choices
"Asking price ($)" ), // semantic
new AgoracastField (
FIELD_NAME_BIDDING, // name
null, // value
AgoracastField.TYPE_NUMBER,
false, // isReverse
null, // choices
"Bidding price ($)" ), // semantic
new AgoracastField (
FIELD_NAME_CATEGORY, // name
null, // value
AgoracastField.TYPE_STRING,
false, // isReverse
CHOICES_CATEGORY, // choices
"message type" ), // semantic
new AgoracastField (
FIELD_NAME_CITY, // name
null, // value
AgoracastField.TYPE_STRING,
false, // isReverse
null, // choices
"City" ), // semantic
new AgoracastField (
FIELD_NAME_COUNTRY, // name
null, // value
AgoracastField.TYPE_STRING,
false, // isReverse
null, // choices
"Country (US=United States)" ), // semantic
new AgoracastField (
FIELD_NAME_EMAIL, // name
null, // value
AgoracastField.TYPE_STRING,
false, // isReverse
null, // choices
"contact e-mail" ), // semantic
new AgoracastField (
FIELD_NAME_GENDER, // name
null, // value
AgoracastField.TYPE_STRING,
false, // isReverse
CHOICES_GENDER, // choices
"Gender (sex)" ), // semantic
new AgoracastField (
FIELD_NAME_ISBN, // name
null, // value
AgoracastField.TYPE_STRING,
false, // isReverse
null, // choices
"International Standard Book Number" ), // semantic
new AgoracastField (
FIELD_NAME_MANUFACTURER, // name
null, // value
AgoracastField.TYPE_STRING,
false, // isReverse
null, // choices
"Manufacturer" ), // semantic
new AgoracastField (
FIELD_NAME_MODEL, // name
null, // value
AgoracastField.TYPE_STRING,
false, // isReverse
null, // choices
"Model" ), // semantic
new AgoracastField (
FIELD_NAME_NAME, // name
null, // value
AgoracastField.TYPE_STRING,
false, // isReverse
null, // choices
"Product or service name" ), // semantic
new AgoracastField (
FIELD_NAME_PHONE, // name
null, // value
AgoracastField.TYPE_STRING,
false, // isReverse
null, // choices
"contact phone number" ), // semantic
new AgoracastField (
FIELD_NAME_RACE, // name
null, // value
AgoracastField.TYPE_STRING,
false, // isReverse
null, // choices
"Race" ), // semantic
new AgoracastField (
FIELD_NAME_RATE, // name
null, // value
AgoracastField.TYPE_NUMBER,
false, // isReverse
null, // choices
"Hourly rate ($)" ), // semantic
new AgoracastField (
FIELD_NAME_RELIGION, // name
null, // value
AgoracastField.TYPE_STRING,
false, // isReverse
null, // choices
"Religion" ), // semantic
new AgoracastField (
FIELD_NAME_RENT, // name
null, // value
AgoracastField.TYPE_NUMBER,
false, // isReverse
null, // choices
"monthly rent" ), // semantic
new AgoracastField (
FIELD_NAME_STATE, // name
null, // value
AgoracastField.TYPE_STRING,
false, // isReverse
null, // choices
"State (TX=Texas)" ), // semantic
new AgoracastField (
FIELD_NAME_TITLE, // name
null, // value
AgoracastField.TYPE_STRING,
false, // isReverse
null, // choices
"Title" ), // semantic
new AgoracastField (
FIELD_NAME_URL, // name
null, // value
AgoracastField.TYPE_STRING,
false, // isReverse
null, // choices
"URL for more info" ), // semantic
new AgoracastField (
FIELD_NAME_YEAR, // name
null, // value
AgoracastField.TYPE_STRING,
false, // isReverse
null, // choices
"Year" ), // semantic
new AgoracastField (
FIELD_NAME_ZIPCODE, // name
null, // value
AgoracastField.TYPE_STRING,
false, // isReverse
null, // choices
"Zip or Postal Code" ) }; // semantic
//
public static final String DOCUMENTATION_FILENAME = "/doc.html";
//
public static final String SUBJECT_PREFIX = "[Agoracast]";
public static final String SUBJECT_PREFIX_LOWER_CASE
= SUBJECT_PREFIX.toLowerCase ( );
public static final String FOOTER
= "--" + "\r\n"
+ "Agoracast: "
+ "Building the World Wide Exchange (http://agoracast.com/)";
//
public static final int LOG_TEXT_LENGTH_MAX = 10000;
public static final String IDENTIFIER_DIALOG_TITLE = FRAME_TITLE;
//
public static final Font LOG_FONT
= new Font ( "Monospaced", Font.PLAIN, 12 );
//
public static final String DESCRIBE_TEXT
= "Description (optional):";
public static final String TABLE_TEXT
= "Click on a column name to sort. "
+ "Double-click on a row to view the message.";
//
public static final int DOWNLOAD_MAX = 500;
//
public static final Color SELECTED_FOREGROUND_COLOR = Color.black;
public static final Color SELECTED_BACKGROUND_COLOR
= new Color ( 204, 255, 204 );
public static final Color ODD_FOREGROUND_COLOR = Color.black;
public static final Color ODD_BACKGROUND_COLOR
= new Color ( 230, 230, 190 );
public static final Color EVEN_FOREGROUND_COLOR = Color.black;
public static final Color EVEN_BACKGROUND_COLOR = Color.white;
//
public static final Color DEFAULT_PANEL_BACKGROUND_COLOR
= null;
public static final Color DEFAULT_TEXTFIELD_BACKGROUND_COLOR
= null;
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -