|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.el.MethodBinding
com.sun.rave.web.ui.el.ConstantMethodBinding
public class ConstantMethodBinding
Implementation of MethodBinding that always returns
the value specified to our constructor.
| Constructor Summary | |
|---|---|
ConstantMethodBinding()
Zero arguments constructor for restoring state. |
|
ConstantMethodBinding(java.lang.String value)
Create a new MethodBinding that always returns
the specified value. |
|
| 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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConstantMethodBinding()
Zero arguments constructor for restoring state.
public ConstantMethodBinding(java.lang.String value)
Create a new MethodBinding that always returns
the specified value.
| Method Detail |
|---|
public java.lang.Object invoke(javax.faces.context.FacesContext context,
java.lang.Object[] params)
Return the appropriate constant value.
invoke in class javax.faces.el.MethodBindingcontext - FacesContext for this requestparams - Method parameters to pass inpublic java.lang.Class getType(javax.faces.context.FacesContext context)
Return the expected return type class.
getType in class javax.faces.el.MethodBindingcontext - FacesContext for this requestpublic java.lang.String getExpressionString()
Return the expression string for this method binding.
getExpressionString in class javax.faces.el.MethodBindingpublic boolean isTransient()
isTransient in interface javax.faces.component.StateHolderpublic void setTransient(boolean transientFlag)
setTransient in interface javax.faces.component.StateHolder
public void restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
restoreState in interface javax.faces.component.StateHolderpublic java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHolder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||