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 Details

    • NoopAddRemoveListener

      public NoopAddRemoveListener(FacesContext context)
  • Method Details

    • 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.
    • processEvent

      public void processEvent(SystemEvent event) throws AbortProcessingException
      Process the add/remove event.
      Specified by:
      processEvent in interface SystemEventListener
      Parameters:
      event - the add/remove event.
      Throws:
      AbortProcessingException - when processing should be aborted.
    • isListenerForSource

      public boolean isListenerForSource(Object source)
      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 interface SystemEventListener
      Parameters:
      source - the source object we might be listening for.
      Returns:
      true if the source is OK, false otherwise.