pt.moredata.taglibs.filter
Class FilterButtonTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bypt.moredata.taglibs.filter.FilterButtonTag
All Implemented Interfaces:
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 FilterButtonTag
extends javax.servlet.jsp.tagext.TagSupport
implements javax.servlet.jsp.tagext.TryCatchFinally

FilterButtonTag.java Company MoreData

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

Field Summary
static java.lang.String CONTROLLER_SERVLET
          Nome da servlet do controlador que altera quais as colunas que estam visiveis.
static java.lang.String POOL_KEY
          Chave usada para guardar uma pool de filtros para um conjunto de paginas.
 
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
FilterButtonTag()
           
 
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.
static javax.servlet.jsp.tagext.TagSupport getAncestor(javax.servlet.jsp.tagext.Tag childTag, java.lang.String parentTagClassName)
          Convenience method for finding ancestor names with a specific class name.
 FilterPool getFilterPool()
          Vai buscar a sessao a pool de filtros de sta tag.
static FilterPool getFilterPool(javax.servlet.http.HttpSession session, java.lang.String key)
          Vai buscar a sessao a pool de filtros.
 FilterSet getFilterSet()
          Devolve o conjunto de filtros desta tag.
static FilterSet getFilterSet(javax.servlet.http.HttpSession session, java.lang.String key)
          Devolve o conjunto de filtros de uma determinada tag.
 java.lang.String getKey()
          Getter for property key.
 void setDisabled(boolean disabled)
          Setter for property disabled.
 void setDisabled(java.lang.String disabled)
          Setter for property disabled.
 void setImg(java.lang.String img)
          Setter for property img.
 void setName(java.lang.String name)
          Setter for property name.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, 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
 

Field Detail

POOL_KEY

public static java.lang.String POOL_KEY
Chave usada para guardar uma pool de filtros para um conjunto de paginas.


CONTROLLER_SERVLET

public static final java.lang.String CONTROLLER_SERVLET
Nome da servlet do controlador que altera quais as colunas que estam visiveis.

See Also:
Constant Field Values
Constructor Detail

FilterButtonTag

public FilterButtonTag()
Method Detail

getAncestor

public static javax.servlet.jsp.tagext.TagSupport getAncestor(javax.servlet.jsp.tagext.Tag childTag,
                                                              java.lang.String parentTagClassName)
                                                       throws javax.servlet.jsp.JspTagException
Convenience method for finding ancestor names with a specific class name.

Parameters:
childTag - Tag que esta aninhada
parentTagClassName - Nome da classe que implementa a outra tag.
Returns:
Devolve uma tag onde outra tag esta aninhada, ou null caso a tag nao esteja aninhada.
Throws:
javax.servlet.jsp.JspTagException - Caso ocorra um erro a processar a tag.

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 - Caso ocorra um 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 - Caso ocorra um erro a processar a tag.

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

getFilterPool

public static FilterPool getFilterPool(javax.servlet.http.HttpSession session,
                                       java.lang.String key)
Vai buscar a sessao a pool de filtros.

Parameters:
session - A sessao.
key - Nome do atributo (pool) na sessao.
Returns:
A pool de filtros guardada na sessao.

getFilterPool

public FilterPool getFilterPool()
Vai buscar a sessao a pool de filtros de sta tag.

Returns:
A pool de filtros guardada na sessao.

getFilterSet

public static FilterSet getFilterSet(javax.servlet.http.HttpSession session,
                                     java.lang.String key)
Devolve o conjunto de filtros de uma determinada tag.

Parameters:
session - A sessao.
key - Nome do atributo (pool) na sessao.
Returns:
O conjunto de filtros de uma determinada tag.

getFilterSet

public FilterSet getFilterSet()
Devolve o conjunto de filtros desta tag.

Returns:
O conjunto de filtros desta tag.

setName

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

Parameters:
name - New value of property name.

setImg

public void setImg(java.lang.String img)
Setter for property img.

Parameters:
img - New value of property img.

setDisabled

public void setDisabled(boolean disabled)
Setter for property disabled.

Parameters:
disabled - New value of property disabled.

setDisabled

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

Parameters:
disabled - New value of property disabled.

getKey

public java.lang.String getKey()
Getter for property key.

Returns:
Value of property key.