es.mcu.yingo.campos.html
Class GeneradorHtmlSelectValueTexto

java.lang.Object
  extended by es.mcu.yingo.campos.html.GeneradorHtmlConListadorAbstracto
      extended by es.mcu.yingo.campos.html.GeneradorHtmlSelect
          extended by es.mcu.yingo.campos.html.GeneradorHtmlSelectValue
              extended by es.mcu.yingo.campos.html.GeneradorHtmlSelectValueTexto
All Implemented Interfaces:
GeneradorHtml, org.springframework.context.ApplicationContextAware

public class GeneradorHtmlSelectValueTexto
extends GeneradorHtmlSelectValue

Tiene la misma funcionalidad que GeneradorHtmlSelectValue, sólo que que cuando el tipo de generación es de tipo GeneradorHtml.MUESTRA se genera una cadena de texto
Si la opción 'transformarNl2br' es true se convertirán los saltos de línea a br de html y se escapará las entidades html. Por defecto esta opción está a true.

Author:
vicente.carbajo

Field Summary
private  boolean transformarNl2br
          Si tiene el valor true se convertirán los saltos de línea a br de html y se escapará las entidades html.
 
Fields inherited from class es.mcu.yingo.campos.html.GeneradorHtmlSelectValue
applicationContext
 
Fields inherited from interface es.mcu.yingo.campos.html.GeneradorHtml
BUSCA, MODIFICA, MUESTRA, NUEVO
 
Constructor Summary
GeneradorHtmlSelectValueTexto()
          Constructor.
 
Method Summary
 boolean isTransformarNl2br()
           
protected  java.lang.String obtenerHtmlMuestra(java.lang.String opcion, java.lang.String id)
          Como se debe representar el componente en la opción MUESTRA
 void setTransformarNl2br(boolean transformarNl2br)
           
 
Methods inherited from class es.mcu.yingo.campos.html.GeneradorHtmlSelectValue
getApplicationContext, getClaseEstilo, getHTML, setApplicationContext, setClaseEstilo
 
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

transformarNl2br

private boolean transformarNl2br
Si tiene el valor true se convertirán los saltos de línea a br de html y se escapará las entidades html.

Constructor Detail

GeneradorHtmlSelectValueTexto

public GeneradorHtmlSelectValueTexto()
Constructor. Por defecto el atributo transformarNl2br esta a true

Method Detail

obtenerHtmlMuestra

protected java.lang.String obtenerHtmlMuestra(java.lang.String opcion,
                                              java.lang.String id)
Description copied from class: GeneradorHtmlSelectValue
Como se debe representar el componente en la opción MUESTRA

Overrides:
obtenerHtmlMuestra in class GeneradorHtmlSelectValue
Returns:

isTransformarNl2br

public boolean isTransformarNl2br()
Returns:
Devuelve el atributo transformarNl2br

setTransformarNl2br

public void setTransformarNl2br(boolean transformarNl2br)
Parameters:
transformarNl2br - Carga el atributo transformarNl2br