org.apache.myfaces.trinidad.event
Class SetActionListener
java.lang.Object
org.apache.myfaces.trinidad.event.SetActionListener
- All Implemented Interfaces:
- java.util.EventListener, javax.faces.component.StateHolder, javax.faces.event.ActionListener, javax.faces.event.FacesListener
public class SetActionListener
- extends java.lang.Object
- implements javax.faces.event.ActionListener, javax.faces.component.StateHolder
ActionListener that supports getting a value from
one binding and setting it on another.
Method Summary |
java.lang.Object |
getFrom()
|
javax.faces.el.ValueBinding |
getValueBinding(java.lang.String name)
|
boolean |
isTransient()
|
void |
processAction(javax.faces.event.ActionEvent event)
Gets the value from the "from" property and sets it on
the ValueBinding for the "to" property |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setFrom(java.lang.Object from)
|
void |
setTransient(boolean newTransientValue)
|
void |
setValueBinding(java.lang.String name,
javax.faces.el.ValueBinding binding)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SetActionListener
public SetActionListener()
- Creates a SetActionListener.
processAction
public void processAction(javax.faces.event.ActionEvent event)
- Gets the value from the "from" property and sets it on
the ValueBinding for the "to" property
- Specified by:
processAction
in interface javax.faces.event.ActionListener
getValueBinding
public javax.faces.el.ValueBinding getValueBinding(java.lang.String name)
setValueBinding
public void setValueBinding(java.lang.String name,
javax.faces.el.ValueBinding binding)
getFrom
public java.lang.Object getFrom()
setFrom
public void setFrom(java.lang.Object from)
saveState
public java.lang.Object saveState(javax.faces.context.FacesContext context)
- Specified by:
saveState
in interface javax.faces.component.StateHolder
restoreState
public void restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
- Specified by:
restoreState
in interface javax.faces.component.StateHolder
isTransient
public boolean isTransient()
- Specified by:
isTransient
in interface javax.faces.component.StateHolder
setTransient
public void setTransient(boolean newTransientValue)
- Specified by:
setTransient
in interface javax.faces.component.StateHolder
Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.