org.deltava.taglib.content
Class InsertPICSTag

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

public class InsertPICSTag
extends TagSupport

A JSP tag to insert an PICS-1.1 content rating.

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

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
InsertPICSTag()
          Initializes the JSP Tag.
 
Method Summary
 int doEndTag()
          Renders the PICS-1.1 content to the JSP output stream.
 void release()
          Releases the Tag's state data.
 void setIcra(boolean doICRA)
          Controls whether an ICRA content rating tag should be displayed.
 void setSafeSurf(boolean doSafeSurf)
          Controls whether a SafeSurf content rating tag should be displayed.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsertPICSTag

public InsertPICSTag()
Initializes the JSP Tag.

Method Detail

setIcra

public void setIcra(boolean doICRA)
Controls whether an ICRA content rating tag should be displayed.

Parameters:
doICRA - TRUE if the rating tag should be shown, otherwise FALSE

setSafeSurf

public void setSafeSurf(boolean doSafeSurf)
Controls whether a SafeSurf content rating tag should be displayed.

Parameters:
doSafeSurf - TRUE if the rating tag should be shown, otherwise FALSE

release

public void release()
Releases the Tag's state data.

Specified by:
release in interface Tag
Overrides:
release in class TagSupport

doEndTag

public int doEndTag()
             throws JspException
Renders the PICS-1.1 content to the JSP output stream. No content will be written if no rating data is found or selected.

Specified by:
doEndTag in interface Tag
Overrides:
doEndTag in class TagSupport
Returns:
TagSupport.EVAL_PAGE
Throws:
JspException - if an I/O error occurs


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