Class A_CmsPreviewDetailTab

  • 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
    Direct Known Subclasses:
    CmsImageAdvancedTab, CmsImageEditorTab, CmsImageFormatsTab, CmsPropertiesTab

    public abstract class A_CmsPreviewDetailTab
    extends com.google.gwt.user.client.ui.Composite
    Basic preview detail tab layout.

    Since:
    8.0.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      protected static interface  A_CmsPreviewDetailTab.I_CmsPreviewDetailTabUiBinder  
      • 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 com.google.gwt.user.client.ui.FlowPanel m_main
      The main panel.
      protected int m_tabHeight
      The tab height.
      protected int m_tabWidth
      The tab width.
      • Fields inherited from class com.google.gwt.user.client.ui.UIObject

        DEBUG_ID_PREFIX
    • Constructor Summary

      Constructors 
      Constructor Description
      A_CmsPreviewDetailTab​(org.opencms.ade.galleries.shared.I_CmsGalleryProviderConstants.GalleryMode dialogMode, int height, int width)
      Constructor.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.opencms.ade.galleries.shared.I_CmsGalleryProviderConstants.GalleryMode getDialogMode()
      Returns the gallery mode.
      protected abstract I_CmsPreviewHandler<?> getHandler()
      Returns the preview handler.
      boolean isChanged()
      Returns if the given tab has changes that need saving.
      protected void setChanged​(boolean changed)
      Sets the changed state of the tab.
      • 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 Detail

      • m_main

        protected com.google.gwt.user.client.ui.FlowPanel m_main
        The main panel.
      • m_tabHeight

        protected int m_tabHeight
        The tab height.
      • m_tabWidth

        protected int m_tabWidth
        The tab width.
    • Constructor Detail

      • A_CmsPreviewDetailTab

        public A_CmsPreviewDetailTab​(org.opencms.ade.galleries.shared.I_CmsGalleryProviderConstants.GalleryMode dialogMode,
                                     int height,
                                     int width)
        Constructor.

        Parameters:
        dialogMode - the gallery mode
        height - the tab height
        width - the tab width
    • Method Detail

      • isChanged

        public boolean isChanged()
        Returns if the given tab has changes that need saving.

        Returns:
        true if the given tab has changes that need saving
      • getDialogMode

        protected org.opencms.ade.galleries.shared.I_CmsGalleryProviderConstants.GalleryMode getDialogMode()
        Returns the gallery mode.

        Returns:
        the gallery mode
      • setChanged

        protected void setChanged​(boolean changed)
        Sets the changed state of the tab.

        Parameters:
        changed - the changed state