|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.mcu.yingo.campos.html.GeneradorHtmlConListadorAbstracto
es.mcu.yingo.campos.html.GeneradorHtmlSelect
es.mcu.yingo.campos.html.GeneradorHtmlSelectValueEtiquetas
public class GeneradorHtmlSelectValueEtiquetas
Implementacion en formato html de un campo de tipo "Selct".
Esta implementación en concreto pinta un desplegable en dos niveles,
es decir, un título y una lista de valores asociada a dicho título,
seguidamente otro título y otra lista de valores, y así sucesivamente
Por ejemplo, se mostraría en el desplegable algo como esto:
ListadorEtiquetas
y dicho objeto
a su vez, se forma con un título y una lista de objetos de
tipo CodVal
Field Summary | |
---|---|
protected org.springframework.context.ApplicationContext |
applicationContext
Contexto |
Fields inherited from interface es.mcu.yingo.campos.html.GeneradorHtml |
---|
BUSCA, MODIFICA, MUESTRA, NUEVO |
Constructor Summary | |
---|---|
GeneradorHtmlSelectValueEtiquetas()
|
Method Summary | |
---|---|
org.springframework.context.ApplicationContext |
getApplicationContext()
Contexto |
java.lang.String |
getHTML(int tipo,
java.lang.String id,
java.lang.Object value,
java.lang.String codExpediente,
java.util.Locale locale)
Devuelve el código HTML generado, esto es la representación en formato html de un campo de tipo select con etiquetas, de este tipo: Título Uno Valor 1 Valor 2 Valor 3 Título Dos Valor 4 Título Tres Valor 5 Valor 6 Valor 7 |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Contexto |
private java.lang.String |
traduce(java.lang.String valor,
java.util.Locale locale)
Traducimos el literal |
Methods inherited from class es.mcu.yingo.campos.html.GeneradorHtmlSelect |
---|
getElPrimerElementoVacio, setElPrimerElementoVacio |
Methods inherited from class es.mcu.yingo.campos.html.GeneradorHtmlConListadorAbstracto |
---|
getListador, setListador |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.springframework.context.ApplicationContext applicationContext
Constructor Detail |
---|
public GeneradorHtmlSelectValueEtiquetas()
Method Detail |
---|
public java.lang.String getHTML(int tipo, java.lang.String id, java.lang.Object value, java.lang.String codExpediente, java.util.Locale locale) throws java.lang.Exception
getHTML
in interface GeneradorHtml
getHTML
in class GeneradorHtmlSelect
tipo
- id
- value
- codExpediente
- locale
-
java.lang.Exception
private java.lang.String traduce(java.lang.String valor, java.util.Locale locale)
valor
-
public org.springframework.context.ApplicationContext getApplicationContext()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
applicationContext
- the applicationContext to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |