Class LocalDateTimeProperty
- java.lang.Object
-
- org.neotropic.util.visual.properties.AbstractProperty<LocalDateTime>
-
- org.neotropic.util.visual.properties.LocalDateTimeProperty
-
public class LocalDateTimeProperty extends AbstractProperty<LocalDateTime>
Support for local-date-time type properties- Author:
- Orlando Paz <orlando.paz@kuwaiba.org>
-
-
Field Summary
Fields Modifier and Type Field Description static DateTimeFormatterDATE_FORMATTERDefault formatter.-
Fields inherited from class org.neotropic.util.visual.properties.AbstractProperty
NULL_LABEL
-
-
Constructor Summary
Constructors Constructor Description LocalDateTimeProperty(String name, String displayName, String description, long value, TranslationService ts)LocalDateTimeProperty(String name, String displayName, String description, long value, TranslationService ts, boolean readOnly, boolean mandatory, boolean unique)LocalDateTimeProperty(String name, String displayName, String description, LocalDateTime value, TranslationService ts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.vaadin.flow.component.AbstractFieldgetAdvancedEditor()An advanced editor for the propertyStringgetAsString()The value to be displayed on screenLocalDateTimegetDefaultValue()com.vaadin.flow.component.AbstractFieldgetInplaceEditor()A simple field that will be used to edit the propertybooleansupportsAdvancedEditor()Does it support an advanced editor? If truebooleansupportsInplaceEditor()Does it support in place editor? If true-
Methods inherited from class org.neotropic.util.visual.properties.AbstractProperty
getAccept, getCancel, getDescription, getDisplayName, getName, getType, getValue, hasBinder, isMandatory, isReadOnly, isUnique, setAccept, setCancel, setDescription, setDisplayName, setHasBinder, setMandatory, setName, setReadOnly, setType, setUnique, setValue, toString
-
-
-
-
Field Detail
-
DATE_FORMATTER
public static final DateTimeFormatter DATE_FORMATTER
Default formatter.
-
-
Constructor Detail
-
LocalDateTimeProperty
public LocalDateTimeProperty(String name, String displayName, String description, LocalDateTime value, TranslationService ts)
-
LocalDateTimeProperty
public LocalDateTimeProperty(String name, String displayName, String description, long value, TranslationService ts)
-
LocalDateTimeProperty
public LocalDateTimeProperty(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:AbstractPropertyAn advanced editor for the property- Specified by:
getAdvancedEditorin classAbstractProperty<LocalDateTime>- Returns:
-
supportsAdvancedEditor
public boolean supportsAdvancedEditor()
Description copied from class:AbstractPropertyDoes it support an advanced editor? If true- Specified by:
supportsAdvancedEditorin classAbstractProperty<LocalDateTime>- Returns:
-
getInplaceEditor
public com.vaadin.flow.component.AbstractField getInplaceEditor()
Description copied from class:AbstractPropertyA simple field that will be used to edit the property- Specified by:
getInplaceEditorin classAbstractProperty<LocalDateTime>- Returns:
-
getAsString
public String getAsString()
Description copied from class:AbstractPropertyThe value to be displayed on screen- Specified by:
getAsStringin classAbstractProperty<LocalDateTime>- Returns:
- The string representation of the value of the property
-
supportsInplaceEditor
public boolean supportsInplaceEditor()
Description copied from class:AbstractPropertyDoes it support in place editor? If true- Specified by:
supportsInplaceEditorin classAbstractProperty<LocalDateTime>- Returns:
-
getDefaultValue
public LocalDateTime getDefaultValue()
- Specified by:
getDefaultValuein classAbstractProperty<LocalDateTime>
-
-