Class 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.

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