public class Dashboard extends Object
Modifier and Type | Field and Description |
---|---|
protected DashboardFilter |
dashboardFilter
The dashboard filter.
|
protected org.jboss.dashboard.commons.events.Publisher |
listeners
Dashboard listeners
|
protected static org.slf4j.Logger |
log
Logger
|
protected Dashboard |
parent
Parent dashboard for Drill-down.
|
protected String |
parentProperty
Parent property to drill-up if dashboard filter does not contains it.
|
protected Long |
sectionDbid
Dashboard section.
|
Constructor and Description |
---|
Dashboard() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(DashboardListener listener) |
boolean |
belongsToDashboard(Panel panel)
Check if a given panel belongs to this dashboard.
|
protected boolean |
drillDown(Dashboard parent,
String parentPropertyId) |
protected Dashboard |
drillUp() |
boolean |
equals(Object obj) |
protected void |
filter() |
boolean |
filter(String propertyId,
Interval interval,
int allowMode) |
boolean |
filter(String propertyId,
Object minValue,
boolean minValueIncluded,
Object maxValue,
boolean maxValueIncluded,
Collection allowedValues,
int allowMode) |
DashboardFilter |
getDashboardFilter() |
DataProperty |
getDataPropertyById(String propertyId)
Search for a data property into the data providers.
|
Set<DataProvider> |
getDataProviders() |
Dashboard |
getParent() |
String |
getParentProperty() |
Section |
getSection() |
int |
hashCode() |
void |
init()
Init the dashboard with the KPIs in the section.
|
boolean |
isDrillDownAllowed(Dashboard fromParent)
Check if drill down from the specified page to this one is allowed.
|
void |
refresh()
Refresh all the KPI data sets for this dashboard.
|
protected void |
refreshPanels(String[] propertySet)
Refresh those dashboard panels that are related with any of the properties specified.
|
void |
setDashboardFilter(DashboardFilter dashboardFilter) |
void |
setParentProperty(String parentProperty) |
void |
setSection(Section newSection) |
String |
toString() |
boolean |
unfilter() |
boolean |
unfilter(String propertyId) |
protected static transient org.slf4j.Logger log
protected Long sectionDbid
protected DashboardFilter dashboardFilter
protected Dashboard parent
protected String parentProperty
protected transient org.jboss.dashboard.commons.events.Publisher listeners
public void addListener(DashboardListener listener)
public String getParentProperty()
public void setParentProperty(String parentProperty)
public Dashboard getParent()
public DashboardFilter getDashboardFilter()
public void setDashboardFilter(DashboardFilter dashboardFilter)
public Section getSection()
public void setSection(Section newSection)
public boolean belongsToDashboard(Panel panel)
public Set<DataProvider> getDataProviders()
public DataProperty getDataPropertyById(String propertyId)
public void init()
All the KPIs and its related data sets are refreshed. The dashboard filter is cleared as well.
public void refresh()
public boolean filter(String propertyId, Interval interval, int allowMode) throws Exception
Exception
public boolean filter(String propertyId, Object minValue, boolean minValueIncluded, Object maxValue, boolean maxValueIncluded, Collection allowedValues, int allowMode) throws Exception
Exception
protected Dashboard drillUp()
public boolean isDrillDownAllowed(Dashboard fromParent)
fromParent
- The parent dasboard we are coming.Copyright © 2012-2015 JBoss by Red Hat. All Rights Reserved.