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 15 22 public class ProcessReportManagement extends ActionPanel { 23 24 25 private SharkAdmin workflowAdmin; 26 27 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 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 53 54 tablePane.setViewportView(worklistTable); 55 return tablePane; 56 } 57 58 public SharkAdmin getWorkflowAdmin () { 59 return workflowAdmin; 60 } 61 62 } 63 | Popular Tags |