01: /*
02: * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05: package com.sun.portal.ubt.report.view.toc;
06:
07: import com.sun.portal.ubt.report.data.file.derived.UBTDataSourceI;
08: import com.sun.portal.ubt.report.view.IllegalDataSourceException;
09: import com.sun.portal.ubt.report.view.chart.ContainerActionsChart;
10: import com.sun.portal.ubt.report.view.chart.ContainerActionsRateChart;
11: import com.sun.portal.ubt.report.view.chart.PortletActionsRateChart;
12:
13: import java.util.Locale;
14:
15: /**
16: *
17: */
18: public class PortletActionsToc extends ReportTocAdapter {
19: public static final String PortletActionsCharts = "PortletActionsCharts";
20:
21: public PortletActionsToc(UBTDataSourceI dataSource, Locale locale)
22: throws IllegalDataSourceException {
23: super (dataSource, locale);
24: }
25:
26: protected void createToc() {
27: this .tocCollection
28: .add(new TOCBean(new Integer(0), reportsResource
29: .getReportProperty(PortletActionsCharts), null,
30: null));
31: this .tocCollection
32: .add(new TOCBean(
33: new Integer(1),
34: reportsResource
35: .getReportProperty(PortletActionsRateChart.REQUESTS_PER_HOUR_PER_PORTLET),
36: "ChartGroup_0", null));
37: this .tocCollection
38: .add(new TOCBean(
39: new Integer(1),
40: reportsResource
41: .getReportProperty(PortletActionsRateChart.REQUESTS_PER_HOUR),
42: "ChartGroup_1", null));
43: }
44: }
|