java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.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. |
| 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 |
skin
private java.lang.String skin
-
records the name of the skin the page author wishes to use. defaults
to the "default" skin.
title
private java.lang.String title
-
stores the contents of the tag for this page. defaults to "".
factory
private SkinFactory factory
-
reference to the
SkinFactory object.
ManagerTag
public ManagerTag()
setSkin
public void setSkin(java.lang.String skinName)
-
Sets the value of the
skin attribute.
getSkin
public java.lang.String getSkin()
-
Returns the value of the local
skin variable.
setSkinFactory
private void setSkinFactory(java.lang.String skinName)
-
Creates a new (@link SkinFactory) object and sets a local reference.
getSkinFactory
public SkinFactory getSkinFactory()
-
Returns a reference to the local SkinFactory object.
setTitle
public void setTitle(java.lang.String value)
-
Sets the value of the
title variable.
getTitle
public java.lang.String getTitle()
-
Returns the value of the local
title variable.
doStartTag
public int doStartTag()
- doStartTag is called by the JSP container when the tag is encountered
doEndTag
public int doEndTag()
- doEndTag is called by the JSP container when the tag is closed