|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
pt.moredata.taglibs.widgets.ToolBarTag
ToolBarTag.java Implementacao de uma tag para mostrar uma barra de navegacao. Company MoreData
| Field Summary | |
protected java.util.ArrayList |
_buttonList
Lista de butoes da tooolbar. |
protected java.lang.StringBuffer |
results
Buffer onde e despejado o codigo em HTML. |
| 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 |
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()
|
void |
doFinally()
Invoked in all cases after doEndTag() for any class implementing Tag, IterationTag or BodyTag. |
int |
doStartTag()
|
SimpleToolBarButton |
getButton(int button)
Devolve um determinado botao da toolbar. |
JspButton |
getButton(java.lang.String buttonValue)
Devolve um determinado botao da toolbar. |
int |
getButtonIndex(java.lang.String buttonValue)
Returns the index of a button. |
int |
getButtonsCount()
Devolve o numero de botoes da ToolBar. |
boolean |
isEnabled()
Verifica se a toolbar esta activa ou nao. |
protected void |
printButton(JspButton button)
Imprime o codigo correspondente a um botao. |
protected void |
printToolBar()
Imprime o codigo da toolBar em HTML. |
void |
setBgcolor(java.lang.String bgcolor)
Setter for property bgcolor. |
void |
setButton(int index,
JspButton button)
Altera um botao da toolbar. |
void |
setHeight(java.lang.String height)
Setter for property height. |
void |
setWidth(java.lang.String width)
Setter for property width. |
| 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 |
protected java.util.ArrayList _buttonList
protected java.lang.StringBuffer results
| Constructor Detail |
public ToolBarTag()
| Method Detail |
protected void printButton(JspButton button)
protected void printToolBar()
public int doStartTag()
throws javax.servlet.jsp.JspTagException
doStartTag in interface javax.servlet.jsp.tagext.Tagjavax.servlet.jsp.JspTagException
public int doEndTag()
throws javax.servlet.jsp.JspTagException
doEndTag in interface javax.servlet.jsp.tagext.Tagjavax.servlet.jsp.JspTagException
public void doCatch(java.lang.Throwable t)
throws java.lang.Throwable
doCatch in interface javax.servlet.jsp.tagext.TryCatchFinallyt - - The throwable exception navigating through this tag.
java.lang.Throwable - - if the exception is to be rethrown further
up the nest chain.public void doFinally()
doFinally in interface javax.servlet.jsp.tagext.TryCatchFinallypublic void addButton(JspButton button)
public void setButton(int index,
JspButton button)
public void setBgcolor(java.lang.String bgcolor)
bgcolor - New value of property bgcolor.public void setHeight(java.lang.String height)
height - New value of property height.public void setWidth(java.lang.String width)
width - New value of property width.public int getButtonIndex(java.lang.String buttonValue)
buttonValue - The value of the button.
public SimpleToolBarButton getButton(int button)
throws java.lang.IndexOutOfBoundsException
getButton in interface SimpleToolBarbutton - Indice do botao a devolver.
java.lang.IndexOutOfBoundsException - se o indice não existir.public JspButton getButton(java.lang.String buttonValue)
buttonValue - Valor que e retornado pelo botao no submit.
public int getButtonsCount()
getButtonsCount in interface SimpleToolBarpublic boolean isEnabled()
isEnabled in interface SimpleToolBar
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||