Class CmsGalleryFilePreview

java.lang.Object
org.opencms.ui.util.CmsGalleryFilePreview

public final class CmsGalleryFilePreview extends Object
Creates clickable previews for images and other files.
  • Field Details

  • Constructor Details

  • Method Details

    • createClickableFile

      public static com.vaadin.ui.Component createClickableFile(CmsResource resource)
      Creates a clickable file preview.
      Parameters:
      resource - the resource to create the preview for
      Returns:
      the clickable file preview
    • createClickableFile

      public static com.vaadin.ui.Component createClickableFile(CmsResource resource, CmsResourceUtil resourceUtil)
      Creates a clickable file preview.

      Parameters:
      resource - the resource to create the preview for
      resourceUtil - the resource util
      Returns:
      the clickable file preview
    • getScaleQueryString

      public static String getScaleQueryString(boolean highres)
      Gets the scaling query string for the preview.
      Parameters:
      highres - if true, generates high-resolution scaling query string
      Returns:
      the scaling parameters