|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.EnumeratedType
wt.projmgmt.admin.ProjectHealthStatus
ProjectHealthStatus is a specialization of EnumeratedType
to provide localizable health status values. The localized values for
health statuses are maintained in a resource bundle ProjectHealthStatusRB
,
and its locale derivatives
Supported API: true
Extendable: false
EnumeratedType
,
wt.projmgmt.admin.ProjectHealthStatusRB
,
Serialized FormNested Class Summary |
Nested classes inherited from class wt.fc.EnumeratedType |
|
Field Summary | |
private static String |
CLASS_RESOURCE
|
private static String |
CLASSNAME
|
static ProjectHealthStatus |
GREEN
The Project Health Status of Green, which means that the project is under control and is proceeding as planned on the schedule Supported API: false |
private static Hashtable |
localeSets
|
static ProjectHealthStatus |
RED
The Project Health Status of Red, which means the project is in trouble (over budget or behind schedule) Supported API: false |
private static String |
RESOURCE
|
static ProjectHealthStatus |
UNAVAILABLE
The Project Health Status of Unavailable Supported API: false |
private static EnumeratedType[] |
valueSet
|
static ProjectHealthStatus |
YELLOW
The Project Health Status of Yellow, which means that a project is somewhat behind schedule or somewhat at risk Supported API: false |
Fields inherited from class wt.fc.EnumeratedType |
secretHandshake, SEP_CHAR |
Fields inherited from interface wt.meta.EnumeratedType |
DEFAULT_VALUE, ORDER, SELECTABLE |
Constructor Summary | |
protected |
ProjectHealthStatus()
Used by sub-classes that need a default constructor. |
Method Summary | |
static boolean |
betterThan(ProjectHealthStatus first,
ProjectHealthStatus second)
Returns true if first status is "better" than second;
false otherwise. |
protected EnumeratedType[] |
getLocaleSet(Locale locale)
Returns the set of values (instances) for this instance, for the specified locale. |
static ProjectHealthStatus |
getProjectHealthStatusDefault()
Returns the default value (instance) for the ProjectHealthStatus set. |
static ProjectHealthStatus[] |
getProjectHealthStatusSet()
Returns a copy of the set of valid values (instances) for the ProjectHealthStatus class. |
EnumeratedType[] |
getValueSet()
Returns a copy of the set of valid values (instances) for this instance, for the current user locale. |
private static EnumeratedType[] |
initializeLocaleSet(Locale locale)
|
static ProjectHealthStatus |
newProjectHealthStatus(int secretHandshake)
Used by EnumeratedType for constructing instances of ProjectHealthStatus, from a resource bundle. |
static ProjectHealthStatus |
toProjectHealthStatus(String internal_value)
Returns the ProjectHealthStatus instance for the internal_value argument. |
protected EnumeratedType[] |
valueSet()
Returns a reference to the set of valid values (instances) for this instance. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static final String CLASS_RESOURCE
private static final EnumeratedType[] valueSet
private static Hashtable localeSets
public static final ProjectHealthStatus GREEN
public static final ProjectHealthStatus YELLOW
public static final ProjectHealthStatus RED
public static final ProjectHealthStatus UNAVAILABLE
Constructor Detail |
protected ProjectHealthStatus()
Method Detail |
public static ProjectHealthStatus newProjectHealthStatus(int secretHandshake) throws IllegalAccessException
secretHandshake
-
IllegalAccessException
public static ProjectHealthStatus toProjectHealthStatus(String internal_value) throws WTInvalidParameterException
internal_value
- The internal (persistent) value for a valid instance of ProjectHealthStatus.
WTInvalidParameterException
public static ProjectHealthStatus getProjectHealthStatusDefault()
public static ProjectHealthStatus[] getProjectHealthStatusSet()
public EnumeratedType[] getValueSet()
getValueSet
in class EnumeratedType
protected EnumeratedType[] valueSet()
valueSet
in class EnumeratedType
protected EnumeratedType[] getLocaleSet(Locale locale)
getLocaleSet
in class EnumeratedType
locale
-
private static EnumeratedType[] initializeLocaleSet(Locale locale) throws Throwable
locale
-
Throwable
public static boolean betterThan(ProjectHealthStatus first, ProjectHealthStatus second)
true
if first status is "better" than second;
false
otherwise.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |