|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
com.vaadin.event.ConnectorEvent
com.vaadin.ui.Component.Event
com.vaadin.ui.Grid.CommitErrorEvent
public static class Grid.CommitErrorEvent
An event which is fired when saving the editor fails
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
Grid.CommitErrorEvent(Grid grid,
FieldGroup.CommitException cause)
|
Method Summary | |
---|---|
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. |
java.util.Collection<Grid.Column> |
getErrorColumns()
Gets all the columns that have been marked as erroneous. |
java.lang.String |
getUserErrorMessage()
Gets the error message to show to the user. |
boolean |
isValidationFailure()
Checks if validation exceptions caused this error |
void |
setUserErrorMessage(java.lang.String userErrorMessage)
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Grid.CommitErrorEvent(Grid grid, FieldGroup.CommitException cause)
Method Detail |
---|
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 java.util.Collection<Grid.Column> getErrorColumns()
public java.lang.String getUserErrorMessage()
public void setUserErrorMessage(java.lang.String userErrorMessage)
userErrorMessage
- the user error message to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |