站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss Seam 1.1.0 bate1 API 英文版文档

ActionParamValueBinding (JBoss Seam API Documentation) - JBoss Seam 1.1.0 bate1 API 英文版文档


org.jboss.seam.actionparam
Class ActionParamValueBinding

java.lang.Object
  extended by javax.faces.el.ValueBinding
      extended by org.jboss.seam.actionparam.ActionParamValueBinding
All Implemented Interfaces:
javax.faces.component.StateHolder

public class ActionParamValueBinding
extends javax.faces.el.ValueBinding
implements javax.faces.component.StateHolder

This is a sort of bastardized ValueBinding that takes an action expression. It is used for s:link which wraps the action expression as a ValueBinding. The only method that it really makes sense to call is getExpressionString(). However, we wrap a ValueBinding and delegate for completeness.

Author:
Stan Silvert

Constructor Summary
ActionParamValueBinding()
           
ActionParamValueBinding(javax.faces.application.Application application, String expression)
           
 
Method Summary
 String getExpressionString()
           
 Class getType(javax.faces.context.FacesContext facesContext)
           
 Object getValue(javax.faces.context.FacesContext facesContext)
           
 boolean isReadOnly(javax.faces.context.FacesContext facesContext)
           
 boolean isTransient()
           
 void restoreState(javax.faces.context.FacesContext facesContext, Object object)
           
 Object saveState(javax.faces.context.FacesContext facesContext)
           
 void setTransient(boolean isTransient)
           
 void setValue(javax.faces.context.FacesContext facesContext, Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionParamValueBinding

public ActionParamValueBinding()

ActionParamValueBinding

public ActionParamValueBinding(javax.faces.application.Application application,
                               String expression)
Method Detail

setValue

public void setValue(javax.faces.context.FacesContext facesContext,
                     Object object)
              throws javax.faces.el.EvaluationException,
                     javax.faces.el.PropertyNotFoundException
Specified by:
setValue in class javax.faces.el.ValueBinding
Throws:
javax.faces.el.EvaluationException
javax.faces.el.PropertyNotFoundException

isReadOnly

public boolean isReadOnly(javax.faces.context.FacesContext facesContext)
                   throws javax.faces.el.EvaluationException,
                          javax.faces.el.PropertyNotFoundException
Specified by:
isReadOnly in class javax.faces.el.ValueBinding
Throws:
javax.faces.el.EvaluationException
javax.faces.el.PropertyNotFoundException

getValue

public Object getValue(javax.faces.context.FacesContext facesContext)
                throws javax.faces.el.EvaluationException,
                       javax.faces.el.PropertyNotFoundException
Specified by:
getValue in class javax.faces.el.ValueBinding
Throws:
javax.faces.el.EvaluationException
javax.faces.el.PropertyNotFoundException

getType

public Class getType(javax.faces.context.FacesContext facesContext)
              throws javax.faces.el.EvaluationException,
                     javax.faces.el.PropertyNotFoundException
Specified by:
getType in class javax.faces.el.ValueBinding
Throws:
javax.faces.el.EvaluationException
javax.faces.el.PropertyNotFoundException

getExpressionString

public String getExpressionString()
Overrides:
getExpressionString in class javax.faces.el.ValueBinding

restoreState

public void restoreState(javax.faces.context.FacesContext facesContext,
                         Object object)
Specified by:
restoreState in interface javax.faces.component.StateHolder

saveState

public Object saveState(javax.faces.context.FacesContext facesContext)
Specified by:
saveState in interface javax.faces.component.StateHolder

setTransient

public void setTransient(boolean isTransient)
Specified by:
setTransient in interface javax.faces.component.StateHolder

isTransient

public boolean isTransient()
Specified by:
isTransient in interface javax.faces.component.StateHolder