org.mmbase.bridge.jsp.taglib
Class FieldInfoTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byorg.mmbase.bridge.jsp.taglib.ContextReferrerTag
              extended byorg.mmbase.bridge.jsp.taglib.CloudReferrerTag
                  extended byorg.mmbase.bridge.jsp.taglib.NodeReferrerTag
                      extended byorg.mmbase.bridge.jsp.taglib.FieldReferrerTag
                          extended byorg.mmbase.bridge.jsp.taglib.FieldInfoTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag, 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,v 1.73.2.2 2004/07/26 20:12:17 nico Exp $
Author:
Michiel Meeuwissen, Jaco de Groot, Gerard van de Looi
See Also:
Serialized Form

Field Summary
protected  Attribute container
           
protected  Attribute type
           
protected static int TYPE_DESCRIPTION
           
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_REUSESEARCHINPUT
           
protected static int TYPE_SEARCHINPUT
           
protected static int TYPE_TYPE
           
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.NodeReferrerTag
parentNodeId
 
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
 java.lang.String decode(java.lang.String value, Node n)
          decode and encode can be overriden.
 int doAfterBody()
           
 int doEndTag()
          Write the value of the fieldinfo.
 int doStartTag()
           
 java.lang.String encode(java.lang.String value, Field f)
           
 java.lang.String getOptions()
           
 java.lang.String getSessionName()
           
protected  int getType()
           
protected  TypeHandler getTypeHandler(int type)
          Answer the type handler for the given type.
 void setOptions(java.lang.String o)
           
 void setType(java.lang.String t)
           
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.FieldReferrerTag
findFieldProvider, getField, setField
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.NodeReferrerTag
findNodeProvider, findNodeProvider, getNode, setNode
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.CloudReferrerTag
findCloudProvider, findCloudProvider, getCloud, getCloudContext, getCloudVar, getNode, getNodeOrNull, setCloud
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
findParentTag, findParentTag, findParentTag, findParentTag, findWriter, findWriter, getAttribute, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContentTag, getContextProvider, getContextTag, getId, getLocale, getObject, getPageContext, getReferid, getString, getWriterValue, haveBody, release, setContext, setEscape, setId, setJspvar, setPageContext, 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_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_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

protected Attribute type

container

protected Attribute container
Constructor Detail

FieldInfoTag

public FieldInfoTag()
Method Detail

getSessionName

public java.lang.String getSessionName()

setType

public void setType(java.lang.String t)
             throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

getType

protected int getType()
               throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

setOptions

public void setOptions(java.lang.String o)
                throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

getOptions

public java.lang.String getOptions()
                            throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

getTypeHandler

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


doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspTagException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Throws:
javax.servlet.jsp.JspTagException

doEndTag

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

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class ContextReferrerTag
Throws:
javax.servlet.jsp.JspTagException

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Specified by:
doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
Throws:
javax.servlet.jsp.JspException

decode

public java.lang.String decode(java.lang.String value,
                               Node n)
                        throws javax.servlet.jsp.JspTagException
decode and encode can be overriden.

Throws:
javax.servlet.jsp.JspTagException

encode

public java.lang.String encode(java.lang.String value,
                               Field f)
                        throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException


MMBase build 1.7.1.20041002