com.ivata.mask.web.tag.html
Class ClearTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byorg.apache.struts.taglib.html.BaseHandlerTag
              extended byorg.apache.struts.taglib.html.SubmitTag
                  extended bycom.ivata.mask.web.tag.html.SubmitTag
                      extended bycom.ivata.mask.web.tag.html.ClearTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class ClearTag
extends SubmitTag

Overridden from SubmitTag for convenience, this tag creates a submit button with the name new or Clear. If you set the parameter asNewButton to true then it will be a new submit.

Tag attributes:

attribute reqd. param. class description
asNewButton true boolean If true, then this is a New button. Otherwise a Clear button is created.

Note: all the tag attributes from are included.

Since:
ivata masks 0.4 (2003-03-01)
Version:
$Revision: 1.2 $
Author:
Colin MacLeod colin.macleod@ivata.com
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.struts.taglib.html.SubmitTag
messages, property, text, value
 
Fields inherited from class org.apache.struts.taglib.html.BaseHandlerTag
accesskey, defaultLocale, indexed, tabindex
 
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
ClearTag()
           
 
Method Summary
 int doStartTag()
           Overridden to set the value and title strings to the values represented by the localized keys in this class.
 boolean getAsNewButton()
           If true, then this is a New button.
 void setAsNewButton(boolean asNewButtonParam)
           If true, then this is a New button.
 
Methods inherited from class com.ivata.mask.web.tag.html.SubmitTag
doEndTag, getBundle, getMaskProperties, getTitleArgs, getValueArgs, setFieldName, setMaskProperties, setReadOnly, setTitleArgs, setTitleKey, setValueArgs, setValueKey
 
Methods inherited from class org.apache.struts.taglib.html.SubmitTag
doAfterBody, getProperty, getValue, release, setProperty, setValue
 
Methods inherited from class org.apache.struts.taglib.html.BaseHandlerTag
getAccesskey, getAlt, getAltKey, getDisabled, getElementClose, getIndexed, getLocale, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getReadonly, getStyle, getStyleClass, getStyleId, getTabindex, getTitle, getTitleKey, isXhtml, lookupProperty, message, prepareEventHandlers, prepareFocusEvents, prepareIndex, prepareKeyEvents, prepareMouseEvents, prepareStyles, prepareTextEvents, setAccesskey, setAlt, setAltKey, setBundle, setDisabled, setIndexed, setLocale, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setStyle, setStyleClass, setStyleId, setTabindex, setTitle
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, 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

ClearTag

public ClearTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException

Overridden to set the value and title strings to the values represented by the localized keys in this class.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class SubmitTag
Returns:
value returned by superclass method.
Throws:
javax.servlet.jsp.JspException - if either valueKey or titleKey have not been set, or as thrown by superclass method.

getAsNewButton

public boolean getAsNewButton()

If true, then this is a New button. Otherwise a Clear button is created.

Returns:
the current value of asNewButton.

setAsNewButton

public void setAsNewButton(boolean asNewButtonParam)

If true, then this is a New button. Otherwise a Clear button is created.

Parameters:
asNewButtonParam - the new value of asNewButton.


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