Class I18NUtils
java.lang.Object
com.sun.javatest.tool.I18NUtils
Utility class to get general internationalization properties and
perform general transformations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intA convenience redefinition ofStatus.ERROR.static final intA convenience redefinition ofStatus.FAILED.static final intA constant indicating that an icon should be represented as "filtered out".static final intA convenience redefinition ofStatus.NOT_RUN.static final intA constant indicating the number of different value "state" values.static final intA convenience redefinition ofStatus.PASSED. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ColorgetStatusBarColor(int status) Get the color for a bar for a test status.static ColorgetStatusColor(int status) Get the base color for a test status.static StringgetStatusMessage(Status status) Get localized version of the message string.static StringgetStatusString(int status) Get the localized status string for a particular test status.static ColorCreate a color derived from the given color, but lighter.
-
Field Details
-
PASSED
-
FAILED
-
ERROR
-
NOT_RUN
-
FILTERED_OUT
public static final int FILTERED_OUTA constant indicating that an icon should be represented as "filtered out".- See Also:
-
NUM_STATES
public static final int NUM_STATESA constant indicating the number of different value "state" values.- See Also:
-
-
Constructor Details
-
I18NUtils
public I18NUtils()
-
-
Method Details
-
getStatusColor
-
getStatusBarColor
-
getStatusString
-
getStatusMessage
Get localized version of the message string. This includes a localized version of the status (e.g. "Passed") and the raw status message.- Parameters:
status- The status object for format. May not be null.- Returns:
- A formatted, internationalized string representation of the status object (state and reason).
- See Also:
-
lighter
-