Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.newsfighter.layout.jsptags
Class ManagerTag  view ManagerTag download ManagerTag.java

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bycom.newsfighter.layout.jsptags.ManagerTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class ManagerTag
extends javax.servlet.jsp.tagext.TagSupport

ManagerTag creates an environment for the panels to reside in. It has several important functions.

First, it creates the <html>, <head>, <link>, <title> and <body> elements--essentially the entire first part of an html document. This is restrictive because it prevents the user from specifying <meta> content and special <head> content (such as local style information or scripting code. Because of this we're going to reimplement the class to allow the "autohead" feature to be disabled.

Second, it takes a skin attribute and uses it to create an instance of the (@link SkinFactory) object. All of the layout components which reside within the ManagerTag will be able to access this object, or create their own if they must.


Field Summary
private  SkinFactory factory
           reference to the SkinFactory object.
private  java.lang.String skin
           records the name of the skin the page author wishes to use.
private  java.lang.String title
           stores the contents of the tag for this page.</TD> </TR> </TABLE>  <A NAME="fields_inherited_from_class_javax.servlet.jsp.tagext.TagSupport"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TD><B>Fields inherited from class javax.servlet.jsp.tagext.<a href=/docs/api/javax/servlet/jsp/tagext/TagSupport.html#TagSupport>TagSupport</a></B></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><a href=/docs/api/javax/servlet/jsp/tagext/TagSupport.html#id>id</a>, <a href=/docs/api/javax/servlet/jsp/tagext/TagSupport.html#pageContext>pageContext</a></CODE></TD> </TR> </TABLE>  <A NAME="fields_inherited_from_class_javax.servlet.jsp.tagext.IterationTag"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TD><B>Fields inherited from interface javax.servlet.jsp.tagext.<a href=/docs/api/javax/servlet/jsp/tagext/IterationTag.html#IterationTag>IterationTag</a></B></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><a href=/docs/api/javax/servlet/jsp/tagext/IterationTag.html#EVAL_BODY_AGAIN>EVAL_BODY_AGAIN</a></CODE></TD> </TR> </TABLE>  <A NAME="fields_inherited_from_class_javax.servlet.jsp.tagext.Tag"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TD><B>Fields inherited from interface javax.servlet.jsp.tagext.<a href=/docs/api/javax/servlet/jsp/tagext/Tag.html#Tag>Tag</a></B></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><a href=/docs/api/javax/servlet/jsp/tagext/Tag.html#EVAL_BODY_INCLUDE>EVAL_BODY_INCLUDE</a>, <a href=/docs/api/javax/servlet/jsp/tagext/Tag.html#EVAL_PAGE>EVAL_PAGE</a>, <a href=/docs/api/javax/servlet/jsp/tagext/Tag.html#SKIP_BODY>SKIP_BODY</a>, <a href=/docs/api/javax/servlet/jsp/tagext/Tag.html#SKIP_PAGE>SKIP_PAGE</a></CODE></TD> </TR> </TABLE>   <!--cs--> <A NAME="constructor_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Constructor Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="/docs/api/com/newsfighter/layout/jsptags/ManagerTag.html#ManagerTag()">ManagerTag</A></B>()</CODE> <BR>            </TD> </TR> </TABLE>   <!--ms--> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Method Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="/docs/api/com/newsfighter/layout/jsptags/ManagerTag.html#doEndTag()">doEndTag</A></B>()</CODE> <BR>           doEndTag is called by the JSP container when the tag is closed</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="/docs/api/com/newsfighter/layout/jsptags/ManagerTag.html#doStartTag()">doStartTag</A></B>()</CODE> <BR>           doStartTag is called by the JSP container when the tag is encountered</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <a href=/docs/api/java/lang/String.html>java.lang.String</a></CODE></FONT></TD> <TD><CODE><B><A HREF="/docs/api/com/newsfighter/layout/jsptags/ManagerTag.html#getSkin()">getSkin</A></B>()</CODE> <BR>            Returns the value of the local <code>skin</code> variable.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> SkinFactory</CODE></FONT></TD> <TD><CODE><B><A HREF="/docs/api/com/newsfighter/layout/jsptags/ManagerTag.html#getSkinFactory()">getSkinFactory</A></B>()</CODE> <BR>            Returns a reference to the local SkinFactory object.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <a href=/docs/api/java/lang/String.html>java.lang.String</a></CODE></FONT></TD> <TD><CODE><B><A HREF="/docs/api/com/newsfighter/layout/jsptags/ManagerTag.html#getTitle()">getTitle</A></B>()</CODE> <BR>            Returns the value of the local <code>title</code> variable.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="/docs/api/com/newsfighter/layout/jsptags/ManagerTag.html#setSkin(java.lang.String)">setSkin</A></B>(<a href=/docs/api/java/lang/String.html>java.lang.String</a> skinName)</CODE> <BR>            Sets the value of the <code>skin</code> attribute.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>private  void</CODE></FONT></TD> <TD><CODE><B><A HREF="/docs/api/com/newsfighter/layout/jsptags/ManagerTag.html#setSkinFactory(java.lang.String)">setSkinFactory</A></B>(<a href=/docs/api/java/lang/String.html>java.lang.String</a> skinName)</CODE> <BR>            Creates a new (@link SkinFactory) object and sets a local reference.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="/docs/api/com/newsfighter/layout/jsptags/ManagerTag.html#setTitle(java.lang.String)">setTitle</A></B>(<a href=/docs/api/java/lang/String.html>java.lang.String</a> value)</CODE> <BR>            Sets the value of the <code>title</code> variable.</TD> </TR> </TABLE>  <A NAME="methods_inherited_from_class_javax.servlet.jsp.tagext.TagSupport"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TD><B>Methods inherited from class javax.servlet.jsp.tagext.<a href=/docs/api/javax/servlet/jsp/tagext/TagSupport.html#TagSupport>TagSupport</a></B></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><a href=/docs/api/javax/servlet/jsp/tagext/TagSupport.html#doAfterBody>doAfterBody</a>, <a href=/docs/api/javax/servlet/jsp/tagext/TagSupport.html#findAncestorWithClass>findAncestorWithClass</a>, <a href=/docs/api/javax/servlet/jsp/tagext/TagSupport.html#getId>getId</a>, <a href=/docs/api/javax/servlet/jsp/tagext/TagSupport.html#getParent>getParent</a>, <a href=/docs/api/javax/servlet/jsp/tagext/TagSupport.html#getValue>getValue</a>, <a href=/docs/api/javax/servlet/jsp/tagext/TagSupport.html#getValues>getValues</a>, <a href=/docs/api/javax/servlet/jsp/tagext/TagSupport.html#release>release</a>, <a href=/docs/api/javax/servlet/jsp/tagext/TagSupport.html#removeValue>removeValue</a>, <a href=/docs/api/javax/servlet/jsp/tagext/TagSupport.html#setId>setId</a>, <a href=/docs/api/javax/servlet/jsp/tagext/TagSupport.html#setPageContext>setPageContext</a>, <a href=/docs/api/javax/servlet/jsp/tagext/TagSupport.html#setParent>setParent</a>, <a href=/docs/api/javax/servlet/jsp/tagext/TagSupport.html#setValue>setValue</a></CODE></TD> </TR> </TABLE>  <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TD><B>Methods inherited from class java.lang.<a href=/docs/api/java/lang/Object.html#Object>Object</a></B></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><a href=/docs/api/java/lang/Object.html#clone>clone</a>, <a href=/docs/api/java/lang/Object.html#equals>equals</a>, <a href=/docs/api/java/lang/Object.html#finalize>finalize</a>, <a href=/docs/api/java/lang/Object.html#getClass>getClass</a>, <a href=/docs/api/java/lang/Object.html#hashCode>hashCode</a>, <a href=/docs/api/java/lang/Object.html#notify>notify</a>, <a href=/docs/api/java/lang/Object.html#notifyAll>notifyAll</a>, <a href=/docs/api/java/lang/Object.html#toString>toString</a>, <a href=/docs/api/java/lang/Object.html#wait>wait</a>, <a href=/docs/api/java/lang/Object.html#wait>wait</a>, <a href=/docs/api/java/lang/Object.html#wait>wait</a></CODE></TD> </TR> </TABLE>   <P> <!--fd--> <A NAME="field_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Field Detail</B></FONT></TD> </TR> </TABLE> <A NAME="skin"><!-- --></A><H3> skin</H3> <PRE> private <a href=/docs/api/java/lang/String.html>java.lang.String</a> <B>skin</B></PRE> <DL> <DD><!-- =============================================================== --> records the name of the skin the page author wishes to use. defaults to the "default" skin. <P> <DL> </DL> </DL> <HR> <A NAME="title"><!-- --></A><H3> title</H3> <PRE> private <a href=/docs/api/java/lang/String.html>java.lang.String</a> <B>title</B></PRE> <DL> <DD><!-- =============================================================== --> stores the contents of the <title> tag for this page. defaults to "". <P> <DL> </DL> </DL> <HR> <A NAME="factory"><!-- --></A><H3> factory</H3> <PRE> private SkinFactory <B>factory</B></PRE> <DL> <DD><!-- =============================================================== --> reference to the <CODE>SkinFactory</CODE> object. <P> <DL> </DL> </DL> <!--cd--> <A NAME="constructor_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Constructor Detail</B></FONT></TD> </TR> </TABLE> <A NAME="ManagerTag()"><!-- --></A><H3> ManagerTag</H3> <PRE> public <B>ManagerTag</B>()</PRE> <DL> </DL> <!--md--> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Method Detail</B></FONT></TD> </TR> </TABLE> <A NAME="setSkin(java.lang.String)"><!-- --></A><H3> setSkin</H3> <PRE> public void <B>setSkin</B>(<a href=/docs/api/java/lang/String.html>java.lang.String</a> skinName)</PRE> <DL> <DD><!-- =============================================================== --> Sets the value of the <code>skin</code> attribute. <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getSkin()"><!-- --></A><H3> getSkin</H3> <PRE> public <a href=/docs/api/java/lang/String.html>java.lang.String</a> <B>getSkin</B>()</PRE> <DL> <DD><!-- =============================================================== --> Returns the value of the local <code>skin</code> variable. <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setSkinFactory(java.lang.String)"><!-- --></A><H3> setSkinFactory</H3> <PRE> private void <B>setSkinFactory</B>(<a href=/docs/api/java/lang/String.html>java.lang.String</a> skinName)</PRE> <DL> <DD><!-- =============================================================== --> Creates a new (@link SkinFactory) object and sets a local reference. <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getSkinFactory()"><!-- --></A><H3> getSkinFactory</H3> <PRE> public SkinFactory <B>getSkinFactory</B>()</PRE> <DL> <DD><!-- =============================================================== --> Returns a reference to the local SkinFactory object. <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setTitle(java.lang.String)"><!-- --></A><H3> setTitle</H3> <PRE> public void <B>setTitle</B>(<a href=/docs/api/java/lang/String.html>java.lang.String</a> value)</PRE> <DL> <DD><!-- =============================================================== --> Sets the value of the <code>title</code> variable. <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getTitle()"><!-- --></A><H3> getTitle</H3> <PRE> public <a href=/docs/api/java/lang/String.html>java.lang.String</a> <B>getTitle</B>()</PRE> <DL> <DD><!-- =============================================================== --> Returns the value of the local <code>title</code> variable. <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="doStartTag()"><!-- --></A><H3> doStartTag</H3> <PRE> public int <B>doStartTag</B>()</PRE> <DL> <DD>doStartTag is called by the JSP container when the tag is encountered <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="doEndTag()"><!-- --></A><H3> doEndTag</H3> <PRE> public int <B>doEndTag</B>()</PRE> <DL> <DD>doEndTag is called by the JSP container when the tag is closed <P> <DD><DL> </DL> </DD> </DL> <HR> <script type="text/javascript" src="/shared/g.txt"></script> <!--bn--> <A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev">  <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ManagerTag.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-1"> <B><a href=/ target=_top>Home</a> >> <a href=/docs/api/overview-summary.html target=_top>All</a> >> <a target=_top href=/docs/api/com/overview-summary.html>com</a> >> <a target=_top href=/docs/api/com/newsfighter/overview-summary.html>newsfighter</a> >> <a target=_top href=/docs/api/com/newsfighter/layout/overview-summary.html>layout</a> >> <a target=_top href=overview-summary.html>[ jsptags overview ]</a></B></FONT></TD> <TD ALIGN="right" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="/docs/api/com/newsfighter/layout/jsptags/LogoTag.html" title="class in com.newsfighter.layout.jsptags"><B>PREV CLASS</B></A>  <A HREF="/docs/api/com/newsfighter/layout/jsptags/PanelsTag.html" title="class in com.newsfighter.layout.jsptags"><B>NEXT CLASS</B></A></FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <a href=/docs/api/com/newsfighter/layout/jsptags/ManagerTag.html><img src='/dj.gif' alt='JavaDoc of com.newsfighter.layout.jsptags.ManagerTag' border=0> JAVADOC</a> | <a href=/html/api/com/newsfighter/layout/jsptags/ManagerTag.java.html><img src='/j.gif' alt='Sourc code of com.newsfighter.layout.jsptags.ManagerTag' border=0> SOURCE</a> | <a href=/download.jsp?q=com.newsfighter.layout.jsptags.ManagerTag><img src='/d.gif' alt='Download com.newsfighter.layout.jsptags.ManagerTag' border=0> DOWNLOAD</a> | NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A><!--ebn--> <HR> </div></div> </BODY> </HTML>