5.12.4 Dashboard data source

The dashboard and its panels could be parametrized with a common data source object type. This could be useful that the whole dashboard pulls data from the aggregate data source. The dashboard has a refresh timer, that could trigger data update events to all dashboard elements and registered listeners. Then the timer elapses the dashboard gets refresh event (called onDataSourceUpdated method) and dashboard on its behalf notifies all the dashboard panels about data change as well (by calling DashboadrPanel.onDataSourceUpdated methods). There is a possibility to register event listener on each dashboard element for handling data change events by using DashbaordPanel.addDataChangeListener methods. It is not required to use common data source for dashboard, each dashboard panel can manually pull data from various data sources. The dashboard timer could be used only for refreshing dashboard at regular time intervals.