Package javax.faces.event
Class ComponentSystemEvent
java.lang.Object
java.util.EventObject
javax.faces.event.SystemEvent
javax.faces.event.ComponentSystemEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PostAddToViewEvent,PostConstructViewMapEvent,PostRestoreStateEvent,PostValidateEvent,PreDestroyViewMapEvent,PreRemoveFromViewEvent,PreRenderComponentEvent,PreRenderViewEvent,PreValidateEvent
ComponentSystemEvent is
the base class for SystemEvents that are specific to a UIComponent instance.
- Since:
- 2.0
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionComponentSystemEvent(UIComponent component) Pass the argumentcomponentto the superclass constructor. -
Method Summary
Modifier and TypeMethodDescriptionthe sourceUIComponentthat sent this event.booleanisAppropriateListener(FacesListener listener) Returntrueif the argumentFacesListeneris an instance of the appropriate listener class that this event supports.voidprocessListener(FacesListener listener) Broadcast this event instance to the specifiedFacesListenerby calling the superclass'sprocessListener()implementation.Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
ComponentSystemEvent
Pass the argument
componentto the superclass constructor.- Parameters:
component- theUIComponentreference to be passed to the superclass constructor.- Since:
- 2.0
-
-
Method Details
-
isAppropriateListener
Return
trueif the argumentFacesListeneris an instance of the appropriate listener class that this event supports. The default implementation returns true if the listener is aComponentSystemEventListeneror ifsuper.isAppropriateListener()returns true.- Overrides:
isAppropriateListenerin classSystemEvent- Parameters:
listener-FacesListenerto evaluate- Since:
- 2.2
-
processListener
Broadcast this event instance to the specified
FacesListenerby calling the superclass'sprocessListener()implementation.- Overrides:
processListenerin classSystemEvent- Parameters:
listener-FacesListenerto evaluate- Since:
- 2.2
-
getComponent
the source
UIComponentthat sent this event.- Since:
- 2.0
-