public abstract class LazyLayout
extends com.vaadin.ui.AbstractComponent
implements com.vaadin.v7.data.Container.Viewer, com.vaadin.v7.data.Container.ItemSetChangeListener
Modifier and Type | Class and Description |
---|---|
class |
LazyLayout.DataProviderKeyMapper
Maps item ids, indices and client-side keys to each other.
|
static interface |
LazyLayout.ElementDblClickListener
Listener for element double clicks.
|
static interface |
LazyLayout.ElementRightClickListener
Listener for element right clicks.
|
static interface |
LazyLayout.ElementSelectionListener
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() |
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, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth, setWidthUndefined, writeDesign
addAttachListener, addDetachListener, addExtension, 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, 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
public void handleSelectionAtIndex(int index, boolean isMultiple)
public void fireSelectionChange()
public void onElementDoubleClicked(Object itemId)
public void onElementRightClicked(Object itemId, int clickX, int clickY)
public abstract List<ThumbnailData> fetchElements(Range range, LazyLayout.DataProviderKeyMapper mapper)
public void setElementSize(int width, int height)
public int getElementWidth()
public int getElementHeight()
public void refresh()
public void addElementSelectionListener(LazyLayout.ElementSelectionListener listener)
public void addDoubleClickListener(LazyLayout.ElementDblClickListener listener)
public void addRightClickListener(LazyLayout.ElementRightClickListener listener)
public void setContainerDataSource(com.vaadin.v7.data.Container newDataSource)
setContainerDataSource
in interface com.vaadin.v7.data.Container.Viewer
public com.vaadin.v7.data.Container.Ordered getContainerDataSource()
getContainerDataSource
in interface com.vaadin.v7.data.Container.Viewer
protected ThumbnailLayoutState getState()
getState
in class com.vaadin.ui.AbstractComponent
protected ThumbnailLayoutState getState(boolean markAsDirty)
getState
in class com.vaadin.ui.AbstractComponent
public void setSelectedItemId(Object selectedItemId)
public void containerItemSetChange(com.vaadin.v7.data.Container.ItemSetChangeEvent event)
containerItemSetChange
in interface com.vaadin.v7.data.Container.ItemSetChangeListener
public void beforeClientResponse(boolean initial)
beforeClientResponse
in interface com.vaadin.server.ClientConnector
beforeClientResponse
in class com.vaadin.ui.AbstractComponent
Copyright © 2018 Magnolia International Ltd.. All rights reserved.