Class MapDIVTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
org.deltava.taglib.BrowserInfoTag
org.deltava.taglib.html.ElementTag
org.deltava.taglib.googlemap.MapDIVTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable
A JSP Tag to insert a DIV element to store a Google Map.
- Since:
- 1.0
- Version:
- 6.3
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class ElementTag
_classes, _data, _outFields inherited from class jakarta.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdoEndTag()Renders the Google Map DIV tag to the JSP output stream.intChecks for the Google Maps API JavaScript tag, and loads the screen size from the user session.voidrelease()Releases the tag's state variables.voidsetHeight(int h) Sets the preferred height of the map, assuming a screen height of 800 pixels.Methods inherited from class ElementTag
getFormIndexCount, getName, getParentFormTag, setClassName, setID, setNumericAttr, setPageContext, setStyleMethods inherited from class BrowserInfoTag
getBrowserContext, passedCAPTCHAMethods inherited from class jakarta.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
-
Constructor Details
-
MapDIVTag
public MapDIVTag()Creates a new map DIV Tag.
-
-
Method Details
-
setHeight
public void setHeight(int h) Sets the preferred height of the map, assuming a screen height of 800 pixels. The actual size of the map will be scaled relative to the client window.- Parameters:
h- the preferred height in pixels
-
release
public void release()Releases the tag's state variables.- Specified by:
releasein interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
releasein classElementTag
-
doStartTag
public int doStartTag() throws jakarta.servlet.jsp.JspExceptionChecks for the Google Maps API JavaScript tag, and loads the screen size from the user session.- Specified by:
doStartTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classElementTag- Returns:
- TagSupport.SKIP_BODY
- Throws:
jakarta.servlet.jsp.JspException- if the Google Maps JavaScript file is not included
-
doEndTag
public int doEndTag() throws jakarta.servlet.jsp.JspExceptionRenders the Google Map DIV tag to the JSP output stream.- Specified by:
doEndTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classjakarta.servlet.jsp.tagext.TagSupport- Returns:
- TagSupport.EVAL_PAGE
- Throws:
jakarta.servlet.jsp.JspException- if an error occurs
-