org.deltava.taglib.googlemap
Class InsertWeatherTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.deltava.taglib.googlemap.InsertWeatherTag
All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

public class InsertWeatherTag
extends TagSupport

A JSP Tag to insert weather.com Series List data into a JSP page.

Since:
3.0
Version:
3.0
Author:
Luke
See Also:
Serialized Form

Field Summary
static String USAGE_ATTR_NAME
           
 
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
InsertWeatherTag()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
          Executed before the Tag is rendered.
 void setLayers(String layers)
          Sets the layers to download image series data for.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USAGE_ATTR_NAME

public static final String USAGE_ATTR_NAME
See Also:
Constant Field Values
Constructor Detail

InsertWeatherTag

public InsertWeatherTag()
Method Detail

setLayers

public void setLayers(String layers)
Sets the layers to download image series data for.

Parameters:
layers - a comma-delimited list of weather imagery layers

doStartTag

public int doStartTag()
               throws JspException
Executed before the Tag is rendered. This will check for the presence of required JavaScript files in the request. Tags that do not require this check can override this method.

Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class TagSupport
Returns:
TagSupport.SKIP_BODY always
Throws:
IllegalStateException - if the Google Maps API or googleMaps.js not included in request
JspException

doEndTag

public int doEndTag()
             throws JspException
Specified by:
doEndTag in interface Tag
Overrides:
doEndTag in class TagSupport
Throws:
JspException


Copyright © 2004-2009 Global Virtual Airlines Group. All Rights Reserved.