org.dbforms.taglib
Class AbstractDbBaseInputTag

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.AbstractDbBaseInputTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
DbDateFieldTag, DbFileTag, DbTextAreaTag, DbTextFieldTag

public abstract class AbstractDbBaseInputTag
extends AbstractDbBaseHandlerTag

Abstract base class for the various input tags. original author Craig R. McClanahan original author Don Clasen,

Author:
Joachim Peer (modified this class for DbForms-Project)
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
AbstractDbBaseInputTag()
           
 
Method Summary
 int doEndTag()
          Process the end of this tag.
 void doFinally()
          DOCUMENT ME!
 int doStartTag()
          Process the start of this tag.
 String getCols()
          Return the number of columns for this field.
protected  String getFormFieldValue()
          gets the formfield value
 String getMaxlength()
          Return the maximum length allowed.
 String getOverrideValue()
          Insert the method's description here.
 String getRows()
          Return the number of rows for this field.
 String getSize()
          Return the size of this field (synonym for getCols()).
 boolean hasHiddenSet()
          Insert the method's description here.
protected  String prepareKeys()
          DOCUMENT ME!
protected  String prepareName()
          DOCUMENT ME!
protected  String prepareSize()
          DOCUMENT ME!
protected  String prepareType()
          DOCUMENT ME!
protected  String prepareValue()
          DOCUMENT ME!
 void setCols(String cols)
          Set the number of columns for this field.
 void setHidden(String newHidden)
          Insert the method's description here.
 void setMaxlength(String maxlength)
          Set the maximum length allowed.
 void setOverrideValue(String newOverrideValue)
          Insert the method's description here.
 void setRows(String rows)
          Set the number of rows for this field.
 void setSize(String size)
          Set the size of this field (synonym for setCols()).
protected  void writeOutSpecialValues()
          writes out all hidden fields for the input fields
 
Methods inherited from class org.dbforms.taglib.AbstractDbBaseHandlerTag
customFormat, escapeHTML, getCustomFormatter, getDefaultValue, getEscaper, getEscaperClass, getField, getFieldObject, getFieldValue, getFormattedFieldValue, getFormatter, getFormFieldDefaultValue, getFormFieldName, getLocale, getName, getParentForm, getPattern, getReadOnlyStyleClass, getStyleClass, hasReadOnlySet, renderOldValueHtmlInputField, renderPatternHtmlInputField, setCustomFormatter, setDefaultValue, setEscaperClass, setField, setFieldName, setNullFieldValue, setParent, setPattern, setReadOnly, setReadOnlyStyleClass, typicalDefaultValue
 
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 javax.servlet.jsp.tagext.Tag
getParent, setPageContext
 

Constructor Detail

AbstractDbBaseInputTag

public AbstractDbBaseInputTag()
Method Detail

setCols

public void setCols(String cols)
Set the number of columns for this field.

Parameters:
cols - The new number of columns

getCols

public String getCols()
Return the number of columns for this field.

Returns:
DOCUMENT ME!

setHidden

public void setHidden(String newHidden)
Insert the method's description here. Creation date: (2001-06-26 16:19:01)

Parameters:
newHidden - java.lang.String

setMaxlength

public void setMaxlength(String maxlength)
Set the maximum length allowed.

Overrides:
setMaxlength in class AbstractDbBaseHandlerTag
Parameters:
maxlength - The new maximum length

getMaxlength

public String getMaxlength()
Return the maximum length allowed.

Overrides:
getMaxlength in class AbstractDbBaseHandlerTag
Returns:
DOCUMENT ME!

setOverrideValue

public void setOverrideValue(String newOverrideValue)
Insert the method's description here. Creation date: (2001-06-27 17:44:16)

Parameters:
newOverrideValue - java.lang.String

getOverrideValue

public String getOverrideValue()
Insert the method's description here. Creation date: (2001-06-27 17:44:16)

Returns:
java.lang.String

setRows

public void setRows(String rows)
Set the number of rows for this field.

Parameters:
rows - The new number of rows

getRows

public String getRows()
Return the number of rows for this field.

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
Process the end of this tag. The default implementation does nothing.

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 - if a JSP exception has occurred

doFinally

public void doFinally()
DOCUMENT ME!

Overrides:
doFinally in class AbstractDbBaseHandlerTag
See Also:
TryCatchFinally.doFinally()

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Process the start of this tag. The default implementation does nothing.

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 - if a JSP exception has occurred

hasHiddenSet

public boolean hasHiddenSet()
Insert the method's description here. Creation date: (2001-06-26 16:19:01)

Returns:
java.lang.String

getFormFieldValue

protected String getFormFieldValue()
gets the formfield value

Overrides:
getFormFieldValue in class AbstractDbBaseHandlerTag
Returns:
String

prepareKeys

protected String prepareKeys()
DOCUMENT ME!

Returns:
DOCUMENT ME!

prepareName

protected String prepareName()
DOCUMENT ME!

Returns:
DOCUMENT ME!

prepareSize

protected String prepareSize()
DOCUMENT ME!

Returns:
DOCUMENT ME!

prepareType

protected String prepareType()
DOCUMENT ME!

Returns:
DOCUMENT ME!

prepareValue

protected String prepareValue()
DOCUMENT ME!

Returns:
DOCUMENT ME!

writeOutSpecialValues

protected void writeOutSpecialValues()
                              throws javax.servlet.jsp.JspException
writes out all hidden fields for the input fields

Overrides:
writeOutSpecialValues in class AbstractDbBaseHandlerTag
Throws:
javax.servlet.jsp.JspException


Copyright © 2002-2006 DbForms. All Rights Reserved.