We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.ui.
Class Component.ErrorEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.event.ConnectorEvent
-
- com.vaadin.ui.Component.Event
-
- com.vaadin.ui.Component.ErrorEvent
-
All Implemented Interfaces:
Enclosing interface:
public static class Component.ErrorEvent extends Component.Event
Class of all component originated error events.
The component error event is normally fired by
AbstractComponent.setComponentError(ErrorMessage)
. The component errors are set by the framework in some situations and can be set by user code. They are indicated in a component with an error indicator.See Also:
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description ErrorEvent​(ErrorMessage message, Component component)
Constructs a new event with a specified source component.
-
Method Summary
All Methods Modifier and Type Method Description ErrorMessage
getErrorMessage()
Gets the error message.
-
Methods inherited from class com.vaadin.ui.Component.Event
getComponent
-
Methods inherited from class com.vaadin.event.ConnectorEvent
getConnector
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
ErrorEvent
public ErrorEvent​(ErrorMessage message, Component component)
Constructs a new event with a specified source component.
Parameters:
message
- the error message.component
- the source component.
-
-
Method Detail
-
getErrorMessage
public ErrorMessage getErrorMessage()
Gets the error message.
Returns:
the error message.
-
-