pt.moredata.dataentry.taglibs
Class DownloadFileTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended bypt.moredata.taglibs.widgets.AbstractHtmlTag
              extended bypt.moredata.taglibs.widgets.AnchorTag
                  extended bypt.moredata.dataentry.taglibs.DownloadFileTag
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

public class DownloadFileTag
extends AnchorTag
implements javax.servlet.jsp.tagext.TryCatchFinally

Company MoreData

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

Field Summary
 
Fields inherited from class pt.moredata.taglibs.widgets.AnchorTag
accesskey, charset, coords, href, hreflang, rel, rev, shape, tabindex, target, type
 
Fields inherited from class pt.moredata.taglibs.widgets.AbstractHtmlTag
_class, _out, align, alt, border, dir, id, lang, name, onabort, onblur, onchange, onclick, ondblclick, onerror, onfocus, onkeydown, onkeypress, onkeyup, onload, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onreset, onselect, onsubmit, size, src, style, title, usemap
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
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
DownloadFileTag()
           
 
Method Summary
 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 printHrefAttribute()
          Imprime para o buffer os atributos 'href' da tag.
 void setColumnName(java.lang.String columnName)
          Setter for property columnName.
 void setFileName(java.lang.String fileName)
          Setter for property fileName.
 void setMimeType(java.lang.String mimeType)
          Setter for property mimeType.
 void setRowNumber(int rowNumber)
          Setter for property rowNumber.
 
Methods inherited from class pt.moredata.taglibs.widgets.AnchorTag
printAttributes, printEndTag, printJavaScriptAtBegin, printJavaScriptAtEnd, printStartTag, setAccesskey, setCharset, setCoords, setHref, setHreflang, setRel, setRev, setShape, setTabindex, setTarget, setType
 
Methods inherited from class pt.moredata.taglibs.widgets.AbstractHtmlTag
doCatch, init, printAltAttribute, printBodyTag, printClassAttribute, printNameAttribute, printOnChangeAttribute, printOnFocusAttribute, printOnSubmitAttribute, printSrcAttribute, setAlign, setAlt, setBorder, setClass, setDir, setId, setLang, setName, setOnabort, setOnblur, setOnchange, setOnclick, setOndblclick, setOnerror, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnload, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnreset, setOnselect, setOnsubmit, setSize, setSrc, setStyle, setTitle, setUsemap
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, 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.TryCatchFinally
doCatch
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

DownloadFileTag

public DownloadFileTag()
Method Detail

printHrefAttribute

protected void printHrefAttribute()
                           throws java.io.IOException
Imprime para o buffer os atributos 'href' da tag.

Overrides:
printHrefAttribute in class AnchorTag
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
Overrides:
doStartTag in class AbstractHtmlTag
Returns:
A accao que deve ser tomada pelo servidor de .jsp apos ler o inicio da tag.
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
Overrides:
doEndTag in class AbstractHtmlTag
Returns:
a accao que deve ser tomada pelo servidor de .jsp apos ler a tag.
Throws:
javax.servlet.jsp.JspTagException

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
Overrides:
doFinally in class AnchorTag

setFileName

public void setFileName(java.lang.String fileName)
Setter for property fileName.

Parameters:
fileName - New value of property fileName.

setColumnName

public void setColumnName(java.lang.String columnName)
Setter for property columnName.

Parameters:
columnName - New value of property columnName.

setMimeType

public void setMimeType(java.lang.String mimeType)
Setter for property mimeType.

Parameters:
mimeType - New value of property mimeType.

setRowNumber

public void setRowNumber(int rowNumber)
Setter for property rowNumber.

Parameters:
rowNumber - New value of property rowNumber.