T
- data type backing up the thumbnailspublic abstract class LazyLayout<T>
extends com.vaadin.ui.AbstractComponent
Modifier and Type | Class and Description |
---|---|
class |
LazyLayout.DataProviderKeyMapper
Maps item ids, indices and client-side keys to each other.
|
static interface |
LazyLayout.ElementDblClickListener<T>
Listener for element double clicks.
|
static interface |
LazyLayout.ElementRightClickListener<T>
Listener for element right clicks.
|
static interface |
LazyLayout.ElementSelectionListener<T>
Listener interface for element selection.
|
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
Constructor and Description |
---|
LazyLayout() |
Modifier and Type | Method and Description |
---|---|
void |
addDoubleClickListener(LazyLayout.ElementDblClickListener<T> listener) |
void |
addElementSelectionListener(LazyLayout.ElementSelectionListener<T> listener) |
void |
addRightClickListener(LazyLayout.ElementRightClickListener<T> listener) |
void |
beforeClientResponse(boolean initial) |
protected abstract List<T> |
fetchItems(Range added) |
protected abstract com.vaadin.ui.ItemCaptionGenerator<T> |
getItemCaptionGenerator() |
protected abstract com.vaadin.ui.IconGenerator<T> |
getItemResourceGenerator() |
LazyLayoutClientRpc |
getRpc() |
protected ThumbnailLayoutState |
getState() |
protected ThumbnailLayoutState |
getState(boolean markAsDirty) |
void |
refresh() |
void |
setElementSize(int width,
int height) |
void |
setSelectedItem(T selectedItem) |
abstract int |
size() |
protected void |
updateSelectionIndices() |
addContextClickListener, addListener, addShortcutListener, addStyleName, attach, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isReadOnly, isRequiredIndicatorVisible, isResponsive, isVisible, readDesign, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth, setWidthFull, setWidthUndefined, writeDesign
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addStyleNames, getUI, removeStyleNames, setStyleName
addAttachListener, addDetachListener, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
protected abstract com.vaadin.ui.ItemCaptionGenerator<T> getItemCaptionGenerator()
protected abstract com.vaadin.ui.IconGenerator<T> getItemResourceGenerator()
public LazyLayoutClientRpc getRpc()
public void setElementSize(int width, int height)
public void refresh()
public abstract int size()
public void addElementSelectionListener(LazyLayout.ElementSelectionListener<T> listener)
public void addDoubleClickListener(LazyLayout.ElementDblClickListener<T> listener)
public void addRightClickListener(LazyLayout.ElementRightClickListener<T> listener)
protected ThumbnailLayoutState getState()
getState
in class com.vaadin.ui.AbstractComponent
protected ThumbnailLayoutState getState(boolean markAsDirty)
getState
in class com.vaadin.ui.AbstractComponent
public void setSelectedItem(T selectedItem)
public void beforeClientResponse(boolean initial)
beforeClientResponse
in interface com.vaadin.server.ClientConnector
beforeClientResponse
in class com.vaadin.ui.AbstractComponent
protected void updateSelectionIndices()
Copyright © 2021 Magnolia International Ltd.. All rights reserved.