code: public static String getStateStyle(CmsResourceState state) {
  
          String stateStyle = "";
          if (state != null) {
              if (state.isDeleted()) {
                  stateStyle = OpenCmsTheme.STATE_DELETED;
              } else if (state.isNew()) {
                  stateStyle = OpenCmsTheme.STATE_NEW;
              } else if (state.isChanged()) {
                  stateStyle = OpenCmsTheme.STATE_CHANGED;
              }
          }
          return stateStyle;
      }
docs: Gets the CSS style name for the given resource state.<p>
  
  @param state the resource state
  @return the CSS style name