Package 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:
Serializable
- Enclosing interface:
- Component
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:
- Serialized Form
-
-
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 Instance Methods Concrete Methods Modifier and Type Method Description ErrorMessagegetErrorMessage()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.
-
-