Package org.opencms.gwt.client.util
Class CmsResourceStateUtil
- java.lang.Object
-
- org.opencms.gwt.client.util.CmsResourceStateUtil
-
public final class CmsResourceStateUtil extends java.lang.Object
Utility class for the publish dialog.- Since:
- 8.0.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getStateName(org.opencms.db.CmsResourceState state)
Returns the human-readable name of a resource state.static java.lang.String
getStateStyle(org.opencms.db.CmsResourceState state)
Returns the text style for a given resource state.
-
-
-
Method Detail
-
getStateName
public static java.lang.String getStateName(org.opencms.db.CmsResourceState state)
Returns the human-readable name of a resource state.- Parameters:
state
- the resource state- Returns:
- the human-readable name of the code
-
getStateStyle
public static java.lang.String getStateStyle(org.opencms.db.CmsResourceState state)
Returns the text style for a given resource state.- Parameters:
state
- the resource state- Returns:
- the style name for the resource's state
-
-