org.dbforms.taglib
Class ConfTableData

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.dbforms.taglib.TagSupportWithScriptHandler
              extended by org.dbforms.taglib.DbBaseHandlerTag
                  extended by org.dbforms.taglib.EmbeddedData
                      extended by org.dbforms.taglib.ConfTableData
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally, StaticDataAddInterface

public class ConfTableData
extends EmbeddedData
implements javax.servlet.jsp.tagext.TryCatchFinally

external data to be nested into radio, checkbox or select - tag! (useful only in conjunction with radio, checkbox or select - tag)

this tag provides data to radio, checkbox or select - tags. it may be used for cross-references to other tables.

this tag provides similar functionality to "TabData", but as it allows to use the table data given in the conf file and use a filter clause like in dbform tag

Author:
Henner Kollmann
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
ConfTableData()
           
 
Method Summary
 void doCatch(Throwable t)
           
protected  List fetchData(Connection con)
          returns Hashtable with data.
 String getFilter()
          DOCUMENT ME!
 String getForeignTable()
          DOCUMENT ME!
 String getOrderBy()
          DOCUMENT ME!
 String getStoreField()
          DOCUMENT ME!
 String getVisibleFields()
          DOCUMENT ME!
 void setFilter(String string)
          DOCUMENT ME!
 void setForeignTable(String foreignTable)
          DOCUMENT ME!
 void setOrderBy(String orderBy)
          DOCUMENT ME!
 void setStoreField(String storeField)
          DOCUMENT ME!
 void setVisibleFields(String visibleFields)
          DOCUMENT ME!
 
Methods inherited from class org.dbforms.taglib.EmbeddedData
addElement, doFinally, doStartTag, formatEmbeddedResultRows, getDbConnectionName, getDisableCache, getEscaper, getFormatClass, getName, setDbConnectionName, setDisableCache, setFormat, setFormatClass, setName, useCache
 
Methods inherited from class org.dbforms.taglib.DbBaseHandlerTag
customFormat, escapeHTML, getCustomFormatter, getDefaultValue, getEscaperClass, getField, getFieldObject, getFieldValue, getFormattedFieldValue, getFormatter, getFormFieldDefaultValue, getFormFieldName, getFormFieldValue, getLocale, getMaxlength, getOverrideFormFieldName, getParentForm, getPattern, getReadOnlyStyleClass, getStyleClass, hasOverrideFormFieldNameSet, hasReadOnlySet, renderOldValueHtmlInputField, renderPatternHtmlInputField, setCustomFormatter, setDefaultValue, setEscaperClass, setField, setFieldName, setMaxlength, setNullFieldValue, setOverrideFormFieldName, setParent, setPattern, setReadOnly, setReadOnlyStyleClass, typicalDefaultValue, writeOutSpecialValues
 
Methods inherited from class org.dbforms.taglib.TagSupportWithScriptHandler
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, doEndTag, 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 javax.servlet.jsp.tagext.TryCatchFinally
doFinally
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext
 

Constructor Detail

ConfTableData

public ConfTableData()
Method Detail

setFilter

public void setFilter(String string)
DOCUMENT ME!

Parameters:
string -

getFilter

public String getFilter()
DOCUMENT ME!

Returns:
the filter

setForeignTable

public void setForeignTable(String foreignTable)
DOCUMENT ME!

Parameters:
foreignTable - DOCUMENT ME!

getForeignTable

public String getForeignTable()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setOrderBy

public void setOrderBy(String orderBy)
DOCUMENT ME!

Parameters:
orderBy - DOCUMENT ME!

getOrderBy

public String getOrderBy()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setStoreField

public void setStoreField(String storeField)
DOCUMENT ME!

Parameters:
storeField - DOCUMENT ME!

getStoreField

public String getStoreField()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setVisibleFields

public void setVisibleFields(String visibleFields)
DOCUMENT ME!

Parameters:
visibleFields - DOCUMENT ME!

getVisibleFields

public String getVisibleFields()
DOCUMENT ME!

Returns:
DOCUMENT ME!

doCatch

public void doCatch(Throwable t)
             throws Throwable
Specified by:
doCatch in interface javax.servlet.jsp.tagext.TryCatchFinally
Overrides:
doCatch in class EmbeddedData
Throws:
Throwable
See Also:
TryCatchFinally.doCatch(java.lang.Throwable)

fetchData

protected List fetchData(Connection con)
                  throws SQLException
returns Hashtable with data. Its keys represent the "value"-fields for the DataContainer-Tag, its values represent the visible fields for the Multitags. (DataContainer are: select, radio, checkbox and a special flavour of Label).

Specified by:
fetchData in class EmbeddedData
Parameters:
con - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
SQLException


Copyright © 2002-2005 DbForms. All Rights Reserved.