org.apache.myfaces.custom.valueChangeNotifier
Class ValueChangeCollector

java.lang.Object
  extended by org.apache.myfaces.custom.valueChangeNotifier.ValueChangeCollector
All Implemented Interfaces:
java.util.EventListener, javax.faces.component.StateHolder, javax.faces.event.FacesListener, javax.faces.event.ValueChangeListener

public class ValueChangeCollector
extends java.lang.Object
implements javax.faces.event.ValueChangeListener, javax.faces.component.StateHolder

receives valueChange events and pass them to the manager

Version:
$Revision$ $Date$
Author:
Mario Ivankovits (latest modification by $Author$)

Constructor Summary
  ValueChangeCollector()
           
protected ValueChangeCollector(java.lang.String method)
           
 
Method Summary
protected  void collectStates(java.util.List restoreStateCommands, javax.faces.component.UIComponent component)
           
 boolean isTransient()
           
 void processValueChange(javax.faces.event.ValueChangeEvent event)
          This it the valueChange sink
The received event will be cloned and collected by the manager.
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setTransient(boolean isTransient)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueChangeCollector

public ValueChangeCollector()

ValueChangeCollector

protected ValueChangeCollector(java.lang.String method)
Method Detail

processValueChange

public void processValueChange(javax.faces.event.ValueChangeEvent event)
                        throws javax.faces.event.AbortProcessingException
This it the valueChange sink
The received event will be cloned and collected by the manager.

Specified by:
processValueChange in interface javax.faces.event.ValueChangeListener
Throws:
javax.faces.event.AbortProcessingException

collectStates

protected void collectStates(java.util.List restoreStateCommands,
                             javax.faces.component.UIComponent component)

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface javax.faces.component.StateHolder

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder

isTransient

public boolean isTransient()
Specified by:
isTransient in interface javax.faces.component.StateHolder

setTransient

public void setTransient(boolean isTransient)
Specified by:
setTransient in interface javax.faces.component.StateHolder


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.