pt.moredata.taglibs.widgets
Class ButtonTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended bypt.moredata.taglibs.widgets.ButtonTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally
Direct Known Subclasses:
ButtonTag

public class ButtonTag
extends javax.servlet.jsp.tagext.BodyTagSupport
implements javax.servlet.jsp.tagext.TryCatchFinally

ButtonTag.java Company MoreData

Version:
$Revision: 1.13 $
Author:
aricardo, pcarmo
See Also:
Serialized Form

Field Summary
protected  JspButton _button
          Informacao acerca do botao.
protected  javax.servlet.jsp.JspWriter _out
           
protected  ToolBarTag _parent
          TollBarTag onde o botao esta inserido.
 
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
ButtonTag()
           
 
Method Summary
 int doAfterBody()
          Metodo executado em cada iteracao depois de se ter processado o conteudo da tag.
 void doCatch(java.lang.Throwable t)
          Invoked if a Throwable occurs while evaluating the BODY inside a tag or in any of the following methods: Tag.doStartTag(), Tag.doEndTag(), IterationTag.doAfterBody() and BodyTag.doInitBody().
 int doEndTag()
          Processa o fim da tag.
 void doFinally()
          Invoked in all cases after doEndTag() for any class implementing Tag, IterationTag or BodyTag.
 int doStartTag()
          Processa o inicio da tag.
protected  void printTag()
          Imprime o codigo do botao em HTML.
 void setAccesskey(java.lang.String accesskey)
          Setter for property accesskey.
 void setBodyContentString(java.lang.String bodyContentString)
          Setter for property bodyContentString.
 void setClass(java.lang.String _class)
          Setter for property class.
 void setDir(java.lang.String dir)
          Setter for property dir.
 void setDisabled(java.lang.String disabled)
          Setter for property disabled.
 void setId(java.lang.String id)
          Setter for property id.
 void setLang(java.lang.String lang)
          Setter for property lang.
 void setName(java.lang.String name)
          Setter for property name.
 void setOnblur(java.lang.String onblur)
          Setter for property onblur.
 void setOnclick(java.lang.String onclick)
          Setter for property onclick.
 void setOndblclick(java.lang.String ondblclick)
          Setter for property ondblclick.
 void setOnfocus(java.lang.String onfocus)
          Setter for property onfocus.
 void setOnkeydown(java.lang.String onkeydown)
          Setter for property onkeydown.
 void setOnkeypress(java.lang.String onkeypress)
          Setter for property onkeypress.
 void setOnkeyup(java.lang.String onkeyup)
          Setter for property onkeyup.
 void setOnmousedown(java.lang.String onmousedown)
          Setter for property onmousedown.
 void setOnmousemove(java.lang.String onmousemove)
          Setter for property onmousemove.
 void setOnmouseout(java.lang.String onmouseout)
          Setter for property onmouseout.
 void setOnmouseover(java.lang.String onmouseover)
          Setter for property onmouseover.
 void setOnmouseup(java.lang.String onmouseup)
          Setter for property onmouseup.
 void setStyle(java.lang.String style)
          Setter for property style.
 void setTabindex(java.lang.String tabindex)
          Setter for property tabindex.
 void setTitle(java.lang.String title)
          Setter for property title.
 void setType(java.lang.String type)
          Setter for property type.
 void setValue(java.lang.String value)
          Setter for property value.
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, 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
 

Field Detail

_button

protected JspButton _button
Informacao acerca do botao.


_parent

protected ToolBarTag _parent
TollBarTag onde o botao esta inserido.


_out

protected javax.servlet.jsp.JspWriter _out
Constructor Detail

ButtonTag

public ButtonTag()
Method Detail

printTag

protected void printTag()
                 throws java.io.IOException
Imprime o codigo do botao em HTML.

Throws:
java.io.IOException

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspTagException
Processa o inicio da tag.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Returns:
A accao que deve ser tomada pelo servidor de .jsp apos ler o inicio da tag.
Throws:
javax.servlet.jsp.JspTagException

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspTagException
Metodo executado em cada iteracao depois de se ter processado o conteudo da tag.

Specified by:
doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
Returns:
SKIP_BODY.
Throws:
javax.servlet.jsp.JspTagException - Caso ocorra algum erro a processar a tag.

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspTagException
Processa o fim da tag.

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Returns:
a accao que deve ser tomada pelo servidor de .jsp apos ler a tag.
Throws:
javax.servlet.jsp.JspTagException

doCatch

public void doCatch(java.lang.Throwable t)
             throws java.lang.Throwable
Invoked if a Throwable occurs while evaluating the BODY inside a tag or in any of the following methods: Tag.doStartTag(), Tag.doEndTag(), IterationTag.doAfterBody() and BodyTag.doInitBody(). This method is not invoked if the Throwable occurs during one of the setter methods. This method may throw an exception (the same or a new one) that will be propagated further up the nest chain. If an exception is thrown, doFinally() will be invoked. This method is intended to be used to respond to an exceptional condition.

Specified by:
doCatch in interface javax.servlet.jsp.tagext.TryCatchFinally
Parameters:
t - - The throwable exception navigating through this tag.
Throws:
java.lang.Throwable - - if the exception is to be rethrown further up the nest chain.

doFinally

public void doFinally()
Invoked in all cases after doEndTag() for any class implementing Tag, IterationTag or BodyTag. This method is invoked even if an exception has occurred in the BODY of the tag, or in any of the following methods: Tag.doStartTag(), Tag.doEndTag(), IterationTag.doAfterBody() and BodyTag.doInitBody(). This method is not invoked if the Throwable occurs during one of the setter methods. This method should not throw an Exception. This method is intended to maintain per-invocation data integrity and resource management actions.

Specified by:
doFinally in interface javax.servlet.jsp.tagext.TryCatchFinally

setBodyContentString

public void setBodyContentString(java.lang.String bodyContentString)
Setter for property bodyContentString.

Parameters:
bodyContentString - New value of property bodyContentString.

setAccesskey

public void setAccesskey(java.lang.String accesskey)
Setter for property accesskey.

Parameters:
accesskey - New value of property accesskey.

setClass

public void setClass(java.lang.String _class)
Setter for property class.


setDir

public void setDir(java.lang.String dir)
Setter for property dir.

Parameters:
dir - New value of property dir.

setDisabled

public void setDisabled(java.lang.String disabled)
Setter for property disabled.

Parameters:
disabled - New value of property disabled.

setId

public void setId(java.lang.String id)
Setter for property id.

Parameters:
id - New value of property id.

setLang

public void setLang(java.lang.String lang)
Setter for property lang.

Parameters:
lang - New value of property lang.

setName

public void setName(java.lang.String name)
Setter for property name.

Parameters:
name - New value of property name.

setOnblur

public void setOnblur(java.lang.String onblur)
Setter for property onblur.

Parameters:
onblur - New value of property onblur.

setOnclick

public void setOnclick(java.lang.String onclick)
Setter for property onclick.

Parameters:
onclick - New value of property onclick.

setOndblclick

public void setOndblclick(java.lang.String ondblclick)
Setter for property ondblclick.

Parameters:
ondblclick - New value of property ondblclick.

setOnfocus

public void setOnfocus(java.lang.String onfocus)
Setter for property onfocus.

Parameters:
onfocus - New value of property onfocus.

setOnkeydown

public void setOnkeydown(java.lang.String onkeydown)
Setter for property onkeydown.

Parameters:
onkeydown - New value of property onkeydown.

setOnkeypress

public void setOnkeypress(java.lang.String onkeypress)
Setter for property onkeypress.

Parameters:
onkeypress - New value of property onkeypress.

setOnkeyup

public void setOnkeyup(java.lang.String onkeyup)
Setter for property onkeyup.

Parameters:
onkeyup - New value of property onkeyup.

setOnmousedown

public void setOnmousedown(java.lang.String onmousedown)
Setter for property onmousedown.

Parameters:
onmousedown - New value of property onmousedown.

setOnmousemove

public void setOnmousemove(java.lang.String onmousemove)
Setter for property onmousemove.

Parameters:
onmousemove - New value of property onmousemove.

setOnmouseout

public void setOnmouseout(java.lang.String onmouseout)
Setter for property onmouseout.

Parameters:
onmouseout - New value of property onmouseout.

setOnmouseover

public void setOnmouseover(java.lang.String onmouseover)
Setter for property onmouseover.

Parameters:
onmouseover - New value of property onmouseover.

setOnmouseup

public void setOnmouseup(java.lang.String onmouseup)
Setter for property onmouseup.

Parameters:
onmouseup - New value of property onmouseup.

setStyle

public void setStyle(java.lang.String style)
Setter for property style.

Parameters:
style - New value of property style.

setTabindex

public void setTabindex(java.lang.String tabindex)
Setter for property tabindex.

Parameters:
tabindex - New value of property tabindex.

setTitle

public void setTitle(java.lang.String title)
Setter for property title.

Parameters:
title - New value of property title.

setType

public void setType(java.lang.String type)
Setter for property type.

Parameters:
type - New value of property type.

setValue

public void setValue(java.lang.String value)
Setter for property value.

Parameters:
value - New value of property value.