com.vaadin.ui
Class Component.ErrorEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.vaadin.ui.Component.Event
          extended by 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
Component.ErrorEvent(ErrorMessage message, Component component)
          Constructs a new event with a specified source component.
 
Method Summary
 ErrorMessage getErrorMessage()
          Gets the error message.
 
Methods inherited from class com.vaadin.ui.Component.Event
getComponent
 
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

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.
Method Detail

getErrorMessage

public ErrorMessage getErrorMessage()
Gets the error message.

Returns:
the error message.


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.