Class UserProperty
- java.lang.Object
-
- org.neotropic.util.visual.properties.AbstractProperty<List<UserProfile>>
-
- org.neotropic.kuwaiba.core.services.scheduling.properties.UserProperty
-
public class UserProperty extends AbstractProperty<List<UserProfile>>
Support for user properties- Author:
- Juan Sebastian Betancourt <juan.betancourt@kuwaiba.org>
-
-
Field Summary
Fields Modifier and Type Field Description static String
NOT_USERS_SELECTED_LABEL
static String
USER_SELECTED_LABEL
static String
USERS_SELECTED_LABEL
-
Fields inherited from class org.neotropic.util.visual.properties.AbstractProperty
NULL_LABEL
-
-
Constructor Summary
Constructors Constructor Description UserProperty(String name, String displayName, String description, List value, TranslationService ts, ApplicationEntityManager aem)
-
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 screenList
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
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
-
UserProperty
public UserProperty(String name, String displayName, String description, List value, TranslationService ts, ApplicationEntityManager aem)
-
-
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<List<UserProfile>>
- Returns:
-
supportsAdvancedEditor
public boolean supportsAdvancedEditor()
Description copied from class:AbstractProperty
Does it support an advanced editor? If true- Specified by:
supportsAdvancedEditor
in classAbstractProperty<List<UserProfile>>
- 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<List<UserProfile>>
- Returns:
-
getAsString
public String getAsString()
Description copied from class:AbstractProperty
The value to be displayed on screen- Specified by:
getAsString
in classAbstractProperty<List<UserProfile>>
- 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<List<UserProfile>>
- Returns:
-
getDefaultValue
public List getDefaultValue()
- Specified by:
getDefaultValue
in classAbstractProperty<List<UserProfile>>
-
-