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, Iterable<com.google.gwt.user.client.ui.Widget>, I_CmsAutoHider

public final class CmsPreviewDialog extends CmsPopup
Resource preview dialog.

  • Method Details

    • 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(String sitePath)
      Shows the preview for the given resource.

      Parameters:
      sitePath - the resource site path
    • setPreviewInfoProvider

      Sets the preview info provider.

      Parameters:
      provider - the preview info provider instance
    • getSitePath

      protected String getSitePath()
      Returns the site path.

      Returns:
      the site path
    • loadOtherLocale

      protected void loadOtherLocale(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