Class 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  CmsImageEditorForm.I_CmsImageEditorFormatsTabUiBinder
      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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void fillContent​(org.opencms.ade.galleries.shared.CmsImageInfoBean imageInfo, CmsJSONMap imageAttributes, boolean initialFill)
      Displays the provided image information.
      java.util.Map<java.lang.String,​java.lang.String> getImageAttributes​(java.util.Map<java.lang.String,​java.lang.String> attributes)
      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 resetValue​(CmsImagePreviewHandler.Attribute attribute)
      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
    • Method Detail

      • 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

        public java.util.Map<java.lang.String,​java.lang.String> getImageAttributes​(java.util.Map<java.lang.String,​java.lang.String> attributes)
        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