|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject javax.faces.event.FacesEvent javax.faces.event.ValueChangeEvent
public class ValueChangeEvent
A ValueChangeEvent
is a notification that the local value of
the source component has been change as a result of user interface
activity. It is not fired unless validation of the new value was
completed successfully.
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
ValueChangeEvent(UIComponent component,
Object oldValue,
Object newValue)
Construct a new event object from the specified source component, old value, and new value. |
Method Summary | |
---|---|
Object |
getNewValue()
Return the current local value of the source UIComponent . |
Object |
getOldValue()
Return the previous local value of the source UIComponent . |
boolean |
isAppropriateListener(FacesListener listener)
Return true if this FacesListener is an instance
of a listener class that this event supports. |
void |
processListener(FacesListener listener)
Broadcast this FacesEvent to the specified
FacesListener , by whatever mechanism is appropriate. |
Methods inherited from class javax.faces.event.FacesEvent |
---|
getComponent, getPhaseId, queue, setPhaseId |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ValueChangeEvent(UIComponent component, Object oldValue, Object newValue)
Construct a new event object from the specified source component, old value, and new value.
The default PhaseId
for this event is PhaseId.ANY_PHASE
.
component
- Source UIComponent
for this eventoldValue
- The previous local value of this UIComponent
newValue
- The new local value of thie UIComponent
IllegalArgumentException
- if component
is
null
Method Detail |
---|
public Object getOldValue()
Return the previous local value of the source UIComponent
.
public Object getNewValue()
Return the current local value of the source UIComponent
.
public boolean isAppropriateListener(FacesListener listener)
FacesEvent
Return true
if this FacesListener
is an instance
of a listener class that this event supports. Typically, this will be
accomplished by an "instanceof" check on the listener class.
isAppropriateListener
in class FacesEvent
listener
- FacesListener
to evaluatepublic void processListener(FacesListener listener)
FacesEvent
Broadcast this FacesEvent
to the specified
FacesListener
, by whatever mechanism is appropriate. Typically,
this will be accomplished by calling an event processing method, and
passing this FacesEvent
as a paramter.
processListener
in class FacesEvent
listener
- FacesListener
to send this FacesEvent
to
AbortProcessingException
- Signal the JavaServer Faces
implementation that no further processing on the current event
should be performed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.