|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.jelly.TagSupport net.sf.jameleon.ParamTag
public class ParamTag
Used to give a function tag a parameter or a list of parameters. For example:
<param> <param-name>someName</param-name> <param-value>foo</param-value> <param-type>text</param-type> </param>This tag adds itself to a list of param tags to the parent FunctionTag. It's up to the FunctionTag to use the parameters. They can be accessed via the
FunctionTag.getParams()
method.
Field Summary | |
---|---|
protected String |
fromVariable
|
protected String |
name
The name of param. |
protected String |
paramType
The input type of the param (text, checkbox, listbox...) |
protected ArrayList |
values
The value of the param. |
Fields inherited from class org.apache.commons.jelly.TagSupport |
---|
body, context, hasTrimmed, parent, shouldTrim |
Constructor Summary | |
---|---|
ParamTag()
|
Method Summary | |
---|---|
void |
addParamValue(String value)
Adds a value to the list of values supplied for this parameter. |
void |
doTag(XMLOutput out)
|
String |
getFromVariable()
|
String |
getName()
|
String |
getParamName()
|
String |
getParamType()
|
ArrayList |
getParamValues()
|
String |
getValue()
|
void |
setFromVariable(String fromVar)
|
void |
setParamName(String paramName)
|
void |
setParamType(String paramType)
|
void |
setParamValue(String value)
|
protected void |
validate()
Used to validate everything is set up correctly. |
Methods inherited from class org.apache.commons.jelly.TagSupport |
---|
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ArrayList values
protected String name
protected String paramType
protected String fromVariable
Constructor Detail |
---|
public ParamTag()
Method Detail |
---|
public void doTag(XMLOutput out) throws MissingAttributeException, JellyTagException
MissingAttributeException
JellyTagException
protected void validate() throws MissingAttributeException, JellyTagException
MissingAttributeException
- - When a required attribute isn't set.
JellyTagException
- - When this tag is used out of context.public String getParamType()
public String getValue()
public ArrayList getParamValues()
public void addParamValue(String value)
value
- The param valuepublic String getName()
public String getParamName()
public void setParamName(String paramName)
public void setParamValue(String value)
public void setParamType(String paramType)
public String getFromVariable()
public void setFromVariable(String fromVar)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |