public interface DateField<F extends DateField<F>> extends Field<F>
Modifier and Type | Interface and Description |
---|---|
static class |
DateField.Attributes |
static class |
DateField.DateStartUnit |
Modifier and Type | Method and Description |
---|---|
default F |
dateFormat(String format)
Adds the
DateField.Attributes.DATE_FORMAT attribute. |
default F |
defaultEndOf(DateField.DateStartUnit endUnit)
Use the current date default ending at the particular unit.
|
default F |
defaultNow()
Represents a default value for a date set to the exact moment it is generated on the frontend
|
default F |
defaultStartOf(DateField.DateStartUnit startUnit)
Use the current date default starting at the particular unit.
|
default Optional<String> |
findDateFormat()
Finds the
DateColumn.Attributes#DATE_FORMAT attribute. |
default String |
getDateFormat()
Gets the
DateField.Attributes.DATE_FORMAT attribute. |
default boolean |
hasDateFormat()
Checks whether the
DateField.Attributes.DATE_FORMAT attribute has been set. |
default F |
removeDateFormat()
Removes the
DateField.Attributes.DATE_FORMAT attribute. |
default F |
validateIsAfter(String messageKey,
Object... arg)
Creates a validation schema to verify that a date in this field is after a date in another
field.
|
decorated, defaultValue, getDefaultValue, getName, getPlaceholder, getRequiredMessage, getValidationSchema, isReadOnly, isRequired, isShowInQueryBuilder, name, notReadOnly, notRequired, placeholder, placeholder, readOnly, readOnly, required, required, required, required, requiredMessage, requiredMessage, setDefaultValue, setName, setPlaceholder, setReadOnly, setRequired, setRequiredMessage, setShowInQueryBuilder, setValidationSchema, validationMethod, validationSchema, validationSchema
getHelpText, getHint, getTooltip, helpText, helpText, hidden, hidden, hint, hint, isHidden, notHidden, setHelpText, setHidden, setHint, setTooltip, tooltip, tooltip
addAction, addAction, addComponent, addEndpoint, addEndpoint, apply, attribute, augmentationKey, classifier, clearConditionals, clearEndpoints, conditional, conditionals, description, description, findAction, findAction, findActions, findAttribute, findComponent, findComponent, findComponents, findEndpoint, findEndpoint, findEndpoints, get, get, getAction, getAction, getActions, getActionsList, getAttribute, getAttribute, getAttributes, getAugmentationKey, getClassifier, getComponent, getComponent, getComponents, getComponentsList, getConditionals, getDescription, getEndpoint, getEndpoint, getEndpoints, getEndpointsList, getId, getLabel, getOrder, getScope, getType, hasAction, hasAttribute, hasComponent, hasEndpoint, id, isAugmentable, isTranslatable, label, label, notTranslatable, order, removeAction, removeAttribute, removeComponent, removeEndpoint, scope, self, setActions, setAttributes, setAugmentationKey, setClassifier, setComponents, setConditionals, setDescription, setEndpoints, setId, setLabel, setOrder, setScope, setTranslatable, setType, translatable, translatable, type
compareTo
default F defaultNow()
default F defaultStartOf(DateField.DateStartUnit startUnit)
defaultStartOf(DateStartUnit.YEAR)
= 2018-01-01 00:00:00defaultStartOf(DateStartUnit.HOUR)
= 2018-07-12 09:00:00startUnit
- the unit the default date should start at, never nulldefault F defaultEndOf(DateField.DateStartUnit endUnit)
defaultEndOf(DateStartUnit.YEAR)
= 2018-12-31 23:59:59defaultEndOf(DateStartUnit.HOUR)
= 2018-07-12 09:59:00endUnit
- the unit the default date should end, never nulldefault F validateIsAfter(String messageKey, Object... arg)
messageKey
- the message key of the validation errorarg
- the arguments for the validation methoddefault F dateFormat(String format)
DateField.Attributes.DATE_FORMAT
attribute.format
- The format to set. See DateFormatTypes
this
@Nullable default String getDateFormat()
DateField.Attributes.DATE_FORMAT
attribute.default Optional<String> findDateFormat()
DateColumn.Attributes#DATE_FORMAT
attribute.Optional.empty()
if not present.default F removeDateFormat()
DateField.Attributes.DATE_FORMAT
attribute.this
default boolean hasDateFormat()
DateField.Attributes.DATE_FORMAT
attribute has been set.Copyright © 2021. All rights reserved.