Package org.pepstock.charba.client
Interface ChartsLifecycleListener
-
- All Known Implementing Classes:
Interactions
public interface ChartsLifecycleListener
Interface to catch the initialization, destroy and configuration of all charts.
This is acting differently from a chart plugin because it will get all triggers for all charts.
Used to clean up resources, created by a special implementation and not ot-of-the-box of Charba, like CHART.JS plugins.- Author:
- Andrea "Stock" Stocchero
- See Also:
Charts
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
onAfterConfigure(IsChart chart)
Called after 'chart' has been configured.default void
onAfterDestroy(IsChart chart)
Called after the chart has been destroyed.default void
onAfterInit(IsChart chart)
Called after 'chart' has been initialized.default void
onBeforeConfigure(IsChart chart)
Called before configuring 'chart'.default void
onBeforeDestroy(IsChart chart)
Called before the chart has been destroyed.default void
onBeforeInit(IsChart chart)
Called before initializing 'chart'.
-
-
-
Method Detail
-
onBeforeInit
default void onBeforeInit(IsChart chart)
Called before initializing 'chart'.- Parameters:
chart
- the chart instance.
-
onAfterInit
default void onAfterInit(IsChart chart)
Called after 'chart' has been initialized.- Parameters:
chart
- the chart instance.
-
onBeforeConfigure
default void onBeforeConfigure(IsChart chart)
Called before configuring 'chart'.- Parameters:
chart
- the chart instance.
-
onAfterConfigure
default void onAfterConfigure(IsChart chart)
Called after 'chart' has been configured.- Parameters:
chart
- the chart instance.
-
onBeforeDestroy
default void onBeforeDestroy(IsChart chart)
Called before the chart has been destroyed.- Parameters:
chart
- the chart instance.
-
onAfterDestroy
default void onAfterDestroy(IsChart chart)
Called after the chart has been destroyed.- Parameters:
chart
- the chart instance.
-
-