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
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
FieldsModifier and TypeFieldDescriptionprotected 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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
hide()
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
-
Field Details
-
m_image
The preview image. -
m_info1
The first info label. -
m_info2
The second info label. -
m_label
-
m_link
Link which opens the preview in a separate window.
-
-
Constructor Details
-
CmsImagePreview
public CmsImagePreview()Creates a new instance.
-
-
Method Details
-
hide
Hides the widget using the CSS 'visibility' property (so it will still occupy space). -
setFullPreview
Sets the full preview URL.- Parameters:
fullPreviewUrl
- the full preview URL
-
setHighResImageUrl
Sets the high resolution preview URL.- Parameters:
highResPreviewLink
- the high resolution preview URL
-
setImageUrl
Sets the preview image URL.- Parameters:
imageUrl
- the preview image URL
-
setInfo1
Sets the first info label text.- Parameters:
text
- the text
-
setInfo2
Sets the second info label text.- Parameters:
text
- the text
-