public class DateField extends AbstractDateField<Date>
Modifier and Type | Field and Description |
---|---|
static String |
copyright |
containsTime, dateFormatError, datePattern, dateTimeFormatter, dateValue
autoCapitalize, labelPlaceholder, maxLength, replaceBadUnicodeCharacters, size, stringValue
accessor, bulkCheckboxName, bulkChecked, colSpan, COPYRIGHT, EDITABLE_FIELD_CSS_CLASS, elementsConfiguration, enabled, errors, fieldCssClass, forceNewRow, FORM_LABEL_CSS_CLASS, help, href, id, INPUT_CONTAINER_CSS_CLASS, inputName, insertable, label, logger, mode, required, STATIC_VALUE_CSS_CLASS, title, updatable
Constructor and Description |
---|
DateField(PropertyAccessor accessor,
Mode mode) |
DateField(PropertyAccessor accessor,
Mode mode,
String prefix) |
Modifier and Type | Method and Description |
---|---|
protected DateTime |
fromDate(Date dateValue) |
protected Date |
toDate(DateTime dateTime) |
protected Date |
toDate(Number millisSince1970) |
getDatePattern, getDateTimeFormatter, getValue, maybeConvertValue, readFrom, readFromObject, readFromRequest, setDateTimeFormatter, setStringValue, setValue, updateStringValue, validate, valueToXhtmlEdit, writeToObject
getMaxLength, getSize, getStringValue, isAutoCapitalize, isLabelPlaceholder, isReplaceBadUnicodeCharacters, labelToXhtml, setAutoCapitalize, setLabelPlaceholder, setMaxLength, setReplaceBadUnicodeCharacters, setSize, valueToXhtml, valueToXhtmlPreview, valueToXhtmlView
closeVisibleField, errorsToXhtml, getColSpan, getDisplayValue, getErrors, getFieldCssClass, getHelp, getHref, getId, getInputName, getLabel, getMode, getPropertyAccessor, getText, getTitle, hasRequiredFields, helpToXhtml, isBlank, isEnabled, isForceNewRow, isInsertable, isReadOnly, isRequired, isUpdatable, isValid, openVisibleField, setColSpan, setEnabled, setErrors, setFieldCssClass, setForceNewRow, setHelp, setHref, setId, setInputName, setInsertable, setLabel, setRequired, setTitle, setUpdatable, toXhtml, writeTo, writeToObject, writeToObject
public static final String copyright
public DateField(PropertyAccessor accessor, Mode mode)
public DateField(PropertyAccessor accessor, Mode mode, String prefix)
protected Date toDate(@NotNull Number millisSince1970)
toDate
in class AbstractDateField<Date>
protected Date toDate(@NotNull DateTime dateTime)
toDate
in class AbstractDateField<Date>
protected DateTime fromDate(@NotNull Date dateValue)
fromDate
in class AbstractDateField<Date>