Class MapDIVTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.BrowserInfoTag
org.deltava.taglib.html.ElementTag
org.deltava.taglib.googlemap.MapDIVTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
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 org.deltava.taglib.html.ElementTag
_classes, _data, _out
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
doEndTag()
Renders the Google Map DIV tag to the JSP output stream.int
Checks for the Google Maps API JavaScript tag, and loads the screen size from the user session.void
release()
Releases the tag's state variables.void
setHeight
(int h) Sets the preferred height of the map, assuming a screen height of 800 pixels.Methods inherited from class org.deltava.taglib.html.ElementTag
getFormIndexCount, getName, getParentFormTag, setClassName, setID, setNumericAttr, setPageContext, setStyle
Methods inherited from class org.deltava.taglib.BrowserInfoTag
getBrowserContext
Methods inherited from class javax.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:
release
in interfaceTag
- Overrides:
release
in classElementTag
-
doStartTag
Checks for the Google Maps API JavaScript tag, and loads the screen size from the user session.- Specified by:
doStartTag
in interfaceTag
- Overrides:
doStartTag
in classElementTag
- Returns:
- TagSupport.SKIP_BODY
- Throws:
JspException
- if the Google Maps JavaScript file is not included
-
doEndTag
Renders the Google Map DIV tag to the JSP output stream.- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classTagSupport
- Returns:
- TagSupport.EVAL_PAGE
- Throws:
JspException
- if an error occurs
-