pt.moredata.dataentry.taglibs
Class ToolBarTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bypt.moredata.taglibs.widgets.ToolBarTag
          extended bypt.moredata.dataentry.taglibs.ToolBarTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, SimpleToolBar, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally

public class ToolBarTag
extends ToolBarTag
implements javax.servlet.jsp.tagext.TryCatchFinally

Implementacao de uma tag para mostrar uma barra de navegacao para controlar o DataEntry. Company MoreData

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

Field Summary
 
Fields inherited from class pt.moredata.taglibs.widgets.ToolBarTag
_buttonList, results
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface pt.moredata.widgets.SimpleToolBar
CANCEL_BUTTON, DELETE_BUTTON, EXECUTEQUERY_BUTTON, EXIT_BUTTON, EXPORT_BUTTON, FIRST_BUTTON, LAST_BUTTON, NEW_BUTTON, NEXT_BUTTON, PREVIOUS_BUTTON, PRINT_BUTTON, QUERY_BUTTON, SAVE_ALL_BUTTON, SAVE_BUTTON
 
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
ToolBarTag()
           
 
Method Summary
 void addButton(JspButton button)
          Adiciona um botao a toolbar.
 void doFinally()
          Invoked in all cases after doEndTag() for any class implementing Tag, IterationTag or BodyTag.
 int doStartTag()
           
 void hideButton(java.lang.String name)
          Setter for property hideButton.
protected  void printButton(JspButton button)
          Imprime o codigo correspondente a um botao caso ele nao esteja escondido.
protected  void printToolBar()
          Imprime o codigo da toolBar em HTML.
 void setDataEntryId(java.lang.String dataEntryId)
          Setter for property dataEntryId.
 void setHideAllButtons(java.lang.String hideAllButtons)
          Setter for property hideAllButtons.
 void showButton(java.lang.String name)
          Setter for property hideButton.
 
Methods inherited from class pt.moredata.taglibs.widgets.ToolBarTag
doCatch, doEndTag, getButton, getButton, getButtonIndex, getButtonsCount, isEnabled, setBgcolor, setButton, setHeight, setWidth
 
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
 
Methods inherited from interface javax.servlet.jsp.tagext.TryCatchFinally
doCatch
 

Constructor Detail

ToolBarTag

public ToolBarTag()
Method Detail

printButton

protected void printButton(JspButton button)
Imprime o codigo correspondente a um botao caso ele nao esteja escondido.

Overrides:
printButton in class ToolBarTag

printToolBar

protected void printToolBar()
Imprime o codigo da toolBar em HTML.

Overrides:
printToolBar in class ToolBarTag

addButton

public void addButton(JspButton button)
Adiciona um botao a toolbar.

Overrides:
addButton in class ToolBarTag

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspTagException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class ToolBarTag
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 ToolBarTag

hideButton

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


showButton

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


setDataEntryId

public void setDataEntryId(java.lang.String dataEntryId)
Setter for property dataEntryId.

Parameters:
dataEntryId - New value of property dataEntryId.

setHideAllButtons

public void setHideAllButtons(java.lang.String hideAllButtons)
Setter for property hideAllButtons.

Parameters:
hideAllButtons - New value of property hideAllButtons.