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:
12: import java.util.Locale;
13:
14: /**
15: *
16: */
17: public class PortalContainerCustomizationToc extends ReportTocAdapter {
18: public static final String PortalContCustomCharts = "PortalContCustomCharts";
19:
20: public PortalContainerCustomizationToc(UBTDataSourceI dataSource,
21: Locale locale) throws IllegalDataSourceException {
22: super (dataSource, locale);
23: }
24:
25: protected void createToc() {
26: this .tocCollection.add(new TOCBean(new Integer(0),
27: reportsResource
28: .getReportProperty(PortalContCustomCharts),
29: null, null));
30: this .tocCollection
31: .add(new TOCBean(
32: new Integer(1),
33: reportsResource
34: .getReportProperty(ContainerActionsChart.INTENDED),
35: "ChartGroup_0", null));
36: this .tocCollection
37: .add(new TOCBean(
38: new Integer(1),
39: reportsResource
40: .getReportProperty(ContainerActionsChart.SUCCESS),
41: "ChartGroup_1", null));
42: this .tocCollection
43: .add(new TOCBean(
44: new Integer(1),
45: reportsResource
46: .getReportProperty(ContainerActionsChart.INTENDED_vs_SUCCESS),
47: "ChartGroup_2", null));
48: this .tocCollection
49: .add(new TOCBean(
50: new Integer(1),
51: reportsResource
52: .getReportProperty(ContainerActionsRateChart.REQUESTS_PER_HOUR_PER_CONTAINER),
53: "ChartGroup_3", null));
54: this .tocCollection
55: .add(new TOCBean(
56: new Integer(1),
57: reportsResource
58: .getReportProperty(ContainerActionsRateChart.REQUESTS_PER_HOUR),
59: "ChartGroup_4", null));
60: }
61: }
|