Class ObjectProperty
- java.lang.Object
-
- org.neotropic.util.visual.properties.AbstractProperty
-
- org.neotropic.util.visual.properties.ObjectProperty
-
public class ObjectProperty extends AbstractProperty
Support for object properties. These properties are not plain values unlike strings or numbers, these properties are references to other (complex) objects.- Author:
- Orlando Paz <orlando.paz@kuwaiba.org>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ObjectProperty.ListTypeObject
-
Field Summary
-
Fields inherited from class org.neotropic.util.visual.properties.AbstractProperty
NULL_LABEL
-
-
Constructor Summary
Constructors Constructor Description ObjectProperty(String name, String displayName, String description, Object value, List<Object> items, String type, String displayValue, TranslationService ts)
ObjectProperty(String name, String displayName, String description, Object value, List<Object> items, String type, String displayValue, TranslationService ts, boolean readOnly, boolean mandatory, boolean unique)
ObjectProperty(String name, String displayName, String description, Object value, List<Object> items, String type, Function<Object,String> functionDisplayValue, 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 screencom.vaadin.flow.data.renderer.ComponentRenderer
getComponentRenderer()
BusinessObjectLight
getDefaultValue()
com.vaadin.flow.component.AbstractField
getInplaceEditor()
A simple field that will be used to edit the propertyList
getItems()
void
setComponentRenderer(com.vaadin.flow.data.renderer.ComponentRenderer componentRenderer)
void
setItems(List listTypes)
boolean
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
getAccept, getCancel, getDescription, getDisplayName, getName, getType, getValue, hasBinder, isMandatory, isReadOnly, isUnique, setAccept, setCancel, setDescription, setDisplayName, setHasBinder, setMandatory, setName, setReadOnly, setType, setUnique, setValue, toString
-
-
-
-
Constructor Detail
-
ObjectProperty
public ObjectProperty(String name, String displayName, String description, Object value, List<Object> items, String type, String displayValue, TranslationService ts)
-
ObjectProperty
public ObjectProperty(String name, String displayName, String description, Object value, List<Object> items, String type, String displayValue, TranslationService ts, boolean readOnly, boolean mandatory, boolean unique)
-
-
Method Detail
-
getItems
public List getItems()
-
setItems
public void setItems(List listTypes)
-
getComponentRenderer
public com.vaadin.flow.data.renderer.ComponentRenderer getComponentRenderer()
-
setComponentRenderer
public void setComponentRenderer(com.vaadin.flow.data.renderer.ComponentRenderer componentRenderer)
-
getAdvancedEditor
public com.vaadin.flow.component.AbstractField getAdvancedEditor()
Description copied from class:AbstractProperty
An advanced editor for the property- Specified by:
getAdvancedEditor
in classAbstractProperty
- Returns:
-
supportsAdvancedEditor
public boolean supportsAdvancedEditor()
Description copied from class:AbstractProperty
Does it support an advanced editor? If true- Specified by:
supportsAdvancedEditor
in classAbstractProperty
- 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
- Returns:
-
getAsString
public String getAsString()
Description copied from class:AbstractProperty
The value to be displayed on screen- Specified by:
getAsString
in classAbstractProperty
- 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
- Returns:
-
getDefaultValue
public BusinessObjectLight getDefaultValue()
- Specified by:
getDefaultValue
in classAbstractProperty
-
-