Interface InitialValueProviding<T>
- Type Parameters:
T- Value type, same as inValueEngineer
public interface InitialValueProviding<T>
Aspect for
ValueEngineers providing an initial value.
To activate, the GOM object related to the engineer must define/override getPreset() and use InitialPreset as co-variant return type.
If the related GOM attribute "preset" is set to "created"-mode (InitialPreset.isCreated() == true),
onCreation() gets called whenever the editor is created and no value is set.
Example:
Using the "created"-mode allows for realizing some unique value provisioning.
- Since:
- 4.2.452
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ValueEngineerAspectType<InitialValueProviding<?>>Aspect forValueEngineers providing an initial value. -
Method Summary
Modifier and TypeMethodDescriptionCallback to provide a value for creation stage use.
-
Field Details
-
TYPE
Aspect forValueEngineers providing an initial value.- Since:
- 4.2.452
-
-
Method Details
-
onCreation
Callback to provide a value for creation stage use. Will be called when preset mode ispreset="Created"- Returns:
- The value to use (can be
null). - Since:
- 4.2.452
-