org.ajax4jsf.component
Class EventValueBinding

java.lang.Object
  extended by javax.faces.el.ValueBinding
      extended by org.ajax4jsf.component.EventValueBinding
All Implemented Interfaces:
javax.faces.component.StateHolder

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

Inner class for build event string for parent component.

Version:
$Revision: 1.1.2.1 $ $Date: 2007/01/09 18:57:38 $ Disadvantages - not rebuild event string setted as EL expression. TODO - save expressions for build event string at render phase.
Author:
shura (latest modification by $Author: alexsmirnov $)

Constructor Summary
EventValueBinding()
          Default constructor for restoreState.
EventValueBinding(org.ajax4jsf.component.AjaxSupport update)
          Constructor for build from AjaxComponent.
 
Method Summary
 java.lang.String getExpressionString()
           
 java.lang.Class getType(javax.faces.context.FacesContext facesContext)
           
 java.lang.Object getValue(javax.faces.context.FacesContext facesContext)
           
 boolean isReadOnly(javax.faces.context.FacesContext facesContext)
           
 boolean isTransient()
           
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setComponent(org.ajax4jsf.component.AjaxSupport component)
           
 void setTransient(boolean newTransientValue)
           
 void setValue(javax.faces.context.FacesContext facesContext, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventValueBinding

public EventValueBinding()
Default constructor for restoreState.


EventValueBinding

public EventValueBinding(org.ajax4jsf.component.AjaxSupport update)
Constructor for build from AjaxComponent.

Parameters:
update -
Method Detail

getType

public java.lang.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

getValue

public java.lang.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

setComponent

public void setComponent(org.ajax4jsf.component.AjaxSupport component)
Parameters:
component - the component to set

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

setValue

public void setValue(javax.faces.context.FacesContext facesContext,
                     java.lang.Object value)
              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

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

getExpressionString

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


Copyright © 2009. All Rights Reserved.