Package com.sun.faces.context
Class StateContext.NoopAddRemoveListener
java.lang.Object
com.sun.faces.context.StateContext.NoopAddRemoveListener
- All Implemented Interfaces:
FacesListener
,SystemEventListener
,EventListener
- Direct Known Subclasses:
StateContext.StatelessAddRemoveListener
- Enclosing class:
- StateContext
public class StateContext.NoopAddRemoveListener extends Object
-
Constructor Summary
Constructors Constructor Description NoopAddRemoveListener(FacesContext context)
-
Method Summary
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 void
handleAdd(FacesContext context, UIComponent component)
Handle the add.protected void
handleRemove(FacesContext context, UIComponent component)
Handle the remove.boolean
isListenerForSource(Object source)
Are we listening for these particular changes.void
processEvent(SystemEvent event)
Process the add/remove event.
-
Constructor Details
-
Method Details
-
getDynamicActions
Get the list of adds/removes.- Returns:
- the list of adds/removes.
-
getDynamicComponents
Get the hash map of dynamic components.- Returns:
- the hash map of dynamic components.
-
handleRemove
Handle the remove.- Parameters:
context
- the Faces context.component
- the UI component to add to the list as a REMOVE.
-
handleAdd
Handle the add.- Parameters:
context
- the Faces context.component
- the UI component to add to the list as an ADD.
-
processEvent
Process the add/remove event.- Specified by:
processEvent
in interfaceSystemEventListener
- Parameters:
event
- the add/remove event.- Throws:
AbortProcessingException
- when processing should be aborted.
-
isListenerForSource
Are we listening for these particular changes.Note we are only interested in UIComponent adds/removes that are not the UIViewRoot itself.
- Specified by:
isListenerForSource
in interfaceSystemEventListener
- Parameters:
source
- the source object we might be listening for.- Returns:
- true if the source is OK, false otherwise.
-