public void setDescription(CmsObject cms, String description) {

        if (CmsStringUtil.isEmptyOrWhitespaceOnly(description)) {
            m_description = "";
            if (m_element.element(PARAM_DESCRIPTION) != null) {
                m_element.remove(m_element.element(PARAM_DESCRIPTION));
            }
        } else {
            m_description = description;
            description = CmsEncoder.escapeWBlanks(description, CmsEncoder.ENCODING_UTF_8);
        }
        setParameterValue(cms, PARAM_DESCRIPTION, description);
    }
public void setDescription ( CmsObject cms , String description ) { if ( CmsStringUtil . isEmptyOrWhitespaceOnly ( description ) ) { m_description = "" ; if ( m_element . element ( PARAM_DESCRIPTION ) != null ) { m_element . remove ( m_element . element ( PARAM_DESCRIPTION ) ) ; } } else { m_description = description ; description = CmsEncoder . escapeWBlanks ( description , CmsEncoder . ENCODING_UTF_8 ) ; } setParameterValue ( cms , PARAM_DESCRIPTION , description ) ; }
Sets the description of the image.<p>

@param cms the current users context
@param description the description of the image