KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.enhydra.shark.swingclient.workflowadmin.report;
2
3 import java.awt.*;
4 import java.util.*;
5
6 import javax.swing.*;
7 import javax.swing.table.*;
8
9
10
11 import org.enhydra.shark.swingclient.*;
12 import org.enhydra.shark.swingclient.workflowadmin.*;
13 //import org.webdocwf.util.swingwfapp.workflowadmin.report.actions.*;
14

15 /**
16  * Implements the user interface and program logic to manage the
17  * reports on workflow processes.
18  *
19  * @author Sasa Bojanic
20  * @version 1.0
21  */

22 public class ProcessReportManagement extends ActionPanel {
23
24
25    private SharkAdmin workflowAdmin;
26
27    /** The table that shows all workitems for the given user. */
28    private JTable worklistTable;
29
30    public ProcessReportManagement (SharkAdmin wa) {
31       super();
32       this.workflowAdmin=wa;
33       super.init();
34    }
35
36    protected void createActions () {}
37
38    protected Component createCenterComponent() {
39       JScrollPane tablePane=new JScrollPane();
40       worklistTable=new JTable();
41       // setting some table properties
42
worklistTable.setColumnSelectionAllowed(false);
43       worklistTable.setRowSelectionAllowed(true);
44       worklistTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
45       worklistTable.getTableHeader().setReorderingAllowed(false);
46       worklistTable.setPreferredScrollableViewportSize(new Dimension(500,300));
47       // setting the first column (ID column) to be invisible
48
/*TableColumn column=worklistTable.getColumnModel().getColumn(0);
49       column.setMinWidth(0);
50       column.setMaxWidth(0);
51       column.setPreferredWidth(0);
52       column.setResizable(false);*/

53
54       tablePane.setViewportView(worklistTable);
55       return tablePane;
56    }
57
58    public SharkAdmin getWorkflowAdmin () {
59       return workflowAdmin;
60    }
61
62 }
63
Popular Tags