T
- public abstract static class Grid.AbstractGridExtension<T> extends AbstractListing.AbstractListingExtension<T>
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener
Constructor and Description |
---|
AbstractGridExtension() |
Modifier and Type | Method and Description |
---|---|
protected void |
addComponentToGrid(Component c)
Adds given component to the connector hierarchy of Grid.
|
void |
extend(AbstractListing<T> grid)
Adds this extension to the given parent listing.
|
protected String |
getInternalIdForColumn(Grid.Column<T,?> column) |
Grid<T> |
getParent() |
protected AbstractGridExtensionState |
getState()
Returns the shared state for this connector.
|
protected AbstractGridExtensionState |
getState(boolean markAsDirty)
Returns the shared state for this connector.
|
protected void |
removeComponentFromGrid(Component c)
Removes given component from the connector hierarchy of Grid.
|
getData, refresh, remove
extend, getSupportedParentType, setParent
addAttachListener, 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, updateDiffstate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
destroyAllData, destroyData, generateData, refreshData
addAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
getConnectorId
public void extend(AbstractListing<T> grid)
AbstractListing.AbstractListingExtension
extend
in class AbstractListing.AbstractListingExtension<T>
grid
- the parent component to add toprotected void addComponentToGrid(Component c)
c
- the component to addprotected void removeComponentFromGrid(Component c)
c
- the component to removepublic Grid<T> getParent()
getParent
in interface ClientConnector
getParent
in interface Connector
getParent
in class AbstractListing.AbstractListingExtension<T>
protected AbstractGridExtensionState 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 AbstractListing.AbstractListingExtension<T>
protected AbstractGridExtensionState getState(boolean markAsDirty)
AbstractClientConnector
getState
in class AbstractListing.AbstractListingExtension<T>
markAsDirty
- true if the connector should automatically be marked dirty,
false otherwiseAbstractClientConnector.getState()
protected String getInternalIdForColumn(Grid.Column<T,?> column)
Copyright © 2017 Vaadin Ltd. All rights reserved.