public static class Grid.CommitErrorEvent extends Component.Event
source
Constructor and Description |
---|
CommitErrorEvent(Grid grid,
FieldGroup.CommitException cause) |
Modifier and Type | Method and Description |
---|---|
void |
addErrorColumn(Grid.Column column)
Marks that an error indicator should be shown for the editor of a
column.
|
FieldGroup.CommitException |
getCause()
Retrieves the cause of the failure
|
Grid |
getComponent()
Gets the component where the event occurred.
|
Collection<Grid.Column> |
getErrorColumns()
Gets all the columns that have been marked as erroneous.
|
String |
getUserErrorMessage()
Gets the error message to show to the user.
|
boolean |
isValidationFailure()
Checks if validation exceptions caused this error
|
void |
setUserErrorMessage(String userErrorMessage)
Sets the error message to show to the user.
|
getConnector
getSource, toString
public CommitErrorEvent(Grid grid, FieldGroup.CommitException cause)
public FieldGroup.CommitException getCause()
public Grid getComponent()
Component.Event
getComponent
in class Component.Event
public boolean isValidationFailure()
public void addErrorColumn(Grid.Column column)
column
- the column to show an error forpublic Collection<Grid.Column> getErrorColumns()
public String getUserErrorMessage()
public void setUserErrorMessage(String userErrorMessage)
userErrorMessage
- the user error message to setCopyright © 2019 Vaadin Ltd. All rights reserved.