Class CmsImagePreviewDialog

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.A_CmsPreviewDialog<org.opencms.ade.galleries.shared.CmsImageInfoBean>
org.opencms.ade.galleries.client.preview.ui.CmsImagePreviewDialog
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 CmsImagePreviewDialog extends A_CmsPreviewDialog<org.opencms.ade.galleries.shared.CmsImageInfoBean>
Provides a widget for the image preview dialog .

Since:
8.0.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.opencms.ade.galleries.client.preview.ui.A_CmsPreviewDialog

    A_CmsPreviewDialog.I_CmsPreviewDialogUiBinder

    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
    static final int
    The default min height of the image.
    static final int
    The default min width of the image.
    static final String
    Style name for distinguishing whether the properties tab is currently active or not.

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

    DEBUG_ID_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
    CmsImagePreviewDialog(org.opencms.ade.galleries.shared.I_CmsGalleryProviderConstants.GalleryMode dialogMode, int dialogHeight, int dialogWidth, boolean disableSelection)
    The constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    fillContent(org.opencms.ade.galleries.shared.CmsImageInfoBean infoBean)
    Fills the content of the tabs panel.
    void
    fillPreviewPanel(org.opencms.ade.galleries.shared.CmsImageInfoBean infoBean)
    Fills the preview panel.
    int
    Returns the dialog width.
    Returns the preview handler.
    void
    Adds necessary attributes to the map.
    int
    Returns the preview height.
    boolean
    Returns if there are any changes that need saving, before the preview may be closed.
    void
    Initializes the preview.
    protected void
     
    void
    Resets the image displayed in the preview.
    void
    saveChanges(com.google.gwt.user.client.Command afterSaveCommand)
    Saves the changes for this dialog.

    Methods inherited from class org.opencms.ade.galleries.client.preview.ui.A_CmsPreviewDialog

    confirmSaveChanges, getGalleryMode, onCloseClick, onSelectClick, removePreview

    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, 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