Package org.wicketstuff.gchart
Interface ChartLibLoader
-
- All Known Implementing Classes:
ChartLibLoaderBehavior
public interface ChartLibLoaderInterface for implementation of central lib and package loading mechanism. The implementation should load the Google chart lib only once and load every package needed by all charts added. If a Maps API key is set in one of the charts, it is also added.- Author:
- Dieter Tremel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaddChart(Chart chart)Add a chart to the loader, so it's package is loaded to.HeaderItemgetHeaderItem()Get the HeaderItem the loader adds, only to make dependencies to.booleanremoveChart(Chart chart)Remove a previous added chart.
-
-
-
Method Detail
-
addChart
boolean addChart(Chart chart)
Add a chart to the loader, so it's package is loaded to.- Parameters:
chart- Chart to add.- Returns:
- True if Chart is added.
-
removeChart
boolean removeChart(Chart chart)
Remove a previous added chart.- Parameters:
chart- Chart to remove.- Returns:
- True if the Chart was managed and is removed now, false otherwise.
-
getHeaderItem
HeaderItem getHeaderItem()
Get the HeaderItem the loader adds, only to make dependencies to.- Returns:
- HeaderItem that the loader contributes.
-
-