org.dbforms.taglib
Class TextFormatterUtil

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.TextFormatterUtil
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag

public class TextFormatterUtil
extends AbstractDbBaseHandlerTag

Special class for TextFormatting

Author:
hkk
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
protected TextFormatterUtil(Field field, Locale locale, String pattern, Object obj)
          Creates a new TextFormatter object.
 
Method Summary
static String FormatText(Field field, HttpServletRequest request, String pattern, Object obj)
          DOCUMENT ME!
static String FormatText(Field field, Locale locale, String pattern, Object obj)
          DOCUMENT ME!
protected  Object getFieldObject()
          DOCUMENT ME!
 String getFormattedFieldValue()
          DOCUMENT ME!
 String getFormFieldName(DbFormTag parentForm)
          DOCUMENT ME!
protected  Locale getLocale()
          DOCUMENT ME!
 String renderPatternHtmlInputField()
          DOCUMENT ME!
 
Methods inherited from class org.dbforms.taglib.AbstractDbBaseHandlerTag
customFormat, doFinally, escapeHTML, getCustomFormatter, getDefaultValue, getEscaper, getEscaperClass, getField, getFieldValue, getFormatter, getFormFieldDefaultValue, getFormFieldName, getFormFieldValue, getMaxlength, getName, getParentForm, getPattern, getReadOnlyStyleClass, getStyleClass, hasReadOnlySet, renderOldValueHtmlInputField, setCustomFormatter, setDefaultValue, setEscaperClass, setField, setFieldName, setMaxlength, setNullFieldValue, setParent, setPattern, setReadOnly, setReadOnlyStyleClass, typicalDefaultValue, 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, 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

TextFormatterUtil

protected TextFormatterUtil(Field field,
                            Locale locale,
                            String pattern,
                            Object obj)
Creates a new TextFormatter object.

Parameters:
field - DOCUMENT ME!
locale - DOCUMENT ME!
pattern - DOCUMENT ME!
obj - DOCUMENT ME!
Method Detail

FormatText

public static String FormatText(Field field,
                                Locale locale,
                                String pattern,
                                Object obj)
DOCUMENT ME!

Parameters:
field - DOCUMENT ME!
locale - DOCUMENT ME!
pattern - DOCUMENT ME!
obj - DOCUMENT ME!
Returns:
DOCUMENT ME!

FormatText

public static String FormatText(Field field,
                                HttpServletRequest request,
                                String pattern,
                                Object obj)
DOCUMENT ME!

Parameters:
field - DOCUMENT ME!
request - DOCUMENT ME!
pattern - DOCUMENT ME!
obj - DOCUMENT ME!
Returns:
DOCUMENT ME!

getFormFieldName

public String getFormFieldName(DbFormTag parentForm)
DOCUMENT ME!

Parameters:
parentForm - DOCUMENT ME!
Returns:
DOCUMENT ME!

getFormattedFieldValue

public String getFormattedFieldValue()
DOCUMENT ME!

Overrides:
getFormattedFieldValue in class AbstractDbBaseHandlerTag
Returns:
DOCUMENT ME!

renderPatternHtmlInputField

public String renderPatternHtmlInputField()
DOCUMENT ME!

Overrides:
renderPatternHtmlInputField in class AbstractDbBaseHandlerTag
Returns:
DOCUMENT ME!

getFieldObject

protected Object getFieldObject()
DOCUMENT ME!

Overrides:
getFieldObject in class AbstractDbBaseHandlerTag
Returns:
DOCUMENT ME!

getLocale

protected Locale getLocale()
DOCUMENT ME!

Overrides:
getLocale in class AbstractDbBaseHandlerTag
Returns:
DOCUMENT ME!


Copyright © 2002-2006 DbForms. All Rights Reserved.