code: public void setCropping(CmsCroppingParamBean croppingParam) {
  
          m_croppingParam = croppingParam;
          m_formatForm.setHeightInput(m_croppingParam.getTargetHeight());
          m_formatForm.setWidthInput(m_croppingParam.getTargetWidth());
  
          // only in case of the original-format-restriction, the cropping dialog may be opened to override the selected format
          if (m_currentFormat instanceof CmsOriginalFormatRestriction) {
              I_CmsFormatRestriction format = getMatchingFormat(m_croppingParam, false);
              if (format != null) {
                  m_currentFormat = format;
                  m_formatForm.setFormatSelectValue(format.getName());
              }
          }
          m_formatForm.setCropped(true);
          fireValueChangedEvent();
      }
docs: Sets the given cropping parameter.<p>
  
  @param croppingParam the cropping parameter