private abstract class StateContext.AddRemoveListener
extends java.lang.Object
implements javax.faces.event.SystemEventListener
Modifier and Type | Field and Description |
---|---|
private StateContext |
stateCtx
Stores the state context we work for,
|
Modifier | Constructor and Description |
---|---|
protected |
AddRemoveListener(javax.faces.context.FacesContext context)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract java.util.List<ComponentStruct> |
getDynamicActions()
Get the list of adds/removes.
|
abstract java.util.HashMap<java.lang.String,javax.faces.component.UIComponent> |
getDynamicComponents()
Get the hash map of dynamic components.
|
protected abstract void |
handleAdd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Handle the add.
|
protected abstract void |
handleRemove(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Handle the remove.
|
boolean |
isListenerForSource(java.lang.Object source)
Are we listening for these particular changes.
|
void |
processEvent(javax.faces.event.SystemEvent event)
Process the add/remove event.
|
private StateContext stateCtx
protected AddRemoveListener(javax.faces.context.FacesContext context)
context
- the Faces context.public abstract java.util.List<ComponentStruct> getDynamicActions()
public abstract java.util.HashMap<java.lang.String,javax.faces.component.UIComponent> getDynamicComponents()
public void processEvent(javax.faces.event.SystemEvent event) throws javax.faces.event.AbortProcessingException
processEvent
in interface javax.faces.event.SystemEventListener
event
- the add/remove event.javax.faces.event.AbortProcessingException
- when processing should be aborted.public boolean isListenerForSource(java.lang.Object source)
Note we are only interested in UIComponent adds/removes that are not the UIViewRoot itself.
isListenerForSource
in interface javax.faces.event.SystemEventListener
source
- the source object we might be listening for.protected abstract void handleRemove(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
context
- the Faces context.component
- the UI component to add to the list as a REMOVE.protected abstract void handleAdd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
context
- the Faces context.component
- the UI component to add to the list as an ADD.Copyright © 2002-2013 Oracle America, Inc. All Rights Reserved.