public class DateFormatter
extends java.lang.Object
implements java.util.function.Function<java.util.Date,java.lang.String>
Date formatter to be used in screen descriptors.
format or type attributes should be defined in the formatter element.
format - format string for SimpleDateFormattype - DATE or DATETIME - if specified, the value will be formatted
by means of DateDatatype or DateTimeDatatype respectively.<formatter class="com.haulmont.cuba.gui.components.formatters.DateFormatter" format="msg://dateFormat"
| Modifier and Type | Field and Description |
|---|---|
protected Messages |
messages |
protected UserSessionSource |
userSessionSource |
| Constructor and Description |
|---|
DateFormatter(org.dom4j.Element element) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
apply(java.util.Date value) |
protected UserSessionSource userSessionSource
protected Messages messages