|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.htmlutil.MethodAction
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 |
protected Method theMethod
protected Class[] argTypes
protected Properties properties
protected boolean isStatic
private Hashtable recurseProperties
private static final boolean TEMPLATE_VERBOSE
Constructor Detail |
public MethodAction()
public MethodAction(Method aMethod)
Method Detail |
public void action(OutputStream out, Object context, Locale locale, boolean includeLocale) throws WTException, IOException
action
in interface TemplateAction
out
- The OutputStream passed to the methodcontext
- The object instance to invoke the method on, or null if staticlocale
- The Locale passed to the methodincludeLocale
- A flag specifying whether to include locale in the parameters
WTException
IOException
public void setMethod(Method aMethod)
public Method getMethod()
public void setParameterCount(int parameterCount)
public int getParameterCount()
public void setParameters(boolean parameters)
public boolean getParameters()
public void setProperty(String key, String value)
public void putProperty(String key, String value)
public String getProperty(String key)
public void putRecursiveProperty(String key, CachedHTMLTemplate cachedTemplate)
public CachedHTMLTemplate getRecursiveProperty(String key)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |