com.aoindustries.website.skintags
Class PageTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by com.aoindustries.website.skintags.PageTag
All Implemented Interfaces:
AuthorAttribute, CopyrightAttribute, DescriptionAttribute, EncryptAttribute, KeywordsAttribute, MetasAttribute, NavImageAltAttribute, PathAttribute, TitleAttribute, java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
ChildTag, ParentTag

public abstract class PageTag
extends javax.servlet.jsp.tagext.BodyTagSupport
implements KeywordsAttribute, DescriptionAttribute, AuthorAttribute, CopyrightAttribute, PathAttribute, MetasAttribute, TitleAttribute, NavImageAltAttribute, EncryptAttribute

Common parent to parent and child tags.

Author:
AO Industries, Inc.
See Also:
Serialized Form

Field Summary
 
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
PageTag()
           
 
Method Summary
 void addMeta(Meta meta)
           
 int doEndTag()
           
protected abstract  int doEndTag(java.lang.String title, java.lang.String navImageAlt, java.lang.String description, java.lang.String author, java.lang.String copyright, boolean useEncryption, java.lang.String path, java.lang.String keywords, java.util.Collection<Meta> metas)
           
 int doStartTag()
           
 java.lang.String getAuthor()
           
 java.lang.String getCopyright()
           
 java.lang.String getDescription()
           
 boolean getEncrypt()
           
 java.lang.String getKeywords()
           
 java.util.Collection<Meta> getMetas()
           
 java.lang.String getNavImageAlt()
           
 java.lang.String getPath()
           
 java.lang.String getTitle()
           
protected  void init()
           
 void setAuthor(java.lang.String author)
           
 void setCopyright(java.lang.String copyright)
           
 void setDescription(java.lang.String description)
           
 void setEncrypt(boolean encrypt)
           
 void setKeywords(java.lang.String keywords)
           
 void setNavImageAlt(java.lang.String navImageAlt)
           
 void setPath(java.lang.String path)
           
 void setTitle(java.lang.String title)
           
 
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
 

Constructor Detail

PageTag

public PageTag()
Method Detail

init

protected void init()

doStartTag

public int doStartTag()
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface TitleAttribute

setTitle

public void setTitle(java.lang.String title)
Specified by:
setTitle in interface TitleAttribute

getNavImageAlt

public java.lang.String getNavImageAlt()
Specified by:
getNavImageAlt in interface NavImageAltAttribute

setNavImageAlt

public void setNavImageAlt(java.lang.String navImageAlt)
Specified by:
setNavImageAlt in interface NavImageAltAttribute

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface DescriptionAttribute

setDescription

public void setDescription(java.lang.String description)
Specified by:
setDescription in interface DescriptionAttribute

getAuthor

public java.lang.String getAuthor()
Specified by:
getAuthor in interface AuthorAttribute

setAuthor

public void setAuthor(java.lang.String author)
Specified by:
setAuthor in interface AuthorAttribute

getCopyright

public java.lang.String getCopyright()
Specified by:
getCopyright in interface CopyrightAttribute

setCopyright

public void setCopyright(java.lang.String copyright)
Specified by:
setCopyright in interface CopyrightAttribute

getPath

public java.lang.String getPath()
Specified by:
getPath in interface PathAttribute

setPath

public void setPath(java.lang.String path)
Specified by:
setPath in interface PathAttribute

getKeywords

public java.lang.String getKeywords()
Specified by:
getKeywords in interface KeywordsAttribute

setKeywords

public void setKeywords(java.lang.String keywords)
Specified by:
setKeywords in interface KeywordsAttribute

getMetas

public java.util.Collection<Meta> getMetas()
Specified by:
getMetas in interface MetasAttribute

addMeta

public void addMeta(Meta meta)
Specified by:
addMeta in interface MetasAttribute

getEncrypt

public boolean getEncrypt()
Specified by:
getEncrypt in interface EncryptAttribute

setEncrypt

public void setEncrypt(boolean encrypt)
Specified by:
setEncrypt in interface EncryptAttribute

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException

doEndTag

protected abstract int doEndTag(java.lang.String title,
                                java.lang.String navImageAlt,
                                java.lang.String description,
                                java.lang.String author,
                                java.lang.String copyright,
                                boolean useEncryption,
                                java.lang.String path,
                                java.lang.String keywords,
                                java.util.Collection<Meta> metas)
                         throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException