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:
- java.io.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
Fields inherited from class java.util.EventObject |
source |
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 |
Component.ErrorEvent
public Component.ErrorEvent(ErrorMessage message,
Component component)
- Constructs a new event with a specified source component.
- Parameters:
message
- the error message.component
- the source component.
getErrorMessage
public ErrorMessage getErrorMessage()
- Gets the error message.
- Returns:
- the error message.
Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.