Package com.sun.faces.context
Class StateContext.DynamicAddRemoveListener
- java.lang.Object
-
- com.sun.faces.context.StateContext.DynamicAddRemoveListener
-
- All Implemented Interfaces:
FacesListener,SystemEventListener,EventListener
- Enclosing class:
- StateContext
public class StateContext.DynamicAddRemoveListener extends Object
A system event listener which is used to listen for changes on the component tree after restore view and before rendering out the view.
-
-
Constructor Summary
Constructors Constructor Description DynamicAddRemoveListener(FacesContext context)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ComponentStruct>getDynamicActions()Get the list of adds/removes.HashMap<String,UIComponent>getDynamicComponents()Get the hash map of dynamic components.protected voidhandleAdd(FacesContext context, UIComponent component)Handle the add.protected voidhandleRemove(FacesContext context, UIComponent component)Handle the remove.
-
-
-
Constructor Detail
-
DynamicAddRemoveListener
public DynamicAddRemoveListener(FacesContext context)
Constructor.- Parameters:
context- the Faces context.
-
-
Method Detail
-
getDynamicActions
public List<ComponentStruct> getDynamicActions()
Get the list of adds/removes.- Returns:
- the list of adds/removes.
-
getDynamicComponents
public HashMap<String,UIComponent> getDynamicComponents()
Get the hash map of dynamic components.- Returns:
- the hash map of dynamic components.
-
handleRemove
protected void handleRemove(FacesContext context, UIComponent component)
Handle the remove.- Parameters:
context- the Faces context.component- the UI component to add to the list as a REMOVE.
-
handleAdd
protected void handleAdd(FacesContext context, UIComponent component)
Handle the add.- Parameters:
context- the Faces context.component- the UI component to add to the list as an ADD.
-
-