org.apache.cocoon.forms.event
Class DeferredValueChangedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.apache.cocoon.forms.event.WidgetEvent
          extended by org.apache.cocoon.forms.event.ValueChangedEvent
              extended by org.apache.cocoon.forms.event.DeferredValueChangedEvent
All Implemented Interfaces:
Serializable

public class DeferredValueChangedEvent
extends ValueChangedEvent

A ValueChangedEvent that defers getting the new value from the widget until it's actually requested.

This allows widget validity to be checked only if a listener actually uses the value, thus avoiding unnecessary validation warnings when a user clicks an action.

Version:
$Id: DeferredValueChangedEvent.html 1304258 2012-03-23 10:09:27Z ilgrosso $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DeferredValueChangedEvent(Widget source, Object oldValue)
           
 
Method Summary
 Object getNewValue()
           
 
Methods inherited from class org.apache.cocoon.forms.event.ValueChangedEvent
getOldValue
 
Methods inherited from class org.apache.cocoon.forms.event.WidgetEvent
getSourceWidget
 
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

DeferredValueChangedEvent

public DeferredValueChangedEvent(Widget source,
                                 Object oldValue)
Method Detail

getNewValue

public Object getNewValue()
Overrides:
getNewValue in class ValueChangedEvent


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.