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