code: public void setCropped(boolean cropped) {
  
          if (cropped) {
              m_heightBox.setEnabled(false);
              m_widthBox.setEnabled(false);
              m_selectBox.setEnabled(false);
              m_resetSize.disable(Messages.get().key(Messages.GUI_PREVIEW_BUTTON_DIS_CROPPED_0));
              m_ratioLock.disable(Messages.get().key(Messages.GUI_PREVIEW_BUTTON_DIS_CROPPED_0));
              m_cropButton.disable(Messages.get().key(Messages.GUI_PREVIEW_BUTTON_DIS_CROPPED_0));
              if (m_formEnabled) {
                  m_removeCropButton.enable();
              }
              m_removeCropButton.setVisible(true);
              return;
          }
          if (m_formEnabled) {
              m_cropButton.enable();
              m_heightBox.setEnabled(true);
              m_widthBox.setEnabled(true);
              m_selectBox.setEnabled(true);
              m_resetSize.enable();
              m_ratioLock.enable();
          }
          m_removeCropButton.setVisible(false);
      }
docs: Enables/disables buttons and input fields necessary if the image if cropped.<p>
  
  @param cropped <code>true</code> if the image is cropped