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
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
|
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.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 |
pattern
protected String
pattern
- The pattern used by a FormatTag to do its formatting.
FormatTag
public FormatTag()
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