Class CmsImagePreviewHandler.PreviewImageUpdate

java.lang.Object
org.opencms.ade.galleries.client.preview.CmsImagePreviewHandler.PreviewImageUpdate
Enclosing class:
CmsImagePreviewHandler

Encapsulates information used to update the preview image's scaling parameters.
  • Constructor Details

    • PreviewImageUpdate

      public PreviewImageUpdate(String preview, String highResPreview, int width, int height)
      Creates a new instance.
      Parameters:
      preview - the normal preview scaling parameters
      highResPreview - the high resolution scaling parameters
      width - the normal width
      height - the normal height
  • Method Details

    • applyToImage

      public void applyToImage(com.google.gwt.user.client.ui.Image image, String src, boolean isSvg, com.google.gwt.user.client.ui.Widget container)
      Updates the given image with information from this object.
      Parameters:
      image - the image to update
      src - the image base URL
      isSvg - true if the image is an SVG