|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ecar.taglib.util.Options
public class Options
Taglib que gera uma lista de Op��es para um controle HTML.
Field Summary | |
---|---|
static int |
CHECKBOX
|
static int |
COMBOBOX
|
private java.lang.String |
contexto
|
private java.lang.String |
dica
|
private java.lang.String |
imagem
|
static int |
IMAGEM
|
private java.lang.String |
label
Define o atributo dos objetos da Collection que ser� acessado para definir o Label das Op��es |
static int |
LISTBOX
|
static long |
MAXLENGTH
|
static int |
MULTITEXTO
|
private java.lang.Boolean |
nivelPlanejamentoCheckBox
Atributo que define se as op��es do n�vel de planejamento � para ser checkbox (false = DEFAULT) Utilizado no cadastro de usu�rios |
private java.lang.String |
nome
|
private boolean |
opcaoVazia
Define se uma op��o vazia deve ser inclu�da na lista |
private java.util.Collection |
options
Collection com as op��es a serem mostradas no Controle |
private javax.servlet.jsp.PageContext |
page
|
private javax.servlet.jsp.tagext.Tag |
parent
|
static int |
RADIO_BUTTON
|
static int |
TEXT
|
static int |
VALIDACAO
|
private java.lang.String |
valor
Define o atributo dos objetos da Collection que ser� acessado para definir os Values das Op��es |
private javax.servlet.jsp.JspWriter |
writerParametro
|
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
Options()
|
|
Options(javax.servlet.jsp.JspWriter writer)
Atribui valor especificado para JspWriter writerParametro. |
Method Summary | |
---|---|
void |
addOpcaoCheckBox(java.lang.String sValue,
java.lang.String sLabel,
java.lang.Object obj,
java.lang.StringBuffer s,
int countOptions)
Adiciona op��o CheckBox. |
void |
addOpcaoComboBox(java.lang.String sValue,
java.lang.String sLabel,
java.lang.Object obj,
java.lang.StringBuffer s,
int tipo,
int countOptions)
Adiciona Op��o comboBox. |
void |
addOpcaoMultiTexto(java.lang.String sValue,
java.lang.String sLabel,
java.lang.Object obj,
java.lang.StringBuffer s,
int countOptions)
Adiciona op��o multiTexto. |
void |
addOpcaoRadioButton(java.lang.String sValue,
java.lang.String sLabel,
java.lang.Object obj,
java.lang.StringBuffer s,
int countOptions)
Adiciona op��o RadioButton. |
int |
doEndTag()
Encerra Tag. |
int |
doStartTag()
Inicializa a montagem da tag para ser adicionada na tela de HTML. |
java.lang.String |
getContexto()
|
java.lang.String |
getDica()
|
java.lang.String |
getImagem()
|
java.lang.String |
getLabel()
Retorna String label. |
java.lang.Boolean |
getNivelPlanejamentoCheckBox()
Retorna Boolean nivelPlanejamentoCheckBox. |
java.lang.String |
getNome()
|
java.util.Collection |
getOptions()
Retorna Collection options |
javax.servlet.jsp.PageContext |
getPage()
Retorna PageContext page. |
javax.servlet.jsp.tagext.Tag |
getParent()
Retorna Tag parent. |
java.lang.String |
getValor()
Retorna String valor. |
boolean |
isOpcaoVazia()
Retorna boolean opcaoVazia. |
void |
release()
|
void |
setContexto(java.lang.String contexto)
|
void |
setDica(java.lang.String dica)
|
void |
setImagem(java.lang.String imagem)
|
void |
setLabel(java.lang.String label)
Atribui valor especificado para String label. |
void |
setNivelPlanejamentoCheckBox(java.lang.Boolean nivelPlanejamentoCheckBox)
Atribui valor especificado para Boolean nivelPlanejamentoCheckBox. |
void |
setNome(java.lang.String nome)
|
void |
setOpcaoVazia(boolean opcaoVazia)
Atribui valor especificado para boolean opcaoVazia. |
void |
setOptions(java.util.Collection options)
Atribui valor especificado para Collection options. |
void |
setPage(javax.servlet.jsp.PageContext page)
Atribui valor especificado para PageContext page. |
void |
setPageContext(javax.servlet.jsp.PageContext arg0)
Atribui valor especificado para PageContext page. |
void |
setParent(javax.servlet.jsp.tagext.Tag arg0)
Atribui valor especificado para Tag parent. |
void |
setValor(java.lang.String valor)
Atribui valor especificado para String valor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Collection options
private java.lang.String valor
private boolean opcaoVazia
private java.lang.String label
private java.lang.Boolean nivelPlanejamentoCheckBox
private javax.servlet.jsp.PageContext page
private javax.servlet.jsp.tagext.Tag parent
private java.lang.String imagem
private java.lang.String dica
private java.lang.String nome
private java.lang.String contexto
public static final int COMBOBOX
public static final int CHECKBOX
public static final int LISTBOX
public static final int RADIO_BUTTON
public static final int TEXT
public static final int IMAGEM
public static final int MULTITEXTO
public static final int VALIDACAO
public static final long MAXLENGTH
private javax.servlet.jsp.JspWriter writerParametro
Constructor Detail |
---|
public Options()
public Options(javax.servlet.jsp.JspWriter writer)
JspWriter
- writerMethod Detail |
---|
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
javax.servlet.jsp.JspException
public void addOpcaoComboBox(java.lang.String sValue, java.lang.String sLabel, java.lang.Object obj, java.lang.StringBuffer s, int tipo, int countOptions)
String
- sValueString
- sLabelObject
- objStringBuffer
- spublic void addOpcaoCheckBox(java.lang.String sValue, java.lang.String sLabel, java.lang.Object obj, java.lang.StringBuffer s, int countOptions)
String
- sValueString
- sLabelObject
- objStringBuffer
- spublic void addOpcaoMultiTexto(java.lang.String sValue, java.lang.String sLabel, java.lang.Object obj, java.lang.StringBuffer s, int countOptions)
String
- sValueString
- sLabelObject
- objStringBuffer
- spublic void addOpcaoRadioButton(java.lang.String sValue, java.lang.String sLabel, java.lang.Object obj, java.lang.StringBuffer s, int countOptions)
String
- sValueString
- sLabelObject
- objStringBuffer
- spublic void setPageContext(javax.servlet.jsp.PageContext arg0)
setPageContext
in interface javax.servlet.jsp.tagext.Tag
PageContext
- arg0public void setParent(javax.servlet.jsp.tagext.Tag arg0)
setParent
in interface javax.servlet.jsp.tagext.Tag
Tag
- arg0public javax.servlet.jsp.tagext.Tag getParent()
getParent
in interface javax.servlet.jsp.tagext.Tag
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
javax.servlet.jsp.JspException
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
public javax.servlet.jsp.PageContext getPage()
public void setPage(javax.servlet.jsp.PageContext page)
PageContext
- page - (The page to set)public java.lang.String getLabel()
public void setLabel(java.lang.String label)
String
- label - (The label to set)public java.util.Collection getOptions()
public void setOptions(java.util.Collection options)
Collection
- options - (The options to set)public java.lang.String getValor()
public void setValor(java.lang.String valor)
String
- valor - (The valor to set)public boolean isOpcaoVazia()
public void setOpcaoVazia(boolean opcaoVazia)
boolean
- opcaoVazia - (The opcaoVazia to set)public java.lang.Boolean getNivelPlanejamentoCheckBox()
public void setNivelPlanejamentoCheckBox(java.lang.Boolean nivelPlanejamentoCheckBox)
Boolean
- nivelPlanejamentoCheckBoxpublic java.lang.String getImagem()
public void setImagem(java.lang.String imagem)
public java.lang.String getDica()
public void setDica(java.lang.String dica)
public java.lang.String getNome()
public void setNome(java.lang.String nome)
public java.lang.String getContexto()
public void setContexto(java.lang.String contexto)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |