|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.javatest.tool.I18NUtils
public class I18NUtils
Utility class to get general internationalization properties and perform general transformations.
Field Summary | |
---|---|
static int |
ERROR
A convenience redefinition of Status.ERROR . |
static int |
FAILED
A convenience redefinition of Status.FAILED . |
static int |
FILTERED_OUT
A constant indicating that an icon should be represented as "filtered out". |
static int |
NOT_RUN
A convenience redefinition of Status.NOT_RUN . |
static int |
NUM_STATES
A constant indicating the number of different value "state" values. |
static int |
PASSED
A convenience redefinition of Status.PASSED . |
Constructor Summary | |
---|---|
I18NUtils()
|
Method Summary | |
---|---|
static java.awt.Color |
getStatusBarColor(int status)
Get the color for a bar for a test status. |
static java.awt.Color |
getStatusColor(int status)
Get the base color for a test status. |
static java.lang.String |
getStatusMessage(Status status)
Get localized version of the message string. |
static java.lang.String |
getStatusString(int status)
Get the localized status string for a particular test status. |
static java.awt.Color |
lighter(java.awt.Color c)
Create a color derived from the given color, but lighter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PASSED
Status.PASSED
.
public static final int FAILED
Status.FAILED
.
public static final int ERROR
Status.ERROR
.
public static final int NOT_RUN
Status.NOT_RUN
.
public static final int FILTERED_OUT
public static final int NUM_STATES
Constructor Detail |
---|
public I18NUtils()
Method Detail |
---|
public static java.awt.Color getStatusColor(int status)
status
- the status for which the color is required: one of
PASSED
, FAILED
, ERROR
, NOT_RUN
public static java.awt.Color getStatusBarColor(int status)
status
- the status for which the color is required: one of
PASSED
, FAILED
, ERROR
, NOT_RUN
public static java.lang.String getStatusString(int status)
status
- the status for which the color is required: one of
PASSED
, FAILED
, ERROR
, NOT_RUN
Status
public static java.lang.String getStatusMessage(Status status)
status
- The status object for format. May not be null.
Status.getReason()
public static java.awt.Color lighter(java.awt.Color c)
c
- The color to lighten.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |