|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport javax.servlet.jsp.tagext.BodyTagSupport org.dbforms.taglib.TagSupportWithScriptHandler org.dbforms.taglib.DbBaseHandlerTag
public abstract class DbBaseHandlerTag
Base class for db-tags that render form data-elements capable of including JavaScript event handlers and/or CSS Style attributes.
Furthermore, this base class provides base functionality for DataBase driven form widgets: it initializes the associated DbFormsConfig and provides various field-properties & methods (i.e getFormFieldName and getFormFieldValue)
the html/css releated properties and methods where originally done by Don Clasen for Apache Groups's Jakarta-Struts project.
Added support for Custom Formatter class, see SetCustomFormatter.java Author Neal Katz .
Added support for overrideFormFieldName attribute. useful when working with customcontrollers. Author Neal Katz .
orginally done by Don Clasen
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 | |
---|---|
DbBaseHandlerTag()
|
Method Summary | |
---|---|
protected String |
customFormat(String s)
DOCUMENT ME! |
void |
doFinally()
DOCUMENT ME! |
protected String |
escapeHTML(String html)
Just a shortcut for calling the escaper |
protected String |
getCustomFormatter()
DOCUMENT ME! |
String |
getDefaultValue()
"value" is only used if parent tag is in "insert-mode" (footer, etc.) |
IEscaper |
getEscaper()
DOCUMENT ME! |
String |
getEscaperClass()
DOCUMENT ME! |
Field |
getField()
DOCUMENT ME! |
protected Object |
getFieldObject()
return the object value from the database |
protected String |
getFieldValue()
fetches the value from the database. if no value is given, contents of attribute nullFieldValue is returned. |
protected String |
getFormattedFieldValue()
fetches the value from the database. if no value is given, contents of attribute nullFieldValue is returned. |
protected Format |
getFormatter()
formatting a value |
protected String |
getFormFieldDefaultValue()
DOCUMENT ME! |
protected String |
getFormFieldName()
generates the decoded name for the html-widget. |
protected String |
getFormFieldValue()
Philip Grunikiewicz 2001-05-31 determinates value of the html-widget. |
protected Locale |
getLocale()
DOCUMENT ME! |
String |
getMaxlength()
Gets the maxlength |
String |
getName()
DOCUMENT ME! |
protected String |
getOverrideFormFieldName()
DOCUMENT ME! |
protected DbFormTag |
getParentForm()
DOCUMENT ME! |
String |
getPattern()
DOCUMENT ME! |
String |
getReadOnlyStyleClass()
Returns the style class attribute for read-only mode. |
String |
getStyleClass()
DOCUMENT ME! |
protected boolean |
hasOverrideFormFieldNameSet()
DOCUMENT ME! |
boolean |
hasReadOnlySet()
Returns the read-only attribute. |
protected String |
renderOldValueHtmlInputField()
writes out the field value in hidden field _old |
protected String |
renderPatternHtmlInputField()
writes out the current used format to the page |
void |
setCustomFormatter(String string)
DOCUMENT ME! |
void |
setDefaultValue(String value)
DOCUMENT ME! |
void |
setEscaperClass(String string)
DOCUMENT ME! |
protected void |
setField(Field field)
DOCUMENT ME! |
void |
setFieldName(String fieldName)
DOCUMENT ME! |
void |
setMaxlength(String maxlength)
Sets the maxlength |
void |
setNullFieldValue(String nullFieldValue)
Sets the nullFieldValue attribute of the DbLabelTag object |
void |
setOverrideFormFieldName(String string)
DOCUMENT ME! |
void |
setParent(javax.servlet.jsp.tagext.Tag parent)
DOCUMENT ME! |
void |
setPattern(String string)
DOCUMENT ME! |
void |
setReadOnly(String readOnly)
Sets the read-only attribute. |
void |
setReadOnlyStyleClass(String readOnlyStyleClass)
Sets the style class attribute for read-only mode. |
protected String |
typicalDefaultValue()
DOCUMENT ME! |
protected void |
writeOutSpecialValues()
writes out all hidden fields for the input fields |
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, doStartTag, 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 |
---|
public DbBaseHandlerTag()
Method Detail |
---|
public void setCustomFormatter(String string)
string
- public void setDefaultValue(String value)
value
- DOCUMENT ME!public String getDefaultValue()
public IEscaper getEscaper()
public void setEscaperClass(String string)
string
- public String getEscaperClass()
public Field getField()
public void setFieldName(String fieldName)
fieldName
- DOCUMENT ME!protected Format getFormatter()
public void setMaxlength(String maxlength)
maxlength
- The maxlength to setpublic String getMaxlength()
public String getName()
public void setNullFieldValue(String nullFieldValue)
nullFieldValue
- The new nullFieldValue valuepublic void setOverrideFormFieldName(String string)
string
- public void setParent(javax.servlet.jsp.tagext.Tag parent)
setParent
in interface javax.servlet.jsp.tagext.Tag
setParent
in class javax.servlet.jsp.tagext.TagSupport
parent
- DOCUMENT ME!public void setPattern(String string)
string
- public String getPattern()
public void setReadOnly(String readOnly)
readOnly
- DOCUMENT ME!public void setReadOnlyStyleClass(String readOnlyStyleClass)
readOnlyStyleClass
- DOCUMENT ME!public String getReadOnlyStyleClass()
public String getStyleClass()
getStyleClass
in class TagSupportWithScriptHandler
protected String customFormat(String s)
s
-
public void doFinally()
doFinally
in class TagSupportWithScriptHandler
TryCatchFinally.doFinally()
public boolean hasReadOnlySet()
protected String getCustomFormatter()
protected void setField(Field field)
field
- DOCUMENT ME!protected Object getFieldObject()
protected String getFieldValue()
protected String getFormFieldDefaultValue()
protected String getFormFieldName()
protected String getFormFieldValue()
protected String getFormattedFieldValue()
protected Locale getLocale()
protected String getOverrideFormFieldName()
protected DbFormTag getParentForm()
protected String escapeHTML(String html)
html
- string to escape
protected boolean hasOverrideFormFieldNameSet()
protected String renderOldValueHtmlInputField()
protected String renderPatternHtmlInputField()
javax.servlet.jsp.JspException
protected String typicalDefaultValue()
protected void writeOutSpecialValues() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |