|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.mcu.yingo.campos.html.GeneradorHtmlCalendario
public class GeneradorHtmlCalendario
Este campo se compone de un campo de texto y un botón que muestra un calendario
en javascript
Para que este campo funcione correctamente, es necesario que en la cabecera de
la jsp que se utilice en la vista, se realice el import de los procedimientos
de javascript (contenido típicamente en la carpeta WebContent/javascript/)
Por ejemplo:
/javascript/calendar.js
/javascript/calendar-setup.js
Field Summary | |
---|---|
private java.lang.String |
formatoFecha
Formato de la fecha que va a contener el campo, a continuación mostramos las especificaciones del programador del calendario en javascript: %a abbreviated weekday name %A full weekday name %b abbreviated month name %B full month name %C century number %d the day of the month ( 00 .. 31 ) %e the day of the month ( 0 .. 31 ) %H hour ( 00 .. 23 ) %I hour ( 01 .. 12 ) %j day of the year ( 000 .. 366 ) %k hour ( 0 .. 23 ) %l hour ( 1 .. 12 ) %m month ( 01 .. 12 ) %M minute ( 00 .. 59 ) %n a newline character %p ``PM'' or ``AM'' %P ``pm'' or ``am'' %S second ( 00 .. 59 ) %s number of seconds since Epoch (since Jan 01 1970 00:00:00 UTC) %t a tab character %U, %W, %V the week number %u the day of the week ( 1 .. 7, 1 = MON ) %w the day of the week ( 0 .. 6, 0 = SUN ) %y year without the century ( 00 .. 99 ) %Y year including the century ( ex. 1979 ) %% a literal % character |
private java.lang.String |
maxLength
Tamáño en número de caracteres del campo de texto que recoge la fecha |
private java.lang.String |
size
Tamaño del campo de texto que recoge la fecha |
Fields inherited from interface es.mcu.yingo.campos.html.GeneradorHtml |
---|
BUSCA, MODIFICA, MUESTRA, NUEVO |
Constructor Summary | |
---|---|
GeneradorHtmlCalendario()
|
Method Summary | |
---|---|
java.lang.String |
getFormatoFecha()
Formato de la fecha que va a contener el campo |
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 del campo. |
java.lang.String |
getMaxLength()
Tamaño en número de caracteres del campo de texto que recoge la fecha |
java.lang.String |
getSize()
Tamaño del campo de texto que recoge la fecha |
private java.lang.String |
obtenerJavascriptCalendario(java.lang.String id)
Devuelve el script con la funcionalidad del calendario |
void |
setFormatoFecha(java.lang.String formatoFecha)
Formato de la fecha que va a contener el campo, a continuación mostramos las especificaciones del programador del calendario en javascript: %a abbreviated weekday name %A full weekday name %b abbreviated month name %B full month name %C century number %d the day of the month ( 00 .. 31 ) %e the day of the month ( 0 .. 31 ) %H hour ( 00 .. 23 ) %I hour ( 01 .. 12 ) %j day of the year ( 000 .. 366 ) %k hour ( 0 .. 23 ) %l hour ( 1 .. 12 ) %m month ( 01 .. 12 ) %M minute ( 00 .. 59 ) %n a newline character %p ``PM'' or ``AM'' %P ``pm'' or ``am'' %S second ( 00 .. 59 ) %s number of seconds since Epoch (since Jan 01 1970 00:00:00 UTC) %t a tab character %U, %W, %V the week number %u the day of the week ( 1 .. 7, 1 = MON ) %w the day of the week ( 0 .. 6, 0 = SUN ) %y year without the century ( 00 .. 99 ) %Y year including the century ( ex. 1979 ) %% a literal % character |
void |
setMaxLength(java.lang.String maxLength)
Tamaño en número de caracteres del campo de texto que recoge la fecha |
void |
setSize(java.lang.String size)
Tamaño del campo de texto que recoge la fecha |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String size
private java.lang.String maxLength
private java.lang.String formatoFecha
Constructor Detail |
---|
public GeneradorHtmlCalendario()
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)
getHTML
in interface GeneradorHtml
tipo
- id
- value
- codExpediente
- locale
-
java.lang.Exception
private java.lang.String obtenerJavascriptCalendario(java.lang.String id)
id
-
public java.lang.String getFormatoFecha()
public void setFormatoFecha(java.lang.String formatoFecha)
formatoFecha
- the formatoFecha to setpublic java.lang.String getSize()
public void setSize(java.lang.String size)
size
- public java.lang.String getMaxLength()
public void setMaxLength(java.lang.String maxLength)
maxLength
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |