T - the listing item typepublic abstract static class AbstractListing.AbstractListingExtension<T> extends AbstractExtension implements DataGenerator<T>
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener| Constructor and Description |
|---|
AbstractListingExtension() |
| Modifier and Type | Method and Description |
|---|---|
void |
extend(AbstractListing<T> listing)
Adds this extension to the given parent listing.
|
protected T |
getData(String key)
Gets a data object based on its client-side identifier key.
|
AbstractListing<T> |
getParent() |
protected AbstractListingExtensionState |
getState()
Returns the shared state for this connector.
|
protected AbstractListingExtensionState |
getState(boolean markAsDirty)
Returns the shared state for this connector.
|
protected void |
refresh(T item)
A helper method for refreshing the client-side representation of a
single data item.
|
void |
remove()
Remove this extension from its target.
|
extend, getSupportedParentType, setParentaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, attach, beforeClientResponse, createState, detach, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isConnectorEnabled, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstateclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitdestroyAllData, destroyData, generateData, refreshDataaddAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlergetConnectorIdpublic void extend(AbstractListing<T> listing)
listing - the parent component to add topublic void remove()
Extensionremove in interface Extensionremove in class AbstractExtensionprotected T getData(String key)
key - key for data objectpublic AbstractListing<T> getParent()
getParent in interface ClientConnectorgetParent in interface ConnectorgetParent in class AbstractExtensionprotected void refresh(T item)
item - the item to refreshprotected AbstractListingExtensionState getState()
AbstractClientConnector
As a side effect, marks the connector dirty so any changes done to the
state will be sent to the client. Use getState(false) to avoid
marking the connector as dirty.
getState in class AbstractClientConnectorprotected AbstractListingExtensionState getState(boolean markAsDirty)
AbstractClientConnectorgetState in class AbstractClientConnectormarkAsDirty - true if the connector should automatically be marked dirty,
false otherwiseAbstractClientConnector.getState()Copyright © 2017 Vaadin Ltd. All rights reserved.