com.sun.rave.web.ui.el
Class DropDownMethodBinding

java.lang.Object
  extended by javax.faces.el.MethodBinding
      extended by com.sun.rave.web.ui.el.DropDownMethodBinding
All Implemented Interfaces:
javax.faces.component.StateHolder

public class DropDownMethodBinding
extends javax.faces.el.MethodBinding
implements javax.faces.component.StateHolder

Implementation of MethodBinding that always returns the value specified to our constructor.


Constructor Summary
DropDownMethodBinding()
          Zero arguments constructor for restoring state.
 
Method Summary
 java.lang.String getExpressionString()
          Return the expression string for this method binding.
 java.lang.Class getType(javax.faces.context.FacesContext context)
          Return the expected return type class.
 java.lang.Object invoke(javax.faces.context.FacesContext context, java.lang.Object[] params)
          Return the appropriate constant value.
 boolean isTransient()
           
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setTransient(boolean transientFlag)
           
 void setValue(java.lang.String value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DropDownMethodBinding

public DropDownMethodBinding()

Zero arguments constructor for restoring state.

Method Detail

setValue

public void setValue(java.lang.String value)

invoke

public java.lang.Object invoke(javax.faces.context.FacesContext context,
                               java.lang.Object[] params)

Return the appropriate constant value.

Specified by:
invoke in class javax.faces.el.MethodBinding
Parameters:
context - FacesContext for this request
params - Method parameters to pass in

getType

public java.lang.Class getType(javax.faces.context.FacesContext context)

Return the expected return type class.

Specified by:
getType in class javax.faces.el.MethodBinding
Parameters:
context - FacesContext for this request

getExpressionString

public java.lang.String getExpressionString()

Return the expression string for this method binding.

Overrides:
getExpressionString in class javax.faces.el.MethodBinding

isTransient

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

setTransient

public void setTransient(boolean transientFlag)
Specified by:
setTransient 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

saveState

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object