Class RpcDataProviderExtension
- java.lang.Object
-
- com.vaadin.server.AbstractClientConnector
-
- com.vaadin.server.AbstractExtension
-
- com.vaadin.v7.server.communication.data.RpcDataProviderExtension
-
- All Implemented Interfaces:
MethodEventSource,ClientConnector,Extension,com.vaadin.shared.Connector,Serializable
@Deprecated public class RpcDataProviderExtension extends AbstractExtension
Deprecated.As of 8.0, no replacement available.Provides Vaadin server-side container data source to acom.vaadin.v7.client.connectors.GridConnector. This is currently implemented as an Extension hardcoded to support a specific connector type. This will be changed once framework support for something more flexible has been implemented.- Since:
- 7.4
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener
-
-
Constructor Summary
Constructors Constructor Description RpcDataProviderExtension(Container.Indexed container)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddDataGenerator(DataGenerator generator)Deprecated.Adds aDataGeneratorfor thisRpcDataProviderExtension.voidbeforeClientResponse(boolean initial)Deprecated.voidcolumnsAdded(List<Grid.Column> addedColumns)Deprecated.Informs this data provider that given columns have been added to grid.voidcolumnsRemoved(List<Grid.Column> removedColumns)Deprecated.Informs this data provider that given columns have been removed from grid.voidextend(Grid component)Deprecated.Makes the data source available to the givenGridcomponent.protected GridgetGrid()Deprecated.KeyMapper<Object>getKeyMapper()Deprecated.voidrefreshCache()Deprecated.Pushes a new version of all the rows in the active cache range.voidremoveDataGenerator(DataGenerator generator)Deprecated.Removes aDataGeneratorfrom thisRpcDataProviderExtension.voidsetParent(ClientConnector parent)Deprecated.voidupdateRowData(Object itemId)Deprecated.Informs the client side that data of a row has been modified in the data source.-
Methods inherited from class com.vaadin.server.AbstractExtension
extend, getParent, getSupportedParentType, remove
-
Methods inherited from class com.vaadin.server.AbstractClientConnector
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, attach, createState, detach, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getState, getState, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isConnectorEnabled, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstate
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, attach, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
-
-
-
-
Constructor Detail
-
RpcDataProviderExtension
@Deprecated public RpcDataProviderExtension(Container.Indexed container)
Deprecated.Creates a new data provider using the given container.- Parameters:
container- the container to make available
-
-
Method Detail
-
beforeClientResponse
public void beforeClientResponse(boolean initial)
Deprecated.RpcDataProviderExtension makes all actual RPC calls from this function based on changes in the container.
- Specified by:
beforeClientResponsein interfaceClientConnector- Overrides:
beforeClientResponsein classAbstractClientConnector
-
extend
public void extend(Grid component)
Deprecated.Makes the data source available to the givenGridcomponent.- Parameters:
component- the remote data grid component to extend
-
addDataGenerator
public void addDataGenerator(DataGenerator generator)
Deprecated.Adds aDataGeneratorfor thisRpcDataProviderExtension. DataGenerators are called when sending row data to client. If given DataGenerator is already added, this method does nothing.- Parameters:
generator- generator to add- Since:
- 7.6
-
removeDataGenerator
public void removeDataGenerator(DataGenerator generator)
Deprecated.Removes aDataGeneratorfrom thisRpcDataProviderExtension. If given DataGenerator is not added to this data provider, this method does nothing.- Parameters:
generator- generator to remove- Since:
- 7.6
-
updateRowData
public void updateRowData(Object itemId)
Deprecated.Informs the client side that data of a row has been modified in the data source.- Parameters:
itemId- the item Id the row that was updated
-
refreshCache
public void refreshCache()
Deprecated.Pushes a new version of all the rows in the active cache range.
-
setParent
public void setParent(ClientConnector parent)
Deprecated.- Specified by:
setParentin interfaceExtension- Overrides:
setParentin classAbstractExtension
-
columnsRemoved
public void columnsRemoved(List<Grid.Column> removedColumns)
Deprecated.Informs this data provider that given columns have been removed from grid.- Parameters:
removedColumns- a list of removed columns
-
columnsAdded
public void columnsAdded(List<Grid.Column> addedColumns)
Deprecated.Informs this data provider that given columns have been added to grid.- Parameters:
addedColumns- a list of added columns
-
getGrid
protected Grid getGrid()
Deprecated.
-
-