Top Description Fields Constructors Methods
javax.faces.component

pack-priv Class MethodBindingValueChangeListener

extends MethodBindingAdapterBase
implements ValueChangeListener, StateHolder
Class Inheritance
All Implemented Interfaces
javax.faces.component.StateHolder, javax.faces.event.ValueChangeListener, javax.faces.event.FacesListener, java.util.EventListener
Imports
javax.faces.context.FacesContext, javax.faces.el.EvaluationException, .MethodBinding, javax.faces.event.AbortProcessingException, .ValueChangeEvent, .ValueChangeListener

MethodBindingValueChangeListener is an ValueChangeListenerListener that wraps a MethodBinding. When it receives a ValueChangeEvent, it executes a method on an object identified by the MethodBinding.

Field Summary

Modifier and TypeField and Description
private MethodBinding
methodBinding

Deprecated as a consequence of MethodBinding being deprecated.
private boolean

Constructor Summary

AccessConstructor and Description
public
public
MethodBindingValueChangeListener(MethodBinding methodBinding)

Deprecated as a consequence of MethodBinding being deprecated.

Construct a ValueChangeListener that contains a MethodBinding.

Method Summary

Modifier and TypeMethod and Description
public MethodBinding
getWrapped()

Deprecated as a consequence of MethodBinding being deprecated.
public boolean
isTransient()

Implements javax.faces.component.StateHolder.isTransient.

If true, the Object implementing this interface must not participate in state saving or restoring.

private static Class<T>
loadClass(String name, Object fallbackClass)

public void
processValueChange(ValueChangeEvent
The ValueChangeEvent that has occurred
actionEvent
)

Implements javax.faces.event.ValueChangeListener.processValueChange.

Invoked when the value change described by the specified ValueChangeEvent occurs.

public void
restoreState(FacesContext
the Faces context.
context
,
Object
the state.
state
)

Implements javax.faces.component.StateHolder.restoreState.

Perform any processing required to restore the state from the entries in the state Object.

public Object
saveState(FacesContext
the Faces context.
context
)

Implements javax.faces.component.StateHolder.saveState.

Gets the state of the instance as a Serializable Object.

public void
setTransient(boolean
boolean pass true if this Object will not participate in state saving or restoring, otherwise pass false.
newTransientValue
)

Implements javax.faces.component.StateHolder.setTransient.

Denotes whether or not the Object implementing this interface must or must not participate in state saving or restoring.

Inherited from javax.faces.component.MethodBindingAdapterBase:
getExpectedCause

Field Detail

methodBindingback to summary
private MethodBinding methodBinding

Deprecated

as a consequence of MethodBinding being deprecated. See corresponding docs for further information.

tranzientback to summary
private boolean tranzient

Constructor Detail

MethodBindingValueChangeListenerback to summary
public MethodBindingValueChangeListener()
MethodBindingValueChangeListenerback to summary
public MethodBindingValueChangeListener(MethodBinding methodBinding)

Deprecated

as a consequence of MethodBinding being deprecated. See corresponding docs for further information.

Construct a ValueChangeListener that contains a MethodBinding.

Method Detail

getWrappedback to summary
public MethodBinding getWrapped()

Deprecated

as a consequence of MethodBinding being deprecated. See corresponding docs for further information.

isTransientback to summary
public boolean isTransient()

Implements javax.faces.component.StateHolder.isTransient.

Doc from javax.faces.component.StateHolder.isTransient.

If true, the Object implementing this interface must not participate in state saving or restoring.

Returns:boolean

true if transient, false otherwise.

Annotations
@Override
loadClassback to summary
private static Class<T> loadClass(String name, Object fallbackClass) throws ClassNotFoundException
processValueChangeback to summary
public void processValueChange(ValueChangeEvent actionEvent) throws AbortProcessingException

Implements javax.faces.event.ValueChangeListener.processValueChange.

Doc from javax.faces.event.ValueChangeListener.processValueChange.

Invoked when the value change described by the specified ValueChangeEvent occurs.

Parameters
actionEvent:ValueChangeEvent

The ValueChangeEvent that has occurred

Annotations
@Override
Exceptions
AbortProcessingException:
Signal the JavaServer Faces implementation that no further processing on the current event should be performed
NullPointerException
restoreStateback to summary
public void restoreState(FacesContext context, Object state)

Implements javax.faces.component.StateHolder.restoreState.

Doc from javax.faces.component.StateHolder.restoreState.

Perform any processing required to restore the state from the entries in the state Object.

If the class that implements this interface has references to instances that also implement StateHolder (such as a UIComponent with event handlers, validators, etc.) this method must call the restoreState method on all those instances as well.

If the state argument is null, take no action and return.

Parameters
context:FacesContext

the Faces context.

state:Object

the state.

Annotations
@Override
saveStateback to summary
public Object saveState(FacesContext context)

Implements javax.faces.component.StateHolder.saveState.

Doc from javax.faces.component.StateHolder.saveState.

Gets the state of the instance as a Serializable Object.

If the class that implements this interface has references to instances that implement StateHolder (such as a UIComponent with event handlers, validators, etc.) this method must call the saveState method on all those instances as well. This method must not save the state of children and facets. That is done via the javax.faces.application.StateManager

This method must not alter the state of the implementing object. In other words, after executing this code:


Object state = component.saveState(facesContext);

component should be the same as before executing it.

The return from this method must be Serializable

Parameters
context:FacesContext

the Faces context.

Returns:Object

the saved state.

Annotations
@Override
setTransientback to summary
public void setTransient(boolean newTransientValue)

Implements javax.faces.component.StateHolder.setTransient.

Doc from javax.faces.component.StateHolder.setTransient.

Denotes whether or not the Object implementing this interface must or must not participate in state saving or restoring.

Parameters
newTransientValue:boolean

boolean pass true if this Object will not participate in state saving or restoring, otherwise pass false.

Annotations
@Override