public interface EditorClientRpc extends ClientRpc
| Modifier and Type | Method and Description |
|---|---|
void |
bind(int rowIndex)
Tells the client to open the editor and bind data to it.
|
void |
cancel()
Tells the client to cancel editing and hide the editor.
|
void |
confirmBind(boolean bindSucceeded)
Confirms a pending
bind request sent
by the client. |
void |
confirmSave(boolean saveSucceeded)
Confirms a pending
save request sent by
the client. |
void |
confirmValidity(boolean isValid)
Confirms whether the binder's validation has passed so as to determine
whether to allow the pending navigation action.
|
void |
setErrorMessage(String errorMessage,
List<String> errorColumnsIds)
Sets the displayed error messages for editor.
|
void bind(int rowIndex)
rowIndex - the index of the edited rowvoid cancel()
void confirmBind(boolean bindSucceeded)
bind request sent
by the client.bindSucceeded - true if and only if the bind action was successfulvoid confirmSave(boolean saveSucceeded)
save request sent by
the client.saveSucceeded - true if and only if the save action was successfulvoid setErrorMessage(String errorMessage, List<String> errorColumnsIds)
errorMessage - the error message to show the user; null to clearerrorColumnsIds - a list of column ids that should get error markers; empty list
to clearvoid confirmValidity(boolean isValid)
isValid - true if the binder value is validCopyright © 2021 Vaadin Ltd. All rights reserved.