FormatTag Class

com.bea.wlw.netui.tags.html
FormatTag Class

public abstract class FormatTag

    extends AbstractBaseTag

Abstract base class for formatting tags. Provides the basic formatting properties, as well as the base for the internal FormatTag.Formatter class.


Hierarchy
Object
  TagSupport
    BodyTagSupport
      AbstractBaseTag
        FormatTag
All Implemented Interfaces

BodyTag, IterationTag, Serializable, Tag
Direct Known Subclasses

FormatDate, FormatNumber, FormatString

Field Summary

protected String
pattern
The pattern used by a FormatTag to do its formatting.
   
Fields from  com.bea.wlw.netui.tags.AbstractBaseTag
ATTR_GENERAL, ATTR_GENERAL_EXPRESSION, ATTR_JAVASCRIPT, ATTR_STYLE, CLASS, ID, JAVASCRIPT_STATUS, NAME, NETUI_UNIQUE_CNT, ONCLICK, ONDBLCLICK, ONKEYDOWN, ONKEYPRESS, ONKEYUP, ONMOUSEDOWN, ONMOUSEMOVE, ONMOUSEOUT, ONMOUSEOVER, ONMOUSEUP, STYLE, TABINDEX
 
Fields from  javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields from  javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 

Constructor Summary

FormatTag()

 

Method Summary

public int
doStartTag()
Create the internal Formatter instance and perform the formatting.
public String
getCountry()
Gets the country code for the locale.
public String
getLanguage()
Gets the language code for the locale.
public Locale
getLocale()
Returns the locale based on the country and language.
public String
getPattern()
Gets the pattern to be used by this FormatTag.
protected void
localRelease()
Release any acquired resources.
public void
setCountry(String country)
Sets the country code for the locale.
public void
setLanguage(String language)
Sets the language code for the locale.
public void
setPattern(String pattern)
Sets the pattern to be used by this FormatTag.
 
Methods from  com.bea.wlw.netui.tags.AbstractBaseTag
addTagIdMapping, evaluateAttributeToString, filter, filter, getJavaScriptUtils, getNearestForm, getScriptReporter, getTagName, getUserLocale, registerTagError, release, renderAttribute, rewriteName, write
 
Methods from  javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doEndTag, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods from  javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   
Methods from interface javax.servlet.jsp.tagext.BodyTag
doInitBody, setBodyContent
 
Methods from interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
 
Methods from interface javax.servlet.jsp.tagext.Tag
doEndTag, doStartTag, getParent, release, setPageContext, setParent
 

Field Detail

pattern

protected String pattern
The pattern used by a FormatTag to do its formatting.

 

Constructor Detail

FormatTag

public FormatTag()
 

Method Detail

doStartTag() Method

public int doStartTag()
throws JspException
Create the internal Formatter instance and perform the formatting.

Overrides
BodyTagSupport.doStartTag()

Exceptions

JspException
if a JSP exception has occurred

getCountry() Method

public String getCountry()
Gets the country code for the locale.

Returns

the country code.

getLanguage() Method

public String getLanguage()
Gets the language code for the locale.

Returns

the language code

getLocale() Method

public Locale getLocale()
Returns the locale based on the country and language.

Returns

the locale

getPattern() Method

public String getPattern()
Gets the pattern to be used by this FormatTag.

Returns

the pattern.

localRelease() Method

protected void localRelease()
Release any acquired resources.

Overrides
AbstractBaseTag.localRelease()

setCountry(String) Method

public void setCountry(String country)
Sets the country code for the locale.

Parameters

country
- the country code

setLanguage(String) Method

public void setLanguage(String language)
Sets the language code for the locale.

Parameters

language
- the language code

setPattern(String) Method

public void setPattern(String pattern)
Sets the pattern to be used by this FormatTag.

Parameters

pattern
- the pattern to be used