com.vaadin.client.connectors.grid.
Class EditorConnector
- java.lang.Object
-
- com.vaadin.client.ui.AbstractConnector
-
- com.vaadin.client.extensions.AbstractExtensionConnector
-
- com.vaadin.client.connectors.grid.EditorConnector
-
All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler, StateChangeEvent.StateChangeHandler, ServerConnector, Connector, Serializable
public class EditorConnector extends AbstractExtensionConnector
Connector for Grid Editor.
Since:
8.0
Author:
Vaadin Ltd
See Also:
-
-
Constructor Summary
Constructors Constructor and Description EditorConnector()
-
Method Summary
All Methods Modifier and Type Method and Description protected void
extend(ServerConnector target)
Called when the extension is attached to its parent.
GridConnector
getParent()
Returns the parent of this connector.
protected static String
getRowKey(elemental.json.JsonObject row)
Returns the key of the given data row.
EditorState
getState()
Returns the shared state object for this connector.
-
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, getResourceUrl, getRpcImplementations, getRpcProxy, getStateType, getTag, hasEventListener, init, isEnabled, onStateChanged, onUnregister, registerRpc, removeStateChangeHandler, removeStateChangeHandler, setChildren, setTag, unregisterRpc, updateEnabledState
-
-
-
-
Method Detail
-
extend
protected void extend(ServerConnector target)
Description copied from class:
AbstractExtensionConnector
Called when the extension is attached to its parent. This method is only called once as an extension cannot be moved from one parent to another.
Specified by:
extend
in classAbstractExtensionConnector
Parameters:
target
- The connector this extension extends
-
getParent
public GridConnector getParent()
Description copied from interface:
ServerConnector
Returns the parent of this connector. Can be null for only the root connector.
Specified by:
getParent
in interfaceServerConnector
Specified by:
getParent
in interfaceConnector
Overrides:
getParent
in classAbstractConnector
Returns:
The parent of this connector, as set by
ServerConnector.setParent(ServerConnector)
.
-
getState
public EditorState getState()
Description copied from class:
AbstractConnector
Returns the shared state object for this connector. Override this method to define the shared state type for your connector.
Specified by:
getState
in interfaceServerConnector
Overrides:
getState
in classAbstractConnector
Returns:
the current shared state (never null)
-
getRowKey
protected static String getRowKey(elemental.json.JsonObject row)
Returns the key of the given data row.
Parameters:
row
- the rowReturns:
the row key
-
-