org.makumba.forms.tags
Class InputTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.makumba.analyser.AnalysableElement
org.makumba.analyser.AnalysableTag
org.makumba.commons.tags.GenericMakumbaTag
org.makumba.forms.tags.BasicValueTag
org.makumba.forms.tags.InputTag
- All Implemented Interfaces:
- Serializable, BodyTag, IterationTag, JspTag, Tag
- Direct Known Subclasses:
- SearchFieldTag
public class InputTag
- extends BasicValueTag
- implements BodyTag
mak:input tag
- Version:
- $Id: InputTag.java 5132 2010-05-18 18:14:13Z rosso_nero $
- Author:
- Cristian Bogdan, Rudolf Mayer, Manuel Gay
- See Also:
- Serialized Form
Methods inherited from class org.makumba.commons.tags.GenericMakumbaTag |
doStartTag, getParams, isAttribute, setAddTitle, setCols, setDefault, setElementSeparator, setEllipsis, setEllipsisLength, setEmpty, setFormat, setHtml, setLabelSeparator, setLineSeparator, setLongLineLength, setMaxlength, setMaxLength, setOnClick, setOnDblClick, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setRows, setStyle, setStyleClass, setStyleId, setTitle, setType, setType, setUrlEncode |
Methods inherited from class org.makumba.analyser.AnalysableTag |
addTagText, allowsIdenticalKey, canHaveBody, checkAttributeValues, doEndTag, getElementData, getPageContext, getPageTextInfo, getTagKey, getTagText, needPageCache, notEmpty, onlyInt, registerAttributeValues, registerPossibleAttributeValues, setTagDataAtAnalysis |
Methods inherited from class org.makumba.analyser.AnalysableElement |
checkTagFound, discardJSPParsingData, getAnalyzedElementData, getCurrentBodyTagData, getElementAfter, getElementBefore, getPageCache, getPageCache, getRunningElementData, getTagByAttribute, getTagById, getThreadElementStack, initializeThread, keepAnalysisState, setAnalyzedElementData, setRunningElementData |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
name
protected String name
display
protected String display
nameVar
protected String nameVar
calendarEditorLink
protected String calendarEditorLink
calendarEditor
protected boolean calendarEditor
nullOption
protected String nullOption
bodyContent
BodyContent bodyContent
- input with body, used only for choosers as yet *
choiceSet
ChoiceSet choiceSet
isChoser
boolean isChoser
InputTag
public InputTag()
toString
public String toString()
- Overrides:
toString
in class GenericMakumbaTag
setDataType
public void setDataType(String dt)
setField
public void setField(String field)
setName
public void setName(String field)
setDisplay
public void setDisplay(String d)
setNameVar
public void setNameVar(String var)
setNullOption
public void setNullOption(String s)
setClearDefault
public void setClearDefault(String d)
setAccessKey
public void setAccessKey(String s)
setDisabled
public void setDisabled(String s)
setOnChange
public void setOnChange(String s)
setOnBlur
public void setOnBlur(String s)
setOnFocus
public void setOnFocus(String s)
setOnSelect
public void setOnSelect(String s)
setTabIndex
public void setTabIndex(String s)
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)
getTypeFromContext
FieldDefinition getTypeFromContext(PageCache pageCache)
- Specified by:
getTypeFromContext
in class BasicValueTag
doStartAnalyze
public void doStartAnalyze(PageCache pageCache)
- Determines the ValueComputer and associates it with the tagKey
- Overrides:
doStartAnalyze
in class BasicValueTag
- Parameters:
pageCache
- the page cache of the current page
doEndAnalyze
public void doEndAnalyze(PageCache pageCache)
- Tells the ValueComputer to finish analysis, and sets the types for var and printVar
- Overrides:
doEndAnalyze
in class BasicValueTag
- Parameters:
pageCache
- the page cache of the current page
initialiseState
public void initialiseState()
- Resets and initialises the tag's state, to work in a tag pool. See bug 583. If this method is overriden in a
child class, the child's method must call super.initaliseState().
- Overrides:
initialiseState
in class GenericMakumbaTag
setBodyContent
public void setBodyContent(BodyContent bc)
- Specified by:
setBodyContent
in interface BodyTag
doInitBody
public void doInitBody()
- Specified by:
doInitBody
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()
doAnalyzedEndTag
public int doAnalyzedEndTag(PageCache pageCache)
throws JspException,
LogicException
- Description copied from class:
AnalysableTag
- makumba-specific endTag
- Overrides:
doAnalyzedEndTag
in class BasicValueTag
- Parameters:
pageCache
- The page cache for the current page
- Throws:
JspException
LogicException
- See Also:
AnalysableTag.doEndTag()
checkBodyContentForNonWhitespace
void checkBodyContentForNonWhitespace()
throws JspException
- Throws:
JspException
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 computed value
- Throws:
JspException
{@link
- LogicException}
LogicException
setCalendarEditorLink
public void setCalendarEditorLink(String calendarEditorLink)
setAutoComplete
public void setAutoComplete(String autoComplete)
setCalendarEditor
public void setCalendarEditor(String calendarEditor)
setSize
public void setSize(String s)
- Overrides:
setSize
in class GenericMakumbaTag
setStepSize
public void setStepSize(String s)
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