C
- The actual config type.public interface WidgetWithConfig<C extends WidgetConfig> extends ConfigOwner<C>
Modifier and Type | Method and Description |
---|---|
void |
initialize(WidgetId id,
C cfg)
Replacement API for the logic which should exist in the widget's c'tor, but the logic
can't be executed as it depends on the widget being registered into the official registry.
|
afterConfigUpdate, config
void initialize(WidgetId id, C cfg)
This API is called after the widget is created and added to the registry.
id
- The widget's ID.cfg
- The config used to initialize this widget.