public class CubaEditorImpl<T>
extends com.vaadin.ui.components.grid.EditorImpl<T>
com.vaadin.server.AbstractClientConnector.IncorrectConcurrentAccessHandler
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
Constructor and Description |
---|
CubaEditorImpl(com.vaadin.data.PropertySet<T> propertySet)
Constructor for internal implementation of the Editor.
|
Modifier and Type | Method and Description |
---|---|
com.vaadin.shared.Registration |
addBeforeSaveListener(CubaEditorBeforeSaveListener<T> listener) |
protected void |
commitFields() |
protected void |
configureField(CubaEditorField<?> field) |
protected void |
doEdit(T bean) |
protected java.lang.String |
generateErrorMessage(java.util.Map<com.vaadin.ui.Component,com.vaadin.ui.Grid.Column<T,?>> fieldToColumn,
java.util.Map<com.vaadin.ui.Component,com.vaadin.data.ValidationResult> errors) |
T |
getBean() |
protected CubaEnhancedGrid<T> |
getEnhancedGrid() |
protected java.util.Map<com.vaadin.ui.Component,com.vaadin.data.ValidationResult> |
getValidationErrors() |
protected void |
handleValidation(java.util.Map<com.vaadin.ui.Component,com.vaadin.data.ValidationResult> errors) |
protected boolean |
isEditorFieldsValid() |
protected void |
onFieldValueChange(com.vaadin.data.HasValue.ValueChangeEvent<?> ignored) |
boolean |
save() |
addCancelListener, addOpenListener, addSaveListener, cancel, doCancel, doClose, editRow, generateData, getBinder, getCancelCaption, getErrorGenerator, getGrid, getSaveCaption, getState, getState, isBuffered, isEnabled, isOpen, setBinder, setBuffered, setCancelCaption, setEnabled, setErrorGenerator, setSaveCaption
addComponentToGrid, extend, getInternalIdForColumn, getParent, removeComponentFromGrid
getData, refresh, remove
extend, getSupportedParentType, setParent
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, attach, beforeClientResponse, createState, detach, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getIncorrectConcurrentAccessHandler, 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, setConnectorResource, setErrorHandler, setIncorrectConcurrentAccessHandler, setResource, updateDiffstate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
destroyAllData, destroyData, refreshData
addAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
public CubaEditorImpl(com.vaadin.data.PropertySet<T> propertySet)
propertySet
- the property set to use for configuring the default binderprotected CubaEnhancedGrid<T> getEnhancedGrid()
public T getBean()
protected void doEdit(T bean)
doEdit
in class com.vaadin.ui.components.grid.EditorImpl<T>
protected void configureField(CubaEditorField<?> field)
protected void onFieldValueChange(com.vaadin.data.HasValue.ValueChangeEvent<?> ignored)
public boolean save()
protected boolean isEditorFieldsValid()
protected void handleValidation(java.util.Map<com.vaadin.ui.Component,com.vaadin.data.ValidationResult> errors)
protected java.lang.String generateErrorMessage(java.util.Map<com.vaadin.ui.Component,com.vaadin.ui.Grid.Column<T,?>> fieldToColumn, java.util.Map<com.vaadin.ui.Component,com.vaadin.data.ValidationResult> errors)
protected java.util.Map<com.vaadin.ui.Component,com.vaadin.data.ValidationResult> getValidationErrors()
protected void commitFields()
public com.vaadin.shared.Registration addBeforeSaveListener(CubaEditorBeforeSaveListener<T> listener)