com.ivata.mask.web.tag.format
Class AddFormatTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bycom.ivata.mask.web.tag.format.AddFormatTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

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

Add a format to an HTMLFormatter.

Since:
ivata masks 0.5 (2002-06-20)
Version:
$Revision: 1.2 $
Author:
Colin MacLeod colin.macleod@ivata.com
See Also:
com.ivata.groupware.web.format.HTMLFormatter#add, Serialized Form

Field Summary
 
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
AddFormatTag()
           
 
Method Summary
 int doStartTag()
          This method is called when the JSP engine encounters the start tag, after the attributes are processed.
 void setFormat(HTMLFormat formatParam)
          Set the HTMLFormat object which should be added to the formatter.
 void setFormatter(HTMLFormatter formatterParam)
          Set the HTMLFormatter object which actually does all the hard work.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddFormatTag

public AddFormatTag()
Method Detail

doStartTag

public int doStartTag()

This method is called when the JSP engine encounters the start tag, after the attributes are processed.

Scripting variables (if any) have their values set here.

Returns:
SKIP_BODY since this tag has no body.

setFormat

public void setFormat(HTMLFormat formatParam)

Set the HTMLFormat object which should be added to the formatter.

Parameters:
formatParam - HTMLFormat to be added to the formatter.

setFormatter

public void setFormatter(HTMLFormatter formatterParam)

Set the HTMLFormatter object which actually does all the hard work. We just wrap HTMLFormatter.addFormat in a JSP tag.

Parameters:
formatterParam - HTMLFormatter to add a new format to.


Copyright © 2001-2005 ivata limited. All Rights Reserved.