Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.makumba.forms.tags
Class InputTag

    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.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 3465 2008-12-26 21:42:53Z rosso_nero $
Author:
  Cristian Bogdan, Rudolf Mayer, Manuel Gay
See Also:
  Serialized Form

Field Summary
`(package private) BodyContent` | `bodyContent` input with body, used only for choosers as yet *
`protected boolean` | `calendarEditor`
`protected String` | `calendarEditorLink`
`(package private) ChoiceSet` | `choiceSet`
`protected String` | `display`
`(package private) boolean` | `isChoser`
`protected String` | `name`
`protected String` | `nameVar`
`protected String` | `nullOption`

Fields inherited from class org.makumba.forms.tags.BasicValueTag
`dataType, ddp, expr, fdp, valueExprOriginal`

Fields inherited from class org.makumba.commons.tags.GenericMakumbaTag
`extraFormatting, extraFormattingParams, NEEDED_RESOURCES, params`

Fields inherited from class org.makumba.analyser.AnalysableTag
`analyzedTag, ATTRIBUTE_VALUES_TRUE_FALSE, runningTag, tagData, tagKey, TYPES`

Fields inherited from class javax.servlet.jsp.tagext.TagSupport
`id, pageContext`

Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
`EVAL_BODY_BUFFERED, EVAL_BODY_TAG`

Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
`EVAL_BODY_AGAIN`

Fields inherited from interface javax.servlet.jsp.tagext.Tag
`EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE`

Constructor Summary
`InputTag()`

Method Summary
`(package private) void` | `checkBodyContentForNonWhitespace()`
`(package private) int` | `computedValue(Object val, FieldDefinition type)` A value was computed, do what's needed with it, cleanup and return the result of doMakumbaEndTag()
`protected void` | `doAnalyzedCleanup()` Called by doEndTag in its finally block.
`int` | `doAnalyzedEndTag(PageCache pageCache)` makumba-specific endTag
`int` | `doAnalyzedStartTag(PageCache pageCache)` makumba-specific startTag.
`void` | `doEndAnalyze(PageCache pageCache)` Tells the ValueComputer to finish analysis, and sets the types for var and printVar
`void` | `doInitBody()`
`void` | `doStartAnalyze(PageCache pageCache)` Determines the ValueComputer and associates it with the tagKey
`(package private) FieldDefinition` | `getTypeFromContext(PageCache pageCache)`
`void` | `initialiseState()` Resets and initialises the tag's state, to work in a tag pool.
`void` | `setAccessKey(String s)`
`void` | `setAutoComplete(String autoComplete)`
`void` | `setBodyContent(BodyContent bc)`
`void` | `setCalendarEditor(String calendarEditor)`
`void` | `setCalendarEditorLink(String calendarEditorLink)`
`void` | `setDataType(String dt)`
`void` | `setDisabled(String s)`
`void` | `setDisplay(String d)`
`void` | `setField(String field)`
`void` | `setName(String field)`
`void` | `setNameVar(String var)`
`void` | `setNullOption(String s)`
`void` | `setOnBlur(String s)`
`void` | `setOnChange(String s)`
`void` | `setOnFocus(String s)`
`void` | `setOnSelect(String s)`
`void` | `setStepSize(String s)`
`void` | `setTabIndex(String s)`
`void` | `setTagKey(PageCache pageCache)` Sets tagKey to uniquely identify this tag.
`String` | `toString()`

Methods inherited from class org.makumba.forms.tags.BasicValueTag
`checkPtrExpr, getForm, isAttribute, isAttribute, isNull, isValue, isValue, setValue`

Methods inherited from class org.makumba.commons.tags.GenericMakumbaTag
`doStartTag, getParams, 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`

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`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Methods inherited from interface javax.servlet.jsp.tagext.IterationTag
`doAfterBody`

Methods inherited from interface javax.servlet.jsp.tagext.Tag
`doEndTag, doStartTag, getParent, release, setPageContext, setParent`

Field Detail

### 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

Constructor Detail

### InputTag

    public InputTag()

Method Detail

### 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)

### 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 value
    `type` - 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)

### 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`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Docs generated on 2009-02-25 14:20