Package com.vaadin.v7.ui
Class Grid.CommitErrorEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.event.ConnectorEvent
-
- com.vaadin.ui.Component.Event
-
- com.vaadin.v7.ui.Grid.CommitErrorEvent
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Grid
@Deprecated public static class Grid.CommitErrorEvent extends Component.Event
Deprecated.An event which is fired when saving the editor fails.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description CommitErrorEvent(Grid grid, FieldGroup.CommitException cause)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddErrorColumn(Grid.Column column)Deprecated.Marks that an error indicator should be shown for the editor of a column.FieldGroup.CommitExceptiongetCause()Deprecated.Retrieves the cause of the failure.GridgetComponent()Deprecated.Collection<Grid.Column>getErrorColumns()Deprecated.Gets all the columns that have been marked as erroneous.StringgetUserErrorMessage()Deprecated.Gets the error message to show to the user.booleanisValidationFailure()Deprecated.Checks if validation exceptions caused this error.voidsetUserErrorMessage(String userErrorMessage)Deprecated.Sets the error message to show to the user.-
Methods inherited from class com.vaadin.event.ConnectorEvent
getConnector
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
CommitErrorEvent
public CommitErrorEvent(Grid grid, FieldGroup.CommitException cause)
Deprecated.
-
-
Method Detail
-
getCause
public FieldGroup.CommitException getCause()
Deprecated.Retrieves the cause of the failure.- Returns:
- the cause of the failure
-
getComponent
public Grid getComponent()
Deprecated.- Overrides:
getComponentin classComponent.Event
-
isValidationFailure
public boolean isValidationFailure()
Deprecated.Checks if validation exceptions caused this error.- Returns:
- true if the problem was caused by a validation error
-
addErrorColumn
public void addErrorColumn(Grid.Column column)
Deprecated.Marks that an error indicator should be shown for the editor of a column.- Parameters:
column- the column to show an error for
-
getErrorColumns
public Collection<Grid.Column> getErrorColumns()
Deprecated.Gets all the columns that have been marked as erroneous.- Returns:
- an umodifiable collection of erroneous columns
-
getUserErrorMessage
public String getUserErrorMessage()
Deprecated.Gets the error message to show to the user.- Returns:
- error message to show
-
setUserErrorMessage
public void setUserErrorMessage(String userErrorMessage)
Deprecated.Sets the error message to show to the user.- Parameters:
userErrorMessage- the user error message to set
-
-