Class CmsImagePreview

java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.opencms.ade.postupload.client.ui.CmsImagePreview
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget

public class CmsImagePreview extends com.google.gwt.user.client.ui.Composite
Widget to display an image preview in the upload property dialog.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject

    com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected com.google.gwt.user.client.ui.Image
    The preview image.
    protected com.google.gwt.user.client.ui.Label
    The first info label.
    protected com.google.gwt.user.client.ui.Label
    The second info label.
    protected com.google.gwt.user.client.ui.Label
     
    protected CmsPreviewLink
    Link which opens the preview in a separate window.

    Fields inherited from class com.google.gwt.user.client.ui.UIObject

    DEBUG_ID_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Hides the widget using the CSS 'visibility' property (so it will still occupy space).
    void
    setFullPreview(String fullPreviewUrl)
    Sets the full preview URL.
    void
    setHighResImageUrl(String highResPreviewLink)
    Sets the high resolution preview URL.
    void
    setImageUrl(String imageUrl)
    Sets the preview image URL.
    void
    Sets the first info label text.
    void
    Sets the second info label text.

    Methods inherited from class com.google.gwt.user.client.ui.Composite

    claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget

    Methods inherited from class com.google.gwt.user.client.ui.Widget

    addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents

    Methods inherited from class com.google.gwt.user.client.ui.UIObject

    addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • m_image

      @UiField protected com.google.gwt.user.client.ui.Image m_image
      The preview image.
    • m_info1

      @UiField protected com.google.gwt.user.client.ui.Label m_info1
      The first info label.
    • m_info2

      @UiField protected com.google.gwt.user.client.ui.Label m_info2
      The second info label.
    • m_label

      @UiField protected com.google.gwt.user.client.ui.Label m_label
  • Constructor Details

  • Method Details

    • hide

      public void hide()
      Hides the widget using the CSS 'visibility' property (so it will still occupy space).
    • setFullPreview

      public void setFullPreview(String fullPreviewUrl)
      Sets the full preview URL.
      Parameters:
      fullPreviewUrl - the full preview URL
    • setHighResImageUrl

      public void setHighResImageUrl(String highResPreviewLink)
      Sets the high resolution preview URL.
      Parameters:
      highResPreviewLink - the high resolution preview URL
    • setImageUrl

      public void setImageUrl(String imageUrl)
      Sets the preview image URL.
      Parameters:
      imageUrl - the preview image URL
    • setInfo1

      public void setInfo1(String text)
      Sets the first info label text.
      Parameters:
      text - the text
    • setInfo2

      public void setInfo2(String text)
      Sets the second info label text.
      Parameters:
      text - the text