com.vaadin.client.connectors.grid.
Class AbstractGridRendererConnector<T>
- java.lang.Object
-
- com.vaadin.client.ui.AbstractConnector
-
- com.vaadin.client.extensions.AbstractExtensionConnector
-
- com.vaadin.client.connectors.AbstractRendererConnector<T>
-
- com.vaadin.client.connectors.grid.AbstractGridRendererConnector<T>
-
Type Parameters:
T
- the presentation type of the rendererAll Implemented Interfaces:
com.google.gwt.event.shared.EventHandler
,StateChangeEvent.StateChangeHandler
,ServerConnector
,Connector
,Serializable
Direct Known Subclasses:
ClickableRendererConnector
,ComponentRendererConnector
,JavaScriptRendererConnector
,ProgressBarRendererConnector
,TextRendererConnector
,TreeRendererConnector
,UnsafeHtmlRendererConnector
public abstract class AbstractGridRendererConnector<T> extends AbstractRendererConnector<T>
An abstract base class for renderer connectors. A renderer connector is used to link a client-side
Renderer
to a server-sideRenderer
. As a connector, it can use the regular Vaadin RPC and shared state mechanism to pass additional state and information between the client and the server. This base class itself only uses the basicSharedState
and no RPC interfaces.Since:
8.0
Author:
Vaadin Ltd
See Also:
-
-
Constructor Summary
Constructors Constructor Description AbstractGridRendererConnector()
-
Method Summary
All Methods Modifier and Type Method Description protected String
getColumnId(Grid.Column<?,elemental.json.JsonObject> column)
Gets the column id for a column.
protected GridConnector
getGridConnector()
Gets the grid connector for this renderer connector.
protected String
getRowKey(elemental.json.JsonObject row)
Gets the row key for a row object.
-
Methods inherited from class com.vaadin.client.connectors.AbstractRendererConnector
createRenderer, decode, extend, getRenderer, getState
-
Methods inherited from class com.vaadin.client.extensions.AbstractExtensionConnector
setParent
-
Methods inherited from class com.vaadin.client.ui.AbstractConnector
addStateChangeHandler, addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, forceStateChange, getChildren, getConnection, getConnectorId, getParent, getResourceUrl, getRpcImplementations, getRpcProxy, getStateType, getTag, hasEventListener, init, isEnabled, onStateChanged, onUnregister, registerRpc, removeStateChangeHandler, removeStateChangeHandler, setChildren, setTag, unregisterRpc, updateEnabledState
-
-
-
-
Method Detail
-
getRowKey
protected String getRowKey(elemental.json.JsonObject row)
Gets the row key for a row object.
In case this renderer wants be able to identify a row in such a way that the server also understands it, the row key is used for that. Rows are identified by unified keys between the client and the server.
Parameters:
row
- the row objectReturns:
the row key for the given row
-
getColumnId
protected String getColumnId(Grid.Column<?,elemental.json.JsonObject> column)
Gets the column id for a column.
In case this renderer wants be able to identify a column in such a way that the server also understands it, the column id is used for that. Columns are identified by unified ids between the client and the server.
Parameters:
column
- the column objectReturns:
the column id for the given column
-
getGridConnector
protected GridConnector getGridConnector()
Gets the grid connector for this renderer connector.
Returns:
the parent grid connector.
-
-