org.infoglue.cms.workflow.taglib
Class ElementTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.infoglue.deliver.taglib.AbstractTag
          extended by org.infoglue.cms.workflow.taglib.WorkflowTag
              extended by org.infoglue.cms.workflow.taglib.ElementTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
CategorySelector, ContentBooleanFieldTag, ContentHiddenFieldTag, ContentTextareaFieldTag, ContentTextFieldTag, SubmitTag

public abstract class ElementTag
extends WorkflowTag

Base class for all workflow related tags writing to the output stream. An Element is used for constructing the output.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.infoglue.cms.workflow.taglib.WorkflowTag
ACTION_ID_PARAMETER, WORKFLOW_ID_PARAMETER
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
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
 
Method Summary
protected abstract  org.infoglue.cms.workflow.taglib.Element createElement()
          Creates the element used for constructing the output.
 int doEndTag()
          Process the end tag.
protected  org.infoglue.cms.workflow.taglib.Element getElement()
          Returns the element used for constructing the output.
 void setCssClass(java.lang.String cssClass)
          Sets the class attribute of the html element.
 void setIdAttr(java.lang.String id)
          Sets the id attribute of the html element.
 void setStyle(java.lang.String style)
          Sets the style attribute of the html element.
 void setTitle(java.lang.String title)
          Sets the title attribute of the html element.
 
Methods inherited from class org.infoglue.cms.workflow.taglib.WorkflowTag
getActionID, getPrincipal, getPropertySet, getWorkflowID
 
Methods inherited from class org.infoglue.deliver.taglib.AbstractTag
evaluate, evaluateCollection, evaluateInteger, evaluateList, evaluateString, produceResult, setId, setResultAttribute, write
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Process the end tag. Writes the element to the output stream.

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
Returns:
indication of whether to continue evaluating the JSP page.
Throws:
javax.servlet.jsp.JspException - if an I/O error occurs when writing to the output stream.

getElement

protected final org.infoglue.cms.workflow.taglib.Element getElement()
Returns the element used for constructing the output.

Returns:
the element used for constructing the output.

createElement

protected abstract org.infoglue.cms.workflow.taglib.Element createElement()
Creates the element used for constructing the output.

Returns:
the element used for constructing the output.

setIdAttr

public void setIdAttr(java.lang.String id)
               throws javax.servlet.jsp.JspException
Sets the id attribute of the html element.

Parameters:
id - the id to use.
Throws:
javax.servlet.jsp.JspException - if an error occurs while evaluating the attribute.

setCssClass

public void setCssClass(java.lang.String cssClass)
                 throws javax.servlet.jsp.JspException
Sets the class attribute of the html element.

Parameters:
cssClass - the class to use.
Throws:
javax.servlet.jsp.JspException - if an error occurs while evaluating the attribute.

setTitle

public void setTitle(java.lang.String title)
              throws javax.servlet.jsp.JspException
Sets the title attribute of the html element.

Parameters:
title - the title to use.
Throws:
javax.servlet.jsp.JspException - if an error occurs while evaluating the attribute.

setStyle

public void setStyle(java.lang.String style)
              throws javax.servlet.jsp.JspException
Sets the style attribute of the html element.

Parameters:
style - the style to use.
Throws:
javax.servlet.jsp.JspException - if an error occurs while evaluating the attribute.


Copyright © 2005 InfoGlue.org All Rights Reserved.