KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > swingclient > workflowadmin > report > ReportManagement


1 package org.enhydra.shark.swingclient.workflowadmin.report;
2
3 import java.awt.*;
4
5 import javax.swing.*;
6
7 import org.enhydra.shark.swingclient.*;
8 import org.enhydra.shark.swingclient.workflowadmin.*;
9
10 /**
11  * Implements the user interface and program logic to manage the reports.
12  *
13  * @author Sasa Bojanic
14  * @version 1.0
15  */

16 public class ReportManagement extends ActionPanel {
17
18    private JTabbedPane tabbedPane;
19    private SharkAdmin workflowAdmin;
20
21    private ProcessReportManagement processReportManagement;
22    private UserReportManagement userReportManagement;
23    private WorkitemReportManagement workitemReportManagement;
24
25    public ReportManagement (SharkAdmin wa) {
26       super();
27
28       // it is important to create managements before calling init method
29
this.workflowAdmin=wa;
30       processReportManagement=new ProcessReportManagement(wa);
31       userReportManagement=new UserReportManagement(wa);
32       workitemReportManagement=new WorkitemReportManagement(wa);
33
34       super.init();
35    }
36
37    protected void createActions () {}
38
39    //************** CREATING TABBEDPANE *********************
40
protected Component createCenterComponent () {
41       tabbedPane=new JTabbedPane();
42       tabbedPane.addTab(
43          ResourceManager.getLanguageDependentString("ProcessKey"),
44          processReportManagement);
45       tabbedPane.addTab(
46          ResourceManager.getLanguageDependentString("UserKey"),
47          userReportManagement);
48       tabbedPane.addTab(ResourceManager.getLanguageDependentString("WorkitemKey"),
49          workitemReportManagement);
50       return tabbedPane;
51    }
52
53    public void clear () {
54       tabbedPane.setSelectedIndex(0);
55       //processReportManagement.clear();
56
//userReportManagement.clear();
57
//workitemReportManagement.clear();
58
}
59
60    public synchronized void refresh (boolean mandatoryRefreshing) {
61       //processReportManagement.refresh(mandatoryRefreshing);
62
//userReportManagement.refresh(mandatoryRefreshing);
63
//workitemReportManagement.refresh(mandatoryRefreshing);
64
}
65
66    public ProcessReportManagement getProcessReportManagement () {
67       return processReportManagement;
68    }
69
70    public UserReportManagement getUserReportManagement () {
71       return userReportManagement;
72    }
73
74    public WorkitemReportManagement getWorkitemReportManagement () {
75       return workitemReportManagement;
76    }
77
78 }
79
Popular Tags