org.makumba.forms.tags
Class OptionTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.makumba.analyser.AnalysableTag
org.makumba.commons.tags.GenericMakumbaTag
org.makumba.forms.tags.BasicValueTag
org.makumba.forms.tags.OptionTag
- All Implemented Interfaces:
- Serializable, BodyTag, IterationTag, JspTag, Tag
public class OptionTag
- extends BasicValueTag
- implements BodyTag
mak:option tag
- Version:
- $Id: OptionTag.java 2733 2008-07-02 22:32:58Z manuel_gay $
- Author:
- Cristian Bogdan
- See Also:
- Serialized Form
| Methods inherited from class org.makumba.commons.tags.GenericMakumbaTag |
doStartTag, getParams, initialiseState, setAddTitle, setCols, setConvertLinks, setDefault, setElementSeparator, setEllipsis, setEllipsisLength, setEmpty, setFormat, setHtml, setLabelSeparator, setLineSeparator, setLongLineLength, setMaxlength, setMaxLength, setOnClick, setOnDblClick, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setRows, setSize, setStyle, setStyleClass, setStyleId, setTitle, setType, setType, setUrlEncode, toString |
| Methods inherited from class org.makumba.analyser.AnalysableTag |
addTagText, allowsIdenticalKey, canHaveBody, checkValidAttributeValues, doEndTag, getAnalyzedTag, getCurrentBodyTag, getPageCache, getPageContext, getPageTextInfo, getRunningTag, getTagKey, getTagText, getThreadTagStack, initializeThread, needPageCache, onlyInt, setTagDataAtAnalysis |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
bodyContent
BodyContent bodyContent
OptionTag
public OptionTag()
setTagKey
public void setTagKey(PageCache pageCache)
- Sets tagKey to uniquely identify this tag. Called at analysis time before doStartAnalyze() and at runtime before
doMakumbaStartTag()
- Overrides:
setTagKey in class AnalysableTag
- Parameters:
pageCache - The page cache for the current page- See Also:
AnalysableTag.doAnalyzedStartTag(org.makumba.analyser.PageCache),
AnalysableTag.doStartAnalyze(org.makumba.analyser.PageCache)
getInput
InputTag getInput()
getTypeFromContext
FieldDefinition getTypeFromContext(PageCache pageCache)
- Specified by:
getTypeFromContext in class BasicValueTag
doStartAnalyze
public void doStartAnalyze(PageCache pageCache)
- Description copied from class:
BasicValueTag
- Determines the ValueComputer and associates it with the tagKey
- Overrides:
doStartAnalyze in class BasicValueTag
- Parameters:
pageCache - the page cache of the current page
doInitBody
public void doInitBody()
- Specified by:
doInitBody in interface BodyTag
setBodyContent
public void setBodyContent(BodyContent bc)
- Specified by:
setBodyContent in interface BodyTag
doAnalyzedStartTag
public int doAnalyzedStartTag(PageCache pageCache)
- Description copied from class:
AnalysableTag
- makumba-specific startTag.
- Overrides:
doAnalyzedStartTag in class AnalysableTag
- Parameters:
pageCache - The page cache for the current page- See Also:
AnalysableTag.doStartTag()
computedValue
int computedValue(Object val,
FieldDefinition type)
throws JspException,
LogicException
- A value was computed, do what's needed with it, cleanup and return the result of doMakumbaEndTag()
- Specified by:
computedValue in class BasicValueTag
- Parameters:
val - the computed valuetype - the type of the value
- Throws:
JspException
{@link - LogicException}
LogicException
doAnalyzedCleanup
protected void doAnalyzedCleanup()
- Description copied from class:
AnalysableTag
- Called by doEndTag in its finally block.
Use it to clean references that will not be used next time the servlet container uses the tag object.
- Overrides:
doAnalyzedCleanup in class BasicValueTag