ArcGIS Server Geoportal extension
10

com.esri.gpt.framework.jsf.components
Class SimpleMethodBinding

java.lang.Object
  extended by javax.faces.el.MethodBinding
      extended by com.esri.gpt.framework.jsf.components.SimpleMethodBinding
All Implemented Interfaces:
javax.faces.component.StateHolder

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

The Class SimpleMethodBinding. Can be used instead of method binding for actions when we need to return just a plain String.


Constructor Summary
SimpleMethodBinding(String returnString)
          Instantiates a new simple method binding.
 
Method Summary
 Class getType(javax.faces.context.FacesContext arg0)
          Returns String.class
 Object invoke(javax.faces.context.FacesContext arg0, Object[] arg1)
          Returns the returnString.
 boolean isTransient()
           
 void restoreState(javax.faces.context.FacesContext facescontext, Object obj)
          Restoring State
 Object saveState(javax.faces.context.FacesContext facescontext)
          Save state.
 void setTransient(boolean flag)
          Setting transient
 
Methods inherited from class javax.faces.el.MethodBinding
getExpressionString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleMethodBinding

public SimpleMethodBinding(String returnString)
Instantiates a new simple method binding.

Parameters:
returnString - the return string
Method Detail

getType

public Class getType(javax.faces.context.FacesContext arg0)
              throws javax.faces.el.MethodNotFoundException
Returns String.class

Specified by:
getType in class javax.faces.el.MethodBinding
Parameters:
arg0 - the arg0
Returns:
String.class
Throws:
javax.faces.el.MethodNotFoundException - the method not found exception

invoke

public Object invoke(javax.faces.context.FacesContext arg0,
                     Object[] arg1)
              throws javax.faces.el.EvaluationException,
                     javax.faces.el.MethodNotFoundException
Returns the returnString.

Specified by:
invoke in class javax.faces.el.MethodBinding
Parameters:
arg0 - the arg0
arg1 - the arg1
Returns:
the return string
Throws:
javax.faces.el.EvaluationException - the evaluation exception
javax.faces.el.MethodNotFoundException - the method not found exception

isTransient

public boolean isTransient()
Specified by:
isTransient in interface javax.faces.component.StateHolder
Returns:
whether is transient

restoreState

public void restoreState(javax.faces.context.FacesContext facescontext,
                         Object obj)
Restoring State

Specified by:
restoreState in interface javax.faces.component.StateHolder
Parameters:
facescontext -
obj -

saveState

public Object saveState(javax.faces.context.FacesContext facescontext)
Save state.

Specified by:
saveState in interface javax.faces.component.StateHolder
Parameters:
facescontext - the facescontext
Returns:
the object

setTransient

public void setTransient(boolean flag)
Setting transient

Specified by:
setTransient in interface javax.faces.component.StateHolder
Parameters:
flag -

ArcGIS Server Geoportal extension
10

Copyright 2010 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.