KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > tapestry > pets > PetConstants


1 package org.apache.tapestry.pets;
2
3 import org.apache.tapestry.form.IPropertySelectionModel;
4
5 public class PetConstants {
6
7     public static final String JavaDoc DEFAULT_LANGUAGE = "en_US";
8
9     public static final String JavaDoc[] FAVORITES = { "BIRDS", "CATS", "DOGS", "FISH",
10             "REPTILES"};
11
12     public static final String JavaDoc[] STATES = { "California", "New York", "Texas", "Mumbai"};
13
14     public static final String JavaDoc[] COUNTRIES = { "USA", "Canada", "Portugal","India"};
15
16     public static final String JavaDoc[] LANGUAGES = { "English", "Portugues"};
17
18     public static final String JavaDoc[] LANGUAGE_CODES = { "en_US" };
19
20     public static final String JavaDoc[] CREDIT_CARDS = { "Visa", "Mastercard",
21             "American Express"};
22
23     public static final String JavaDoc[] MONTHS = { "01", "02", "03", "04", "05", "06",
24             "07", "08", "09", "10", "11", "12"};
25
26     public static final String JavaDoc[] YEARS = { "2003", "2004", "2005", "2006",
27             "2007"};
28
29     public static final String JavaDoc DEFAULT_USERNAME = "j2ee";
30
31     public static final String JavaDoc DEFAULT_PASSWORD = "j2ee";
32
33     public static final IPropertySelectionModel FAVORITES_MODEL = new PlainStringPropertySelectionModel(
34             FAVORITES);
35
36     public static final IPropertySelectionModel LANGUAGE_CODES_MODEL = new StringRecordPropertySelectionModel(
37             LANGUAGE_CODES, LANGUAGES);
38
39     public static final IPropertySelectionModel STATES_MODEL = new PlainStringPropertySelectionModel(
40             STATES);
41
42     public static final IPropertySelectionModel COUNTRIES_MODEL = new PlainStringPropertySelectionModel(
43             COUNTRIES);
44
45     public static final IPropertySelectionModel CREDIT_CARDS_MODEL = new PlainStringPropertySelectionModel(
46             CREDIT_CARDS);
47
48     public static final IPropertySelectionModel MONTHS_MODEL = new PlainStringPropertySelectionModel(
49             MONTHS);
50
51     public static final IPropertySelectionModel YEARS_MODEL = new PlainStringPropertySelectionModel(
52             YEARS);
53
54 }
Popular Tags