Class LongProperty
- java.lang.Object
-
- org.neotropic.util.visual.properties.AbstractProperty<Long>
-
- org.neotropic.util.visual.properties.LongProperty
-
public class LongProperty extends AbstractProperty<Long>
Support for Long properties- Author:
- Orlando Paz <orlando.paz@kuwaiba.org>
-
-
Field Summary
-
Fields inherited from class org.neotropic.util.visual.properties.AbstractProperty
NULL_LABEL
-
-
Constructor Summary
Constructors Constructor Description LongProperty(String name, String displayName, String description, Long value, TranslationService ts)
LongProperty(String name, String displayName, String description, Long value, TranslationService ts, boolean readOnly)
LongProperty(String name, String displayName, String description, Long value, TranslationService ts, boolean readOnly, boolean mandatory, boolean unique)
-
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 screenLong
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
-
-
-
-
Constructor Detail
-
LongProperty
public LongProperty(String name, String displayName, String description, Long value, TranslationService ts)
-
LongProperty
public LongProperty(String name, String displayName, String description, Long value, TranslationService ts, boolean readOnly)
-
LongProperty
public LongProperty(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<Long>
- Returns:
-
supportsAdvancedEditor
public boolean supportsAdvancedEditor()
Description copied from class:AbstractProperty
Does it support an advanced editor? If true- Specified by:
supportsAdvancedEditor
in classAbstractProperty<Long>
- 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<Long>
- Returns:
-
getAsString
public String getAsString()
Description copied from class:AbstractProperty
The value to be displayed on screen- Specified by:
getAsString
in classAbstractProperty<Long>
- 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<Long>
- Returns:
-
getDefaultValue
public Long getDefaultValue()
- Specified by:
getDefaultValue
in classAbstractProperty<Long>
-
-