public abstract class ComponentSystemEvent extends SystemEvent
ComponentSystemEvent is
the base class for SystemEvent
s that are specific to a UIComponent
instance.
source
Constructor and Description |
---|
ComponentSystemEvent(FacesContext facesContext,
UIComponent component)
Pass the argument
|
ComponentSystemEvent(UIComponent component)
Pass the argument
|
Modifier and Type | Method and Description |
---|---|
UIComponent |
getComponent()
the source |
boolean |
isAppropriateListener(FacesListener listener)
Return |
void |
processListener(FacesListener listener)
Broadcast this event instance to
the specified |
getFacesContext
getSource, toString
public ComponentSystemEvent(UIComponent component)
Pass the argument
component
to the superclass constructor.
component
- the UIComponent
reference to be
passed to the superclass constructor.IllegalArgumentException
- if the argument is null
.public ComponentSystemEvent(FacesContext facesContext, UIComponent component)
Pass the argument
component
to the superclass constructor.
facesContext
- the Faces context.component
- the UIComponent
reference to be
passed to the superclass constructor.IllegalArgumentException
- if the argument is null
.public boolean isAppropriateListener(FacesListener listener)
Return true
if the argument
FacesListener
is an instance of the appropriate listener class that this event
supports. The default implementation returns true if the listener
is a ComponentSystemEventListener
or if super.isAppropriateListener()
returns true.
isAppropriateListener
in class SystemEvent
listener
- FacesListener
to evaluatepublic void processListener(FacesListener listener)
Broadcast this event instance to
the specified FacesListener
by calling the superclass's
processListener()
implementation.
processListener
in class SystemEvent
listener
- FacesListener
to evaluatepublic UIComponent getComponent()
the source UIComponent
that sent this event.
Copyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.