public class EscalatorThumbnailsPanel
extends com.google.gwt.user.client.ui.FlowPanel
Modifier and Type | Class and Description |
---|---|
static interface |
EscalatorThumbnailsPanel.Listener
Listener interface for processing thumbnail click/tap events.
|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
Modifier and Type | Field and Description |
---|---|
static int |
MAX_PREFFERED_AMOUNT_OF_THUMBNAILS_IN_ROW |
Constructor and Description |
---|
EscalatorThumbnailsPanel(EscalatorThumbnailsPanel.Listener listener) |
Modifier and Type | Method and Description |
---|---|
protected com.google.gwt.dom.client.Element |
findThumbnail(com.google.gwt.dom.client.Element element) |
int |
getCurrentlyDisplayedThumbnails() |
int |
getCurrentThumbnailOffset() |
Range |
getDisplayedRange() |
protected int |
getThumbnailIndex(com.google.gwt.dom.client.Element element) |
void |
initialize(int thumbnailAmount,
int offset,
ThumbnailLayoutState.ThumbnailSize size,
float scaleRatio,
boolean isFirstUpdateFromState) |
void |
resize() |
protected void |
scale(float ratio) |
protected void |
scaleToWidth(int width) |
void |
setSelectedThumbnailsViaIndices(List<Integer> indices) |
void |
setThumbnailAmount(int amount) |
void |
setThumbnailService(LazyThumbnailLayoutConnector.ThumbnailService thumbnailService) |
void |
setThumbnailSize(int width,
int height) |
void |
updateIconFontStyle(String style,
int index) |
void |
updateImageSource(String url,
int index) |
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
add, adopt, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final int MAX_PREFFERED_AMOUNT_OF_THUMBNAILS_IN_ROW
public EscalatorThumbnailsPanel(EscalatorThumbnailsPanel.Listener listener)
public final int getCurrentThumbnailOffset()
public int getCurrentlyDisplayedThumbnails()
public void initialize(int thumbnailAmount, int offset, ThumbnailLayoutState.ThumbnailSize size, float scaleRatio, boolean isFirstUpdateFromState)
public void setThumbnailService(LazyThumbnailLayoutConnector.ThumbnailService thumbnailService)
public void setThumbnailAmount(int amount)
public void setThumbnailSize(int width, int height)
public Range getDisplayedRange()
public void resize()
protected com.google.gwt.dom.client.Element findThumbnail(com.google.gwt.dom.client.Element element)
protected int getThumbnailIndex(com.google.gwt.dom.client.Element element)
protected void scaleToWidth(int width)
protected void scale(float ratio)
public void updateImageSource(String url, int index)
public void updateIconFontStyle(String style, int index)
Copyright © 2015 Magnolia International Ltd.. All rights reserved.