Package org.opencms.gwt.client.ui
Class CmsPreviewDialog
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Panel
-
- com.google.gwt.user.client.ui.SimplePanel
-
- com.google.gwt.user.client.ui.PopupPanel
-
- org.opencms.gwt.client.ui.CmsPopup
-
- org.opencms.gwt.client.ui.CmsPreviewDialog
-
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers
,com.google.gwt.event.logical.shared.HasCloseHandlers<com.google.gwt.user.client.ui.PopupPanel>
,com.google.gwt.event.shared.HasHandlers
,com.google.gwt.user.client.EventListener
,com.google.gwt.user.client.EventPreview
,com.google.gwt.user.client.ui.AcceptsOneWidget
,com.google.gwt.user.client.ui.HasAnimation
,com.google.gwt.user.client.ui.HasOneWidget
,com.google.gwt.user.client.ui.HasVisibility
,com.google.gwt.user.client.ui.HasWidgets
,com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
,com.google.gwt.user.client.ui.IsWidget
,com.google.gwt.user.client.ui.SourcesPopupEvents
,java.lang.Iterable<com.google.gwt.user.client.ui.Widget>
,I_CmsAutoHider
public final class CmsPreviewDialog extends CmsPopup
Resource preview dialog.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CmsPreviewDialog.I_PreviewInfoProvider
Preview provider interface.-
Nested classes/interfaces inherited from class org.opencms.gwt.client.ui.CmsPopup
CmsPopup.HistoryHandler
-
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.PopupPanel
com.google.gwt.user.client.ui.PopupPanel.AnimationType, com.google.gwt.user.client.ui.PopupPanel.PositionCallback
-
-
Field Summary
-
Fields inherited from class org.opencms.gwt.client.ui.CmsPopup
DEFAULT_WIDTH, m_closeCommand, m_notificationWidgetInstalled, m_windowWidth, WIDE_WIDTH
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CmsPreviewDialog
createPreviewDialog(org.opencms.gwt.shared.CmsPreviewInfo previewInfo)
Creates a new preview dialog instance.protected java.lang.String
getSitePath()
Returns the site path.protected void
loadOtherLocale(java.lang.String locale)
Loads preview for another locale.void
setPreviewInfoProvider(CmsPreviewDialog.I_PreviewInfoProvider provider)
Sets the preview info provider.static void
showPreviewForResource(java.lang.String sitePath)
Shows the preview for the given resource.static void
showPreviewForResource(org.opencms.gwt.shared.CmsPreviewInfo previewInfo)
Shows the preview for the given resource.static void
showPreviewForResource(org.opencms.util.CmsUUID structureId)
Shows the preview for the given resource.protected void
updatePreviewContent(org.opencms.gwt.shared.CmsPreviewInfo previewInfo)
Updates the preview content of the dialog.-
Methods inherited from class org.opencms.gwt.client.ui.CmsPopup
add, add, addButton, addButton, addDialogClose, adjustIndex, beginDragging, catchNotifications, center, centerHorizontally, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, clear, continueDragging, createDialogNotificationWidget, doAttachChildren, doDetachChildren, endDragging, getAvailableHeight, getCaption, getChildren, getContainerElement, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, getWidth, hasCaption, hide, hide, insert, insert, insertFront, installNotificationWidget, iterator, onBrowserEvent, onDetach, onPreviewNativeEvent, remove, remove, removeAllButtons, removeButton, removePadding, setBackgroundColor, setCaption, setHeight, setHeight, setMainContent, setPixelSize, setPositionFixed, setSize, setSpecialBackgroundClass, setUseAnimation, setWidget, setWidth, setWidth, show, showArrow, wrapWithBorderPadding
-
Methods inherited from class com.google.gwt.user.client.ui.PopupPanel
addAutoHidePartner, addCloseHandler, addPopupListener, getAnimationType, getGlassElement, getGlassStyleName, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getStyleElement, getTitle, isAnimationEnabled, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, isGlassEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, onUnload, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAnimationType, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled, setGlassEnabled, setGlassStyleName, setModal, setPopupPosition, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setVisible, showRelativeTo
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onLoad, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.opencms.gwt.client.ui.I_CmsAutoHider
addAutoHidePartner, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, removeAutoHidePartner, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled
-
-
-
-
Method Detail
-
createPreviewDialog
public static CmsPreviewDialog createPreviewDialog(org.opencms.gwt.shared.CmsPreviewInfo previewInfo)
Creates a new preview dialog instance.- Parameters:
previewInfo
- the preview information- Returns:
- the new preview dialog instance
-
showPreviewForResource
public static void showPreviewForResource(org.opencms.gwt.shared.CmsPreviewInfo previewInfo)
Shows the preview for the given resource.- Parameters:
previewInfo
- the resource preview info
-
showPreviewForResource
public static void showPreviewForResource(org.opencms.util.CmsUUID structureId)
Shows the preview for the given resource.- Parameters:
structureId
- the resource structure id
-
showPreviewForResource
public static void showPreviewForResource(java.lang.String sitePath)
Shows the preview for the given resource.- Parameters:
sitePath
- the resource site path
-
setPreviewInfoProvider
public void setPreviewInfoProvider(CmsPreviewDialog.I_PreviewInfoProvider provider)
Sets the preview info provider.- Parameters:
provider
- the preview info provider instance
-
getSitePath
protected java.lang.String getSitePath()
Returns the site path.- Returns:
- the site path
-
loadOtherLocale
protected void loadOtherLocale(java.lang.String locale)
Loads preview for another locale.- Parameters:
locale
- the locale to load
-
updatePreviewContent
protected void updatePreviewContent(org.opencms.gwt.shared.CmsPreviewInfo previewInfo)
Updates the preview content of the dialog.- Parameters:
previewInfo
- the preview info
-
-