javax.faces.event
Class ValueChangedEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byjavax.faces.event.FacesEvent
          extended byjavax.faces.event.ValueChangedEvent
All Implemented Interfaces:
java.io.Serializable

public class ValueChangedEvent
extends FacesEvent

A ValueChangedEvent is a notification that the local value of the source component has been changed as a result of user interface activity. It is not fired unless validation of the new value was completed successfully.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ValueChangedEvent(UIComponent component, java.lang.Object oldValue, java.lang.Object newValue)
          Construct a new event object from the specified source component, old value, and new value.
 
Method Summary
 java.lang.Object getNewValue()
          Return the current local value of the source UIComponent.
 java.lang.Object getOldValue()
          Return the previous local value of the source UIComponent.
 
Methods inherited from class javax.faces.event.FacesEvent
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

ValueChangedEvent

public ValueChangedEvent(UIComponent component,
                         java.lang.Object oldValue,
                         java.lang.Object newValue)

Construct a new event object from the specified source component, old value, and new value.

Parameters:
component - Source UIComponent for this event
oldValue - The previous local value of this UIComponent
newValue - The new local value of thie UIComponent
Throws:
java.lang.IllegalArgumentException - if component is null
Method Detail

getOldValue

public java.lang.Object getOldValue()

Return the previous local value of the source UIComponent.


getNewValue

public java.lang.Object getNewValue()

Return the current local value of the source UIComponent.