Package org.deltava.taglib.format
Class GeoFormatTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.format.GeoFormatTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
A JSP Tag to format geographic coordinates.
- 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 position and writes it to the JSP output writer.void
release()
Releases the tag's state data.final void
setClassName
(String cName) Updates the CSS class for this formatted number.void
setPos
(GeoLocation gp) Sets the latitude/longitude to display.Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
GeoFormatTag
public GeoFormatTag()
-
-
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)
-
setPos
Sets the latitude/longitude to display.- Parameters:
gp
- the GeoPosition to display
-
release
public void release()Releases the tag's state data.- Specified by:
release
in interfaceTag
- Overrides:
release
in classTagSupport
-
doEndTag
Formats the position 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
-