T - the grid bean typepublic static class Grid.DetailsManager<T> extends Grid.AbstractGridExtension<T>
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener| Constructor and Description |
|---|
DetailsManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroyData(T item)
Informs the
DataGenerator that the given data item has been
dropped and is no longer needed. |
void |
generateData(T item,
JsonObject jsonObject)
Adds custom data for the given item to its serialized
JsonObject
representation. |
Grid<T> |
getParent() |
protected DetailsManagerState |
getState()
Returns the shared state for this connector.
|
protected DetailsManagerState |
getState(boolean markAsDirty)
Returns the shared state for this connector.
|
boolean |
isDetailsVisible(T item)
Returns the visibility of details component for given item.
|
void |
remove()
Remove this extension from its target.
|
void |
setDetailsGenerator(DetailsGenerator<T> generator)
Sets the details component generator.
|
void |
setDetailsVisible(T item,
boolean visible)
Sets the visibility of details component for given item.
|
addComponentToGrid, extend, getInternalIdForColumn, removeComponentFromGridgetData, refreshextend, 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, refreshDataaddAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlergetConnectorIdpublic void setDetailsGenerator(DetailsGenerator<T> generator)
generator - the generator for details componentspublic void remove()
Extensionremove in interface Extensionremove in class AbstractListing.AbstractListingExtension<T>public void generateData(T item, JsonObject jsonObject)
DataGeneratorJsonObject
representation. This JSON object will be sent to client-side
DataProvider.item - the data item being serializedjsonObject - the JSON object being sent to the clientpublic void destroyData(T item)
DataGeneratorDataGenerator that the given data item has been
dropped and is no longer needed. This method should clean up any unneeded
information stored for this item.item - the dropped data itempublic void setDetailsVisible(T item, boolean visible)
item - the item to show details forvisible - true if details component should be visible;
false if it should be hiddenpublic boolean isDetailsVisible(T item)
item - the item to show details fortrue if details component should be visible;
false if it should be hiddenpublic Grid<T> getParent()
getParent in interface ClientConnectorgetParent in interface ConnectorgetParent in class Grid.AbstractGridExtension<T>protected DetailsManagerState 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 Grid.AbstractGridExtension<T>protected DetailsManagerState getState(boolean markAsDirty)
AbstractClientConnectorgetState in class Grid.AbstractGridExtension<T>markAsDirty - true if the connector should automatically be marked dirty,
false otherwiseAbstractClientConnector.getState()Copyright © 2018 Vaadin Ltd. All rights reserved.