org.dbforms.taglib
Class DbSelectTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.dbforms.taglib.AbstractScriptHandlerTag
              extended by org.dbforms.taglib.AbstractDbBaseHandlerTag
                  extended by org.dbforms.taglib.DbSelectTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally, IDataContainer

public class DbSelectTag
extends AbstractDbBaseHandlerTag
implements IDataContainer, javax.servlet.jsp.tagext.TryCatchFinally

This tag renders a html SELECT element including embedding OPTION elements.

Author:
Joachim Peer, Philip Grunikiewicz
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
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
DbSelectTag()
           
 
Method Summary
 int doEndTag()
          DOCUMENT ME!
 void doFinally()
          DOCUMENT ME!
 int doStartTag()
          DOCUMENT ME!
 String getCustomEntry()
          Gets the customEntry
 String getFormattedFieldValue()
          DOCUMENT ME!
 String getIfEmptyItem()
          DOCUMENT ME!
 String getSelectedIndex()
          DOCUMENT ME!
 String getSize()
          Return the size of this field (synonym for getCols()).
 boolean hasIfEmptyDontDrawSet()
          DOCUMENT ME!
 boolean hasOverrideReadOnlySet()
          DOCUMENT ME!
 void setCustomEntry(String customEntry)
          Sets the customEntry
 void setEmbeddedData(List embeddedData)
          This method is a "hookup" for EmbeddedData - Tags which can assign the lines of data they loaded (by querying a database, or by rendering data-subelements, etc. etc.) and make the data available to this tag.
 void setIfEmptyDontDraw(String b)
          DOCUMENT ME!
 void setIfEmptyItem(String string)
          DOCUMENT ME!
 void setOverrideReadOnly(String b)
          DOCUMENT ME!
 void setSelectedIndex(String selectedIndex)
          DOCUMENT ME!
 void setSize(String size)
          Set the size of this field (synonym for setCols()).
protected  String typicalDefaultValue()
          DOCUMENT ME!
 
Methods inherited from class org.dbforms.taglib.AbstractDbBaseHandlerTag
customFormat, escapeHTML, getCustomFormatter, getDefaultValue, getEscaper, getEscaperClass, getField, getFieldObject, getFieldValue, getFormatter, getFormFieldDefaultValue, getFormFieldName, getFormFieldValue, getLocale, getMaxlength, getName, getParentForm, getPattern, getReadOnlyStyleClass, getStyleClass, hasReadOnlySet, renderOldValueHtmlInputField, renderPatternHtmlInputField, setCustomFormatter, setDefaultValue, setEscaperClass, setField, setFieldName, setMaxlength, setNullFieldValue, setParent, setPattern, setReadOnly, setReadOnlyStyleClass, writeOutSpecialValues
 
Methods inherited from class org.dbforms.taglib.AbstractScriptHandlerTag
doCatch, getAccessKey, getConfig, getOnBlur, getOnChange, getOnClick, getOnDblClick, getOnFocus, getOnKeyDown, getOnKeyPress, getOnKeyUp, getOnMouseDown, getOnMouseMove, getOnMouseOut, getOnMouseOver, getOnMouseUp, getOnSelect, getStyle, getTabIndex, getTitle, prepareEventHandlers, prepareStyles, setAccessKey, setOnBlur, setOnChange, setOnClick, setOnDblClick, setOnFocus, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setOnSelect, setStyle, setStyleClass, setTabIndex, setTitle
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.dbforms.interfaces.IDataContainer
getEscaper
 
Methods inherited from interface javax.servlet.jsp.tagext.TryCatchFinally
doCatch
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext
 

Constructor Detail

DbSelectTag

public DbSelectTag()
Method Detail

setCustomEntry

public void setCustomEntry(String customEntry)
Sets the customEntry

Parameters:
customEntry - The customEntry to set

getCustomEntry

public String getCustomEntry()
Gets the customEntry

Returns:
Returns a String

setEmbeddedData

public void setEmbeddedData(List embeddedData)
This method is a "hookup" for EmbeddedData - Tags which can assign the lines of data they loaded (by querying a database, or by rendering data-subelements, etc. etc.) and make the data available to this tag. [this method is defined in Interface DataContainer]

Specified by:
setEmbeddedData in interface IDataContainer
Parameters:
embeddedData - DOCUMENT ME!

getFormattedFieldValue

public String getFormattedFieldValue()
DOCUMENT ME!

Overrides:
getFormattedFieldValue in class AbstractDbBaseHandlerTag
Returns:
DOCUMENT ME!

setIfEmptyDontDraw

public void setIfEmptyDontDraw(String b)
DOCUMENT ME!

Parameters:
b -

hasIfEmptyDontDrawSet

public boolean hasIfEmptyDontDrawSet()
DOCUMENT ME!

Returns:

setIfEmptyItem

public void setIfEmptyItem(String string)
DOCUMENT ME!

Parameters:
string -

getIfEmptyItem

public String getIfEmptyItem()
DOCUMENT ME!

Returns:

setOverrideReadOnly

public void setOverrideReadOnly(String b)
DOCUMENT ME!

Parameters:
b -

setSelectedIndex

public void setSelectedIndex(String selectedIndex)
DOCUMENT ME!

Parameters:
selectedIndex - DOCUMENT ME!

getSelectedIndex

public String getSelectedIndex()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setSize

public void setSize(String size)
Set the size of this field (synonym for setCols()).

Parameters:
size - The new size

getSize

public String getSize()
Return the size of this field (synonym for getCols()).

Returns:
DOCUMENT ME!

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
DOCUMENT ME!

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
Returns:
DOCUMENT ME!
Throws:
javax.servlet.jsp.JspException - DOCUMENT ME!
javax.servlet.jsp.JspException - DOCUMENT ME!

doFinally

public void doFinally()
DOCUMENT ME!

Specified by:
doFinally in interface javax.servlet.jsp.tagext.TryCatchFinally
Overrides:
doFinally in class AbstractDbBaseHandlerTag
See Also:
TryCatchFinally.doFinally()

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
DOCUMENT ME!

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
Returns:
DOCUMENT ME!
Throws:
javax.servlet.jsp.JspException - DOCUMENT ME!

hasOverrideReadOnlySet

public boolean hasOverrideReadOnlySet()
DOCUMENT ME!

Returns:

typicalDefaultValue

protected String typicalDefaultValue()
DOCUMENT ME!

Overrides:
typicalDefaultValue in class AbstractDbBaseHandlerTag
Returns:
DOCUMENT ME!


Copyright © 2002-2006 DbForms. All Rights Reserved.