pt.moredata.taglibs.content
Class HideContentControllTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bypt.moredata.taglibs.content.HideContentControllTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

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

Tag for hide a section of code in a jsp page. The content is hide or displayed qith the help of a link, without any submission of the page. Company MoreData

Version:
$Revision: 1.3 $
Author:
pcarmo
See Also:
Serialized Form

Field Summary
 
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
 
Constructor Summary
HideContentControllTag()
           
 
Method Summary
 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 printJavaScriptAtBegin()
          Imprime codigo em javascript, depois do fim da tag.
 void setHideImage(java.lang.String hideImage)
          Setter for property hideImage.
 void setHideText(java.lang.String hideText)
          Setter for property hideText.
 void setId(java.lang.String id)
          Setter for property id.
 void setShowImage(java.lang.String showImage)
          Setter for property showImage.
 void setShowText(java.lang.String showText)
          Setter for property showText.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, 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
 

Constructor Detail

HideContentControllTag

public HideContentControllTag()
Method Detail

printJavaScriptAtBegin

protected void printJavaScriptAtBegin()
                               throws java.io.IOException
Imprime codigo em javascript, depois do fim da tag.

Throws:
java.io.IOException

doStartTag

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

Returns:
A accao que deve ser tomada pelo servidor de .jsp apos ler o inicio da tag.
Throws:
javax.servlet.jsp.JspTagException

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspTagException
Processa o fim da 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.

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.


setId

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

Parameters:
id - New value of property id.

setShowImage

public void setShowImage(java.lang.String showImage)
Setter for property showImage.

Parameters:
showImage - New value of property showImage.

setHideImage

public void setHideImage(java.lang.String hideImage)
Setter for property hideImage.

Parameters:
hideImage - New value of property hideImage.

setShowText

public void setShowText(java.lang.String showText)
Setter for property showText.

Parameters:
showText - New value of property showText.

setHideText

public void setHideText(java.lang.String hideText)
Setter for property hideText.

Parameters:
hideText - New value of property hideText.