|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.compoze.ebusiness.Category
This class implements a category and stores information such as
name. To create a custom category, a name key is used to lookup the
readable string from ebusiness_resources.properties
. For
internationalization, this
properties file can be found in the j2ee_runtime.jar
at
com.compoze.ebusiness.ebusiness_resources.properties
.
Field Summary | |
static Category |
BILL_PAYMENT
This value represents the 'bill payment' category. |
static Category |
BIRTHDAY
This value represents the 'birthday' category. |
static Category |
CLIENTS
This value represents the 'clients' category. |
static Category |
COMMERCIAL
This value represents the 'commercial' category. |
static Category |
GRADUATION
This value represents the 'graduation' category. |
static Category |
HOLIDAY
This value represents the 'holiday' category. |
static Category |
INTERVIEW
This value represents the 'interview' category. |
static Category |
MOVIE
This value represents the 'movie' category. |
static Category |
PERSONAL
This value represents the 'personal' category. |
static Category |
PHONE_CALLS
This value represents the 'phone calls' category. |
static Category |
PROFESSIONAL
This value represents the 'professional' category. |
static Category |
PROJECTS
This value represents the 'projects' category. |
static Category |
TRAVEL
This value represents the 'travel' category. |
static Category |
TV_SHOW
This value represents the 'TV show' category. |
static Category |
UNFILED
This value represents the 'unfiled' category. |
static Category |
VACATION
This value represents the 'vacation' category. |
Constructor Summary | |
protected |
Category(java.lang.String sNameKey)
Constructor. |
Method Summary | |
static Category |
create(java.lang.String sName)
Creates a new category. |
boolean |
equals(java.lang.Object o)
Indicates whether some other Category
object is "equal to" this one. |
static Category |
get(java.lang.String sName)
Gets the category by name. |
static java.util.List |
getCategories()
Gets an unmodifiable list of categories. |
java.lang.String |
getName()
Gets the name of the category. |
java.lang.String |
getName(java.util.Locale locale)
Gets the name of the category using the specified locale. |
java.lang.String |
toString()
Returns a string representation of the object. |
java.lang.String |
toString(java.util.Locale locale)
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final Category BILL_PAYMENT
public static final Category BIRTHDAY
public static final Category GRADUATION
public static final Category HOLIDAY
public static final Category INTERVIEW
public static final Category CLIENTS
public static final Category VACATION
public static final Category MOVIE
public static final Category PROJECTS
public static final Category TV_SHOW
public static final Category PHONE_CALLS
public static final Category TRAVEL
public static final Category COMMERCIAL
public static final Category PERSONAL
public static final Category PROFESSIONAL
public static final Category UNFILED
Constructor Detail |
protected Category(java.lang.String sNameKey)
sNameKey
- the name key of the category (may not be null
or empty)Method Detail |
public java.lang.String getName()
public java.lang.String getName(java.util.Locale locale)
locale
- the localepublic static Category get(java.lang.String sName)
sName
- the namenull
if not foundpublic static java.util.List getCategories()
Category
objects (unmodifiable)public static Category create(java.lang.String sName)
sName
- the name of the categorypublic boolean equals(java.lang.Object o)
Category
object is "equal to" this one.equals
in class java.lang.Object
true
if this object is the same as the obj argument; false
otherwisepublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(java.util.Locale locale)
locale
- the locale
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |