org.apache.myfaces.trinidad.event
Class SetActionListener

java.lang.Object
  extended by org.apache.myfaces.trinidad.event.SetActionListener
All Implemented Interfaces:
EventListener, StateHolder, ActionListener, FacesListener

public class SetActionListener
extends Object
implements ActionListener, StateHolder

ActionListener that supports getting a value from one binding and setting it on another.


Constructor Summary
SetActionListener()
          Creates a SetActionListener.
 
Method Summary
 Object getFrom()
           
 ValueExpression getValueExpression(String name)
           
 boolean isTransient()
           
 void processAction(ActionEvent event)
          Gets the value from the "from" property and sets it on the ValueBinding for the "to" property
 void restoreState(FacesContext context, Object state)
           
 Object saveState(FacesContext context)
           
 void setFrom(Object from)
           
 void setTransient(boolean newTransientValue)
           
 void setValueExpression(String name, ValueExpression binding)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetActionListener

public SetActionListener()
Creates a SetActionListener.

Method Detail

processAction

public void processAction(ActionEvent event)
Gets the value from the "from" property and sets it on the ValueBinding for the "to" property

Specified by:
processAction in interface ActionListener

getValueExpression

public ValueExpression getValueExpression(String name)

setValueExpression

public void setValueExpression(String name,
                               ValueExpression binding)

getFrom

public Object getFrom()

setFrom

public void setFrom(Object from)

saveState

public Object saveState(FacesContext context)
Specified by:
saveState in interface StateHolder

restoreState

public void restoreState(FacesContext context,
                         Object state)
Specified by:
restoreState in interface StateHolder

isTransient

public boolean isTransient()
Specified by:
isTransient in interface StateHolder

setTransient

public void setTransient(boolean newTransientValue)
Specified by:
setTransient in interface StateHolder


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.