org.apache.myfaces.custom.valueChangeNotifier
Class ValueChangeManager

java.lang.Object
  extended by org.apache.myfaces.custom.valueChangeNotifier.ValueChangeManager

public final class ValueChangeManager
extends java.lang.Object

Manage valueChange events to be fired after the UPDATE_MODEL phase.

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

Field Summary
static java.lang.Class[] SIGNATURE
           
 
Method Summary
 void addEvent(java.lang.String method, javax.faces.event.ValueChangeEvent event, java.util.List restoreStateCommands)
          add a new event
 void fireEvents(javax.faces.context.FacesContext context)
          walk through list and fire collected events
static ValueChangeManager getManager(javax.faces.context.FacesContext context)
          get the manager for this request.
static boolean hasManager(javax.faces.context.FacesContext context)
          check if the current request has a manager.
The current request has a manager if, and only if it collected valueChange events
protected  void restoreCurrentStates(java.util.List restoreStateCommands)
           
protected  void restoreEventStates(java.util.List restoreStateCommands)
           
protected  void saveCurrentStates(java.util.List restoreStateCommands)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIGNATURE

public static final java.lang.Class[] SIGNATURE
Method Detail

addEvent

public void addEvent(java.lang.String method,
                     javax.faces.event.ValueChangeEvent event,
                     java.util.List restoreStateCommands)
add a new event


fireEvents

public void fireEvents(javax.faces.context.FacesContext context)
walk through list and fire collected events


saveCurrentStates

protected void saveCurrentStates(java.util.List restoreStateCommands)

restoreCurrentStates

protected void restoreCurrentStates(java.util.List restoreStateCommands)

restoreEventStates

protected void restoreEventStates(java.util.List restoreStateCommands)

hasManager

public static boolean hasManager(javax.faces.context.FacesContext context)
check if the current request has a manager.
The current request has a manager if, and only if it collected valueChange events


getManager

public static ValueChangeManager getManager(javax.faces.context.FacesContext context)
get the manager for this request. Create one if needed.



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