wt.htmlutil
Class MethodAction

java.lang.Object
  extended bywt.htmlutil.MethodAction
All Implemented Interfaces:
TemplateAction
Direct Known Subclasses:
LocalizedTextAction

public class MethodAction
extends Object
implements TemplateAction

MethodAction is a TemplateAction that represents a Method within a template. MethodActions are created during cached parsing of HTML templates. The interesting method is action(...), which is called from CachedHTMLTemplate during execution. action(...) invokes the contained method on the passed context, and passes the appropriate Properties and Locale instances to it.


Field Summary
protected  Class[] argTypes
          Deprecated.  
protected  boolean isStatic
          Deprecated.  
protected  Properties properties
          Deprecated.  
private  Hashtable recurseProperties
          Deprecated.  
private static boolean TEMPLATE_VERBOSE
          Deprecated.  
protected  Method theMethod
          Deprecated.  
 
Constructor Summary
MethodAction()
          Deprecated.  
MethodAction(Method aMethod)
          Deprecated.  
 
Method Summary
 void action(OutputStream out, Object context, Locale locale, boolean includeLocale)
          Deprecated. action invokes the method on the passed context or on null for static methods.
 Method getMethod()
          Deprecated.  
 int getParameterCount()
          Deprecated.  
 boolean getParameters()
          Deprecated.  
 String getProperty(String key)
          Deprecated.  
 CachedHTMLTemplate getRecursiveProperty(String key)
          Deprecated.  
 void putProperty(String key, String value)
          Deprecated.  
 void putRecursiveProperty(String key, CachedHTMLTemplate cachedTemplate)
          Deprecated.  
 void setMethod(Method aMethod)
          Deprecated.  
 void setParameterCount(int parameterCount)
          Deprecated.  
 void setParameters(boolean parameters)
          Deprecated.  
 void setProperty(String key, String value)
          Deprecated. Use putProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theMethod

protected Method theMethod
Deprecated. 

argTypes

protected Class[] argTypes
Deprecated. 

properties

protected Properties properties
Deprecated. 

isStatic

protected boolean isStatic
Deprecated. 

recurseProperties

private Hashtable recurseProperties
Deprecated. 

TEMPLATE_VERBOSE

private static final boolean TEMPLATE_VERBOSE
Deprecated. 
Constructor Detail

MethodAction

public MethodAction()
Deprecated. 

MethodAction

public MethodAction(Method aMethod)
Deprecated. 
Method Detail

action

public void action(OutputStream out,
                   Object context,
                   Locale locale,
                   boolean includeLocale)
            throws WTException,
                   IOException
Deprecated. 
action invokes the method on the passed context or on null for static methods. out, this.properties, and locale are passed into the method where appropriate.

Specified by:
action in interface TemplateAction
Parameters:
out - The OutputStream passed to the method
context - The object instance to invoke the method on, or null if static
locale - The Locale passed to the method
includeLocale - A flag specifying whether to include locale in the parameters
Throws:
WTException
IOException

setMethod

public void setMethod(Method aMethod)
Deprecated. 

getMethod

public Method getMethod()
Deprecated. 

setParameterCount

public void setParameterCount(int parameterCount)
Deprecated.  


getParameterCount

public int getParameterCount()
Deprecated.  

Always returns 0.


setParameters

public void setParameters(boolean parameters)
Deprecated.  


getParameters

public boolean getParameters()
Deprecated.  


setProperty

public void setProperty(String key,
                        String value)
Deprecated. Use putProperty


putProperty

public void putProperty(String key,
                        String value)
Deprecated. 

getProperty

public String getProperty(String key)
Deprecated. 

putRecursiveProperty

public void putRecursiveProperty(String key,
                                 CachedHTMLTemplate cachedTemplate)
Deprecated. 

getRecursiveProperty

public CachedHTMLTemplate getRecursiveProperty(String key)
Deprecated.