T
- Value type, same as in ValueEngineer
public interface InitialValueProviding<T>
ValueEngineer
s 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.
Modifier and Type | Field and Description |
---|---|
static ValueEngineerAspectType<InitialValueProviding<?>> |
TYPE
Aspect for
ValueEngineer s providing an initial value. |
Modifier and Type | Method and Description |
---|---|
T |
onCreation()
Callback to provide a value for creation stage use.
|
static final ValueEngineerAspectType<InitialValueProviding<?>> TYPE
ValueEngineer
s providing an initial value.@Nullable T onCreation()
preset="Created"
null
).Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500