java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.newsfighter.layout.jsptags.PanelTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class PanelTag
- extends javax.servlet.jsp.tagext.BodyTagSupport
PanelTag lays out a table structure for the top, bottom, left, and
right images and an internal display area for the panel content.
|
Field Summary |
private SkinFactory |
factory
A reference to the local SkinFactory object. |
private ManagerTag |
manager
A reference to the enclosing ManagerTag. |
private java.lang.String |
skin
Holds the value of the skin attribute from the JSP tag. |
private java.lang.String |
type
Holds the value of the type attribute from the JSP tag. |
|
Method Summary |
int |
doEndTag()
doEndTag is called by the JSP container when the tag is closed |
int |
doStartTag()
doStartTag is called by the JSP container when the tag is encountered |
private void |
getManagerSkin()
Gets a reference to the ManagerTag's instance of
SkinFactory. |
java.lang.String |
getSkin()
Returns the value of this.skin. |
java.lang.String |
getType()
Returns the value of this.type |
private void |
initManager()
Creates a reference to the enclosing ManagerTag. |
private void |
initSkinSystem()
Initializes the SkinFactory and ManagerTag
objects. |
void |
setSkin(java.lang.String skinName)
Sets the value of this.skin from the JSP tag attribute. |
private void |
setSkinFactory(java.lang.String skinName)
Creates a new SkinFactory object; uses the
skinName attribute to build a path to the relevant
skin.xml file. |
void |
setType(java.lang.String value)
Sets the value of this.type to the JSP attribute value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
factory
private SkinFactory factory
-
A reference to the local SkinFactory object. This value is usually
inherited from the ManagerTag, but
Panel can create its
own SkinFactory if the user specifies a different skin
in the JSP tag.
manager
private ManagerTag manager
-
A reference to the enclosing
ManagerTag.
skin
private java.lang.String skin
-
Holds the value of the
skin attribute from the JSP tag.
type
private java.lang.String type
-
Holds the value of the
type attribute from the JSP tag.
In the skin.xml file, each panel has a unique type
attribute, and this is used in the JSP tag to signify which panel
layout to use.
PanelTag
public PanelTag()
initSkinSystem
private void initSkinSystem()
-
Initializes the
SkinFactory and ManagerTag
objects. This function checks the value of this.skin
and loads a new SkinFactory if neccessary.
setSkin
public void setSkin(java.lang.String skinName)
-
Sets the value of
this.skin from the JSP tag attribute.
getSkin
public java.lang.String getSkin()
-
Returns the value of this.skin.
setSkinFactory
private void setSkinFactory(java.lang.String skinName)
-
Creates a new
SkinFactory object; uses the
skinName attribute to build a path to the relevant
skin.xml file.
getManagerSkin
private void getManagerSkin()
-
Gets a reference to the
ManagerTag's instance of
SkinFactory.
initManager
private void initManager()
-
Creates a reference to the enclosing
ManagerTag.
setType
public void setType(java.lang.String value)
-
Sets the value of
this.type to the JSP attribute value.
getType
public java.lang.String getType()
-
Returns the value of
this.type
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