Class AttachmentPreviewer
- 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.gcube.portlets.user.newsfeed.client.ui.AttachmentPreviewer
-
- 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 AttachmentPreviewer extends com.google.gwt.user.client.ui.CompositeClass to show an attached file.- Author:
- Costantino Perciante at ISTI-CNR
-
-
Constructor Summary
Constructors Constructor Description AttachmentPreviewer()AttachmentPreviewer(org.gcube.portal.databook.shared.Attachment a)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchangeAttachmentWidth(int newWidth, com.google.gwt.dom.client.Style.Unit unit)Change the width of this container.voidonImageClickOpenCarousel(org.gcube.portlets.widgets.imagepreviewerwidget.client.ui.Carousel carousel)Open the carousel when the user clicks on the preview's image.voidonImageClickOpenCarousel(org.gcube.portlets.widgets.imagepreviewerwidget.client.ui.Carousel carousel, org.gcube.portlets.widgets.imagepreviewerwidget.client.EnhancedImage enhancedImage)Open the carousel and show this enhancedImage when the user clicks on the preview's image.-
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
-
-
-
-
Method Detail
-
changeAttachmentWidth
public void changeAttachmentWidth(int newWidth, com.google.gwt.dom.client.Style.Unit unit)Change the width of this container.- Parameters:
newWidth-unit-
-
onImageClickOpenCarousel
public void onImageClickOpenCarousel(org.gcube.portlets.widgets.imagepreviewerwidget.client.ui.Carousel carousel)
Open the carousel when the user clicks on the preview's image.- Parameters:
carousel-
-
onImageClickOpenCarousel
public void onImageClickOpenCarousel(org.gcube.portlets.widgets.imagepreviewerwidget.client.ui.Carousel carousel, org.gcube.portlets.widgets.imagepreviewerwidget.client.EnhancedImage enhancedImage)Open the carousel and show this enhancedImage when the user clicks on the preview's image.- Parameters:
carousel-enhancedImage- the image to show
-
-