Package org.deltava.taglib.format
Class HexFormatTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.format.HexFormatTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
A class to support the rendering of numbers in hexadecimal.
- Since:
- 1.0
- Version:
- 7.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
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
-
Method Summary
Modifier and TypeMethodDescriptionint
doEndTag()
Formats the number and writes it to the JSP output writer.final void
setClassName
(String cName) Updates the CSS class for this formatted number.final void
setValue
(long value) Sets the value to format.Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
HexFormatTag
public HexFormatTag()
-
-
Method Details
-
setClassName
Updates the CSS class for this formatted number. This will automatically enclose the output in a <SPAN> tag.- Parameters:
cName
- the class Name(s)
-
setValue
public final void setValue(long value) Sets the value to format.- Parameters:
value
- the value to format
-
doEndTag
Formats the number and writes it to the JSP output writer.- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classTagSupport
- Returns:
- TagSupport.EVAL_PAGE
- Throws:
JspException
- if an error occurs
-