Class A_CmsPreviewDetailTab

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

    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
    The main panel.
    protected int
    The tab height.
    protected int
    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

    Modifier and Type
    Method
    Description
    protected org.opencms.ade.galleries.shared.I_CmsGalleryProviderConstants.GalleryMode
    Returns the gallery mode.
    protected abstract I_CmsPreviewHandler<?>
    Returns the preview handler.
    boolean
    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 Details

    • 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 Details

    • 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 Details

    • 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
    • getHandler

      protected abstract I_CmsPreviewHandler<?> getHandler()
      Returns the preview handler.

      Returns:
      the preview handler
    • setChanged

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

      Parameters:
      changed - the changed state