@SessionScoped public class DashboardHandler extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected Dashboard |
currentDashboard
Currently accessed dashboard.
|
protected Map<Long,Dashboard> |
dashboards
Dashboards displayed by the user.
|
static String |
KPI_CODE |
protected DashboardListener |
listener
The dashboard listener
|
protected org.slf4j.Logger |
log |
Constructor and Description |
---|
DashboardHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKPIs(Section section)
Check if the specified section is a dashboard.
|
Dashboard |
getCurrentDashboard()
Get the dashboard for the current page.
|
Dashboard |
getDashboard(Section section)
Get the dashboard for the specified page.
|
KPI |
getKPI(Panel panel)
Get the KPI rendered by a given panel.
|
KPI |
getKPI(PanelInstance panelInstance)
Get the KPI configured for the specified panel.
|
static DashboardHandler |
lookup()
Get the instance for the current session.
|
public static final String KPI_CODE
protected org.slf4j.Logger log
protected Dashboard currentDashboard
protected DashboardListener listener
public static DashboardHandler lookup()
public KPI getKPI(PanelInstance panelInstance)
public boolean containsKPIs(Section section)
public Dashboard getDashboard(Section section)
public Dashboard getCurrentDashboard()
Copyright © 2012–2016 JBoss by Red Hat. All rights reserved.