KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > swingclient > workflowadmin > cache > actions > SetProcessCacheSize


1 package org.enhydra.shark.swingclient.workflowadmin.cache.actions;
2
3 import java.awt.event.ActionEvent JavaDoc;
4 import org.enhydra.shark.api.client.wfservice.CacheAdministration;
5 import org.enhydra.shark.swingclient.ActionBase;
6 import org.enhydra.shark.swingclient.workflowadmin.SharkAdmin;
7 import org.enhydra.shark.swingclient.workflowadmin.cache.CacheManagement;
8 import org.enhydra.shark.swingclient.workflowadmin.cache.CacheSize;
9
10 /**
11  * Sets the process cache size
12  *
13  * @author Sasa Bojanic
14  * @version 1.0
15  */

16 public class SetProcessCacheSize extends ActionBase {
17
18    public SetProcessCacheSize (CacheManagement cm) {
19       super(cm);
20    }
21
22    public void actionPerformed(ActionEvent JavaDoc e) {
23       try {
24          CacheManagement cm=(CacheManagement)actionPanel;
25          CacheAdministration ca=SharkAdmin.getCacheAdmin();
26          CacheSize csd=new CacheSize(cm.getWindow(),ca.getProcessCacheSize());
27          csd.showDialog();
28          ca.setProcessCacheSize(csd.getCacheSize());
29          cm.refresh(true);
30       } catch (Exception JavaDoc ex) {}
31    }
32 }
33
Popular Tags