Class CmsImageEditorForm

java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.opencms.ade.galleries.client.preview.ui.CmsImageEditorForm
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget

public class CmsImageEditorForm extends com.google.gwt.user.client.ui.Composite
Simple image tag properties form, use in editor mode only.

Since:
8.0.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static interface 
    Ui binder interface.

    Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject

    com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected CmsPushButton
    The reset copyright button.
    protected CmsPushButton
    The reset alt/title button.
    protected CmsCheckBox
    The insert copyright check-box.
    protected CmsCheckBox
    The insert link to original check-box.
    protected CmsCheckBox
    The insert subtitle check-box.
    protected CmsCheckBox
    The insert spacing check-box.
    protected CmsTextBox
    The alt/title input field.
    protected CmsTextBox
    The copyright input field.
    protected CmsTextBox
    The hSpace input field.
    protected CmsTextBox
    The vSpace input field.
    protected com.google.gwt.user.client.ui.Label
    The alignment select-box label.
    protected com.google.gwt.user.client.ui.Label
    The alt/title field label.
    protected com.google.gwt.user.client.ui.Label
    The copyright field label.
    protected com.google.gwt.user.client.ui.Label
    The hSpace field label.
    protected com.google.gwt.user.client.ui.Label
    The image spacing check-box label.
    protected com.google.gwt.user.client.ui.Label
    The insert copyright check-box label.
    protected com.google.gwt.user.client.ui.Label
    The insert link to original check-box label.
    protected com.google.gwt.user.client.ui.Label
    The insert subtitles check-box label.
    protected com.google.gwt.user.client.ui.Label
    The vSpace field label.

    Fields inherited from class com.google.gwt.user.client.ui.UIObject

    DEBUG_ID_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    fillContent(org.opencms.ade.galleries.shared.CmsImageInfoBean imageInfo, CmsJSONMap imageAttributes, boolean initialFill)
    Displays the provided image information.
    Adds necessary attributes to the map.
    void
    hideEnhancedOptions(boolean hide)
    Hides the enhanced image options in this form.
    protected void
    onResetCopyrightClick(com.google.gwt.event.dom.client.ClickEvent event)
    Handles the click on 'reset copyright' button.
    protected void
    onResetTitleClick(com.google.gwt.event.dom.client.ClickEvent event)
    Handles the click on 'reset title' button.
    protected void
    Resets the value for the given attribute to it's initial value.

    Methods inherited from class com.google.gwt.user.client.ui.Composite

    claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget

    Methods inherited from class com.google.gwt.user.client.ui.Widget

    addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents

    Methods inherited from class com.google.gwt.user.client.ui.UIObject

    addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • fillContent

      public void fillContent(org.opencms.ade.galleries.shared.CmsImageInfoBean imageInfo, CmsJSONMap imageAttributes, boolean initialFill)
      Displays the provided image information.

      Parameters:
      imageInfo - the image information
      imageAttributes - the image attributes
      initialFill - flag to indicate that a new image has been selected
    • getImageAttributes

      Adds necessary attributes to the map.

      Parameters:
      attributes - the attribute map
      Returns:
      the attribute map
    • hideEnhancedOptions

      public void hideEnhancedOptions(boolean hide)
      Hides the enhanced image options in this form.

      Parameters:
      hide - if true the enhanced options will get hidden
    • onResetCopyrightClick

      @UiHandler("m_buttonResetCopyright") protected void onResetCopyrightClick(com.google.gwt.event.dom.client.ClickEvent event)
      Handles the click on 'reset copyright' button.

      Parameters:
      event - the click event
    • onResetTitleClick

      @UiHandler("m_buttonResetTitle") protected void onResetTitleClick(com.google.gwt.event.dom.client.ClickEvent event)
      Handles the click on 'reset title' button.

      Parameters:
      event - the click event
    • resetValue

      protected void resetValue(CmsImagePreviewHandler.Attribute attribute)
      Resets the value for the given attribute to it's initial value.

      Parameters:
      attribute - the attribute to reset