code: protected void setValueFromGallery(
          String resourcePath,
          CmsUUID structureId,
          CmsCroppingParamBean croppingParameter) {
  
          m_croppingParam = croppingParameter;
          String path = resourcePath;
          // in case of an image check the cropping parameter
          if ((m_croppingParam != null) && (m_croppingParam.isCropped() || m_croppingParam.isScaled())) {
              path += "?" + m_croppingParam.toString();
          }
          setValue(path, true);
          m_popup.hide();
      }
docs: Sets the widget value. To be called from the gallery dialog.<p>
  
  @param resourcePath the selected resource path
  @param structureId the resource structure id
  @param croppingParameter the selected cropping