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

Quick Search    Search Deep

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

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended bycom.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.
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
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
PanelTag()
           
 
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 javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
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
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Field Detail

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.

Constructor Detail

PanelTag

public PanelTag()
Method Detail

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