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.ContainerRenderChart;
10:
11: import java.util.Locale;
12:
13: /**
14: *
15: */
16: public class PortalContainerRenderToc extends ReportTocAdapter {
17: public static final String PortalContainerRenderCharts = "PortalContainerRenderCharts";
18:
19: public PortalContainerRenderToc(UBTDataSourceI dataSource,
20: Locale locale) throws IllegalDataSourceException {
21: super (dataSource, locale);
22: }
23:
24: protected void createToc() {
25: this .tocCollection
26: .add(new TOCBean(
27: new Integer(0),
28: reportsResource
29: .getReportProperty(PortalContainerRenderCharts),
30: null, null));
31: this .tocCollection
32: .add(new TOCBean(
33: new Integer(1),
34: reportsResource
35: .getReportProperty(ContainerRenderChart.REQUESTS_PER_HOUR_PER_CONTAINER),
36: "ChartGroup_0", null));
37: this .tocCollection
38: .add(new TOCBean(
39: new Integer(1),
40: reportsResource
41: .getReportProperty(ContainerRenderChart.REQUESTS_PER_HOUR),
42: "ChartGroup_1", null));
43: }
44: }
|