|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport ecar.taglib.util.MenuTag
public class MenuTag
Field Summary | |
---|---|
private javax.servlet.http.HttpServletRequest |
request
|
private static long |
serialVersionUID
|
private javax.servlet.jsp.JspWriter |
writer
|
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 | |
---|---|
MenuTag()
|
Method Summary | |
---|---|
int |
doEndTag()
Encerra Tag. |
int |
doStartTag()
Inicializa a montagem da tag para ser adicionada na tela de HTML. |
javax.servlet.http.HttpServletRequest |
getRequest()
Retorna javax.servlet.http.HttpServletRequest request. |
private void |
imprimeSubMenus(java.util.List lista)
Imprime as op��es principais do menu, passando e verificando a exist�ncia dos filhos pelo m�todo imprimeSubMenusFilhos. |
private void |
imprimeSubMenusFilhos(java.util.List lista,
int numMenu)
M�todo acionado a partir imprimeSubMenus, imprimindo os filhos dos itens principais e os demais (filhos dos filhos, netos). |
private void |
montaMenuJS(java.util.List lista)
Fazer uma fun��o que "gospe" o texto do JavaScript que est� em menu.jsp. |
private java.lang.String[] |
opcoesPrincipais(java.util.List lista)
M�todo que passa somente uma vez pelos itens principais do menu e devolve um Array de Strings utilizadas na sequencia para a forma��o do js. |
void |
setRequest(javax.servlet.http.HttpServletRequest request)
Atribui valor especificado para javax.servlet.http.HttpServletRequest request. |
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 |
---|
private static final long serialVersionUID
private javax.servlet.jsp.JspWriter writer
private javax.servlet.http.HttpServletRequest request
Constructor Detail |
---|
public MenuTag()
Method Detail |
---|
public int doStartTag()
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
private java.lang.String[] opcoesPrincipais(java.util.List lista) throws java.io.IOException
List
- lista
java.io.IOException
private void imprimeSubMenus(java.util.List lista) throws java.io.IOException
List
- lista
java.io.IOException
private void imprimeSubMenusFilhos(java.util.List lista, int numMenu) throws java.io.IOException
List
- listaint
- nivel
java.io.IOException
private void montaMenuJS(java.util.List lista) throws java.io.IOException
List
- lista
java.io.IOException
public javax.servlet.http.HttpServletRequest getRequest()
public void setRequest(javax.servlet.http.HttpServletRequest request)
javax.servlet.http.HttpServletRequest
- request
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |