Package javax.faces.event
Class ComponentSystemEvent
- java.lang.Object
-
- java.util.EventObject
-
- javax.faces.event.SystemEvent
-
- javax.faces.event.ComponentSystemEvent
-
- Direct Known Subclasses:
PostAddToViewEvent
,PostConstructViewMapEvent
,PostRenderViewEvent
,PostRestoreStateEvent
,PostValidateEvent
,PreDestroyViewMapEvent
,PreRemoveFromViewEvent
,PreRenderComponentEvent
,PreRenderViewEvent
,PreValidateEvent
public abstract class ComponentSystemEvent extends SystemEvent
ComponentSystemEvent is the base class for
SystemEvent
s that are specific to aUIComponent
instance.- Since:
- 2.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ComponentSystemEvent(UIComponent component)
Pass the argumentcomponent
to the superclass constructor.ComponentSystemEvent(FacesContext facesContext, UIComponent component)
Pass the argumentcomponent
to the superclass constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UIComponent
getComponent()
the sourceUIComponent
that sent this event.boolean
isAppropriateListener(FacesListener listener)
Returntrue
if the argumentFacesListener
is an instance of the appropriate listener class that this event supports.void
processListener(FacesListener listener)
Broadcast this event instance to the specifiedFacesListener
by calling the superclass'sprocessListener()
implementation.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class javax.faces.event.SystemEvent
getFacesContext
-
-
-
-
Constructor Detail
-
ComponentSystemEvent
public ComponentSystemEvent(UIComponent component)
Pass the argument
component
to the superclass constructor.- Parameters:
component
- theUIComponent
reference to be passed to the superclass constructor.- Throws:
java.lang.IllegalArgumentException
- if the argument isnull
.- Since:
- 2.0
-
ComponentSystemEvent
public ComponentSystemEvent(FacesContext facesContext, UIComponent component)
Pass the argument
component
to the superclass constructor.- Parameters:
facesContext
- the Faces context.component
- theUIComponent
reference to be passed to the superclass constructor.- Throws:
java.lang.IllegalArgumentException
- if the argument isnull
.- Since:
- 2.0
-
-
Method Detail
-
isAppropriateListener
public boolean isAppropriateListener(FacesListener listener)
Return
true
if the argumentFacesListener
is an instance of the appropriate listener class that this event supports. The default implementation returns true if the listener is aComponentSystemEventListener
or ifsuper.isAppropriateListener()
returns true.- Overrides:
isAppropriateListener
in classSystemEvent
- Parameters:
listener
-FacesListener
to evaluate- Returns:
- the result as specified above
- Since:
- 2.2
-
processListener
public void processListener(FacesListener listener)
Broadcast this event instance to the specified
FacesListener
by calling the superclass'sprocessListener()
implementation.- Overrides:
processListener
in classSystemEvent
- Parameters:
listener
-FacesListener
to evaluate- Since:
- 2.2
-
getComponent
public UIComponent getComponent()
the source
UIComponent
that sent this event.- Returns:
- the component for this event
- Since:
- 2.0
-
-