Class LocalDateProperty
- java.lang.Object
-
- org.neotropic.util.visual.properties.AbstractProperty<LocalDate>
-
- org.neotropic.util.visual.properties.LocalDateProperty
-
public class LocalDateProperty extends AbstractProperty<LocalDate>
Support for local-date-type properties- Author:
- Orlando Paz <orlando.paz@kuwaiba.org>
-
-
Field Summary
Fields Modifier and Type Field Description static DateTimeFormatter
DATE_FORMATTER
Default formatter.-
Fields inherited from class org.neotropic.util.visual.properties.AbstractProperty
NULL_LABEL
-
-
Constructor Summary
Constructors Constructor Description LocalDateProperty(String name, String displayName, String description, long value, TranslationService ts)
LocalDateProperty(String name, String displayName, String description, long value, TranslationService ts, boolean readOnly, boolean mandatory, boolean unique)
LocalDateProperty(String name, String displayName, String description, LocalDate value, TranslationService ts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.vaadin.flow.component.AbstractField
getAdvancedEditor()
An advanced editor for the propertyString
getAsString()
The value to be displayed on screenLocalDate
getDefaultValue()
com.vaadin.flow.component.AbstractField
getInplaceEditor()
A simple field that will be used to edit the propertyboolean
supportsAdvancedEditor()
Does it support an advanced editor? If trueboolean
supportsInplaceEditor()
Does it support in place editor? If true-
Methods inherited from class org.neotropic.util.visual.properties.AbstractProperty
getDescription, getDisplayName, getName, getType, getValue, hasBinder, isMandatory, isReadOnly, isUnique, setDescription, setDisplayName, setHasBinder, setMandatory, setName, setReadOnly, setType, setUnique, setValue, toString
-
-
-
-
Field Detail
-
DATE_FORMATTER
public static final DateTimeFormatter DATE_FORMATTER
Default formatter.
-
-
Constructor Detail
-
LocalDateProperty
public LocalDateProperty(String name, String displayName, String description, LocalDate value, TranslationService ts)
-
LocalDateProperty
public LocalDateProperty(String name, String displayName, String description, long value, TranslationService ts)
-
LocalDateProperty
public LocalDateProperty(String name, String displayName, String description, long value, TranslationService ts, boolean readOnly, boolean mandatory, boolean unique)
-
-
Method Detail
-
getAdvancedEditor
public com.vaadin.flow.component.AbstractField getAdvancedEditor()
Description copied from class:AbstractProperty
An advanced editor for the property- Specified by:
getAdvancedEditor
in classAbstractProperty<LocalDate>
- Returns:
-
supportsAdvancedEditor
public boolean supportsAdvancedEditor()
Description copied from class:AbstractProperty
Does it support an advanced editor? If true- Specified by:
supportsAdvancedEditor
in classAbstractProperty<LocalDate>
- Returns:
-
getInplaceEditor
public com.vaadin.flow.component.AbstractField getInplaceEditor()
Description copied from class:AbstractProperty
A simple field that will be used to edit the property- Specified by:
getInplaceEditor
in classAbstractProperty<LocalDate>
- Returns:
-
getAsString
public String getAsString()
Description copied from class:AbstractProperty
The value to be displayed on screen- Specified by:
getAsString
in classAbstractProperty<LocalDate>
- Returns:
- The string representation of the value of the property
-
supportsInplaceEditor
public boolean supportsInplaceEditor()
Description copied from class:AbstractProperty
Does it support in place editor? If true- Specified by:
supportsInplaceEditor
in classAbstractProperty<LocalDate>
- Returns:
-
getDefaultValue
public LocalDate getDefaultValue()
- Specified by:
getDefaultValue
in classAbstractProperty<LocalDate>
-
-