org.mmbase.bridge.jsp.taglib
Class FieldInfoTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.mmbase.bridge.jsp.taglib.ContextReferrerTag
              extended by org.mmbase.bridge.jsp.taglib.CloudReferrerTag
                  extended by org.mmbase.bridge.jsp.taglib.NodeReferrerTag
                      extended by org.mmbase.bridge.jsp.taglib.FieldReferrerTag
                          extended by org.mmbase.bridge.jsp.taglib.FieldInfoTag
All Implemented Interfaces:
Serializable, BodyTag, IterationTag, JspTag, Tag, TryCatchFinally, Writer

public class FieldInfoTag
extends FieldReferrerTag
implements Writer

The FieldInfoTag can be used as a child of a 'FieldProvider' to provide info about the field or fieldtype.

Version:
$Id: FieldInfoTag.java 42051 2010-04-27 12:36:19Z michiel $
Author:
Michiel Meeuwissen, Jaco de Groot, Gerard van de Looi
See Also:
Serialized Form

Nested Class Summary
static class FieldInfoTag.DataTypeOrigin
           
 
Field Summary
protected  Attribute container
           
protected  Attribute type
           
protected static int TYPE_CHECK
           
protected static int TYPE_DATATYPE
           
protected static int TYPE_DATATYPEDESCRIPTION
           
protected static int TYPE_DATATYPEXML
           
protected static int TYPE_DEFAULTVALUE
           
protected static int TYPE_DESCRIPTION
           
protected static int TYPE_ERRORS
           
protected static int TYPE_FORID
           
protected static int TYPE_GUINAME
           
protected static int TYPE_GUITYPE
           
protected static int TYPE_GUIVALUE
           
protected static int TYPE_INPUT
           
protected static int TYPE_NAME
           
protected static int TYPE_READONLYINPUT
           
protected static int TYPE_REUSESEARCHINPUT
           
protected static int TYPE_SEARCHINPUT
           
protected static int TYPE_TYPE
           
protected static int TYPE_TYPEDESCRIPTION
           
protected static int TYPE_UNSET
           
protected static int TYPE_USEINPUT
           
protected static int TYPE_USESEARCHINPUT
           
protected static int TYPE_VALUE
           
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.FieldReferrerTag
parentFieldId
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.NodeReferrerTag
parentNodeId
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.CloudReferrerTag
cloudId
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
contextId, EVAL_BODY, helper, id, pageContextTag, referid, writerid
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
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
FieldInfoTag()
           
 
Method Summary
 String decode(String value, Node n)
          decode and encode can be overriden.
 int doAfterBody()
           
 int doEndTag()
          Write the value of the fieldinfo.
 int doStartTag()
           
 String encode(String value, Field f)
           
 DataType getDataType()
           
 String getOptions()
           
 FieldInfoTag.DataTypeOrigin getOrigin()
           
 String getPrefix()
           
 String getSessionName()
           
protected  int getType()
           
protected  TypeHandler getTypeHandler(Field field)
          Answer the type handler for the given type.
 void setDatatype(Object d)
           
 void setOptions(String o)
           
 void setType(String t)
           
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.FieldReferrerTag
findFieldProvider, findFieldProvider, getField, setField
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.NodeReferrerTag
fillStandardParameters, findNode, findNodeProvider, findNodeProvider, getCloudVar, getLocale, getNode, getNode, getNodeFromPageContext, initTag, setElement, setNode
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.CloudReferrerTag
findCloudProvider, findCloudProvider, getCloudContext, getNode, getNodeOrNull, setCloud
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
appendMoreParameters, doCatch, doFinally, findLoopOrQuery, findParentTag, findParentTag, findWriter, findWriter, getAttribute, getAttribute, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContentTag, getContextProvider, getContextTag, getCurrentBlock, getDefaultLocale, getEscapedValue, getFormTag, getId, getLocaleFromContext, getObject, getObjectConditional, getPageContext, getPageContextTag, getQuery, getReferid, getString, getTaglibVersion, getThreadPageContext, getTimeZone, getWriterValue, haveBody, release, setContext, setEscape, setId, setJspvar, setListdelimiter, setPageContext, setPageContextOnly, setReferid, setVartype, setWrite, setWriter
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getParent, getValue, getValues, removeValue, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mmbase.bridge.jsp.taglib.Writer
getWriterValue, haveBody, setEscape, setJspvar, setVartype, setWrite
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setParent
 

Field Detail

TYPE_NAME

protected static final int TYPE_NAME
See Also:
Constant Field Values

TYPE_GUINAME

protected static final int TYPE_GUINAME
See Also:
Constant Field Values

TYPE_VALUE

protected static final int TYPE_VALUE
See Also:
Constant Field Values

TYPE_GUIVALUE

protected static final int TYPE_GUIVALUE
See Also:
Constant Field Values

TYPE_TYPE

protected static final int TYPE_TYPE
See Also:
Constant Field Values

TYPE_GUITYPE

protected static final int TYPE_GUITYPE
See Also:
Constant Field Values

TYPE_DESCRIPTION

protected static final int TYPE_DESCRIPTION
See Also:
Constant Field Values

TYPE_TYPEDESCRIPTION

protected static final int TYPE_TYPEDESCRIPTION
See Also:
Constant Field Values

TYPE_DATATYPE

protected static final int TYPE_DATATYPE
See Also:
Constant Field Values

TYPE_DATATYPEDESCRIPTION

protected static final int TYPE_DATATYPEDESCRIPTION
See Also:
Constant Field Values

TYPE_DATATYPEXML

protected static final int TYPE_DATATYPEXML
See Also:
Constant Field Values

TYPE_FORID

protected static final int TYPE_FORID
See Also:
Constant Field Values

TYPE_DEFAULTVALUE

protected static final int TYPE_DEFAULTVALUE
See Also:
Constant Field Values

TYPE_UNSET

protected static final int TYPE_UNSET
See Also:
Constant Field Values

TYPE_INPUT

protected static final int TYPE_INPUT
See Also:
Constant Field Values

TYPE_CHECK

protected static final int TYPE_CHECK
See Also:
Constant Field Values

TYPE_ERRORS

protected static final int TYPE_ERRORS
See Also:
Constant Field Values

TYPE_USEINPUT

protected static final int TYPE_USEINPUT
See Also:
Constant Field Values

TYPE_SEARCHINPUT

protected static final int TYPE_SEARCHINPUT
See Also:
Constant Field Values

TYPE_USESEARCHINPUT

protected static final int TYPE_USESEARCHINPUT
See Also:
Constant Field Values

TYPE_REUSESEARCHINPUT

protected static final int TYPE_REUSESEARCHINPUT
See Also:
Constant Field Values

TYPE_READONLYINPUT

protected static final int TYPE_READONLYINPUT
See Also:
Constant Field Values

type

protected Attribute type

container

protected Attribute container
Constructor Detail

FieldInfoTag

public FieldInfoTag()
Method Detail

getSessionName

public String getSessionName()

setType

public void setType(String t)
             throws JspTagException
Throws:
JspTagException

getType

protected int getType()
               throws JspTagException
Throws:
JspTagException

setOptions

public void setOptions(String o)
                throws JspTagException
Throws:
JspTagException

getOptions

public String getOptions()
                  throws JspTagException
Throws:
JspTagException

setDatatype

public void setDatatype(Object d)
                 throws JspTagException
Throws:
JspTagException
Since:
MMBase-1.8

getDataType

public DataType getDataType()
                     throws JspTagException
Throws:
JspTagException
Since:
MMBase-1.8

getOrigin

public FieldInfoTag.DataTypeOrigin getOrigin()

getTypeHandler

protected TypeHandler getTypeHandler(Field field)
Answer the type handler for the given type. The type handler is responsible for showing the html


doStartTag

public int doStartTag()
               throws JspTagException
Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class NodeReferrerTag
Throws:
JspTagException

doEndTag

public int doEndTag()
             throws JspTagException
Write the value of the fieldinfo.

Specified by:
doEndTag in interface Tag
Overrides:
doEndTag in class NodeReferrerTag
Throws:
JspTagException

doAfterBody

public int doAfterBody()
                throws JspException
Specified by:
doAfterBody in interface IterationTag
Overrides:
doAfterBody in class BodyTagSupport
Throws:
JspException

getPrefix

public String getPrefix()
                 throws JspTagException
Throws:
JspTagException
Since:
MMBase-1.8

decode

public String decode(String value,
                     Node n)
              throws JspTagException
decode and encode can be overriden.

Throws:
JspTagException

encode

public String encode(String value,
                     Field f)
              throws JspTagException
Throws:
JspTagException


MMBase 2.0-SNAPSHOT - null