|
|||||||||
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,
java.lang.Object oldValue,
java.lang.Object newValue)
Construct a new event object from the specified source component, old value, and new value. |
Method Summary | |
---|---|
java.lang.Object |
getNewValue()
Return the current local value of the source UIComponent . |
java.lang.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, java.lang.Object oldValue, java.lang.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 java.lang.Object getOldValue()
Return the previous local value of the source UIComponent
.
public java.lang.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 © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 10-February-2011 12:41