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