|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.server.AbstractClientConnector
com.vaadin.server.AbstractExtension
com.vaadin.data.RpcDataProviderExtension
public class RpcDataProviderExtension
Provides Vaadin server-side container data source to a
com.vaadin.client.ui.grid.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.
| 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 | |
|---|---|
RpcDataProviderExtension(Container.Indexed container)
Creates a new data provider using the given container. |
|
| Method Summary | |
|---|---|
void |
extend(Grid component)
Makes the data source available to the given Grid component. |
protected com.vaadin.shared.data.DataProviderState |
getState()
Returns the shared state for this connector. |
void |
insertRowData(int index,
int count)
Informs the client side that new rows have been inserted into the data source. |
void |
removeRowData(int firstIndex,
int count)
Informs the client side that rows have been removed from the data source. |
void |
updateRowData(int index)
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, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.vaadin.server.ClientConnector |
|---|
addAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler |
| Methods inherited from interface com.vaadin.shared.Connector |
|---|
getConnectorId |
| Constructor Detail |
|---|
public RpcDataProviderExtension(Container.Indexed container)
container - the container to make available| Method Detail |
|---|
protected com.vaadin.shared.data.DataProviderState 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 AbstractClientConnectorpublic void extend(Grid component)
Grid component.
component - the remote data grid component to extend
public void insertRowData(int index,
int count)
index - the index at which new rows have been insertedcount - the number of rows inserted at index
public void removeRowData(int firstIndex,
int count)
firstIndex - the index of the first row removedcount - the number of rows removedpublic void updateRowData(int index)
index - the index of the row that was updated
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||