Class PreRemoveFromViewEvent
- java.lang.Object
-
- java.util.EventObject
-
- javax.faces.event.SystemEvent
-
- javax.faces.event.ComponentSystemEvent
-
- javax.faces.event.PreRemoveFromViewEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class PreRemoveFromViewEvent extends ComponentSystemEvent
When an instance of this event is passed to
SystemEventListener.processEvent(javax.faces.event.SystemEvent)orComponentSystemEventListener.processEvent(javax.faces.event.ComponentSystemEvent), the listener implementation may assume that thesourceof this event instance is aUIComponentinstance that is about to be removed from the view. Therefore, the implementation may assume it is safe to callUIComponent.getParent(),UIComponent.getClientId(), and other methods that depend upon the component instance being added into the view.- Since:
- 2.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PreRemoveFromViewEvent(UIComponent component)Instantiate a newBeforeRemoveFromViewthat indicates the argumentcomponentis about to be removed from the view.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAppropriateListener(FacesListener listener)-
Methods inherited from class javax.faces.event.ComponentSystemEvent
getComponent, processListener
-
-
-
-
Constructor Detail
-
PreRemoveFromViewEvent
public PreRemoveFromViewEvent(UIComponent component)
Instantiate a new
BeforeRemoveFromViewthat indicates the argumentcomponentis about to be removed from the view.- Parameters:
component- theUIComponentthat is about to be removed from the view.- Throws:
java.lang.IllegalArgumentException- ifcomponentisnull
-
-
Method Detail
-
isAppropriateListener
public boolean isAppropriateListener(FacesListener listener)
Returns
trueif and only if the argumentlisteneris an instance ofSystemEventListener.- Overrides:
isAppropriateListenerin classComponentSystemEvent- Parameters:
listener-
-
-