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

Quick Search    Search Deep

com.RuntimeCollective.sitemap.tag
Class ToPublishStatusTag  view ToPublishStatusTag download ToPublishStatusTag.java

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bycom.RuntimeCollective.sitemap.tag.ToPublishStatusTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

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

A custom JSP tag that displays the status of a Publishable for the admin to Publish it or not.

The displayed message looks like: No change, Page changed, New page.

One parameter:

Version:
$Id: ToPublishStatusTag.java,v 1.6 2003/09/30 15:13:01 joe Exp $

Field Summary
protected  java.lang.String name
          The bean name.
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
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
ToPublishStatusTag()
           
 
Method Summary
 int doStartTag()
          Default processing of the start tag, returning SKIP_BODY.
 java.lang.String getName()
          Get the bean name.
static java.lang.String getStatusLabel(com.RuntimeCollective.sitemap.bean.Publishable publishable)
           
 void release()
          Release state.
 void setName(java.lang.String name)
          Set the bean name.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, 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
 

Field Detail

name

protected java.lang.String name
The bean name.

Constructor Detail

ToPublishStatusTag

public ToPublishStatusTag()
                   throws java.sql.SQLException
Method Detail

getName

public java.lang.String getName()
Get the bean name.


setName

public void setName(java.lang.String name)
Set the bean name.


doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Description copied from class: javax.servlet.jsp.tagext.TagSupport
Default processing of the start tag, returning SKIP_BODY.


release

public void release()
Description copied from class: javax.servlet.jsp.tagext.TagSupport
Release state.


getStatusLabel

public static java.lang.String getStatusLabel(com.RuntimeCollective.sitemap.bean.Publishable publishable)