KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > jawe > actions > WfXML


1 /*
2  * Authors:
3  * Stefanovic Nenad chupo@iis.ns.ac.yu
4  * Bojanic Sasa sasaboy@neobee.net
5  *
6  */

7
8 package org.enhydra.jawe.actions;
9
10 import java.awt.event.ActionEvent JavaDoc;
11 import java.net.Authenticator JavaDoc;
12
13 import javax.swing.JFrame JavaDoc;
14
15 import org.enhydra.jawe.PackageEditor;
16 import org.enhydra.jawe.ResourceManager;
17 import org.enhydra.jawe.wfxml.*;
18 import org.enhydra.jawe.xml.XMLElementDialog;
19 import org.enhydra.jawe.xml.panels.XMLGroupPanel;
20 import org.enhydra.jawe.xml.panels.XMLPanel;
21
22 public class WfXML extends ActionBase{
23
24    public WfXML (PackageEditor editor) {
25       super(editor);
26    }
27
28    public void actionPerformed(ActionEvent JavaDoc e) {
29       DefInfos dis=new DefInfos();
30       String JavaDoc t=ResourceManager.getLanguageDependentString("ProcessDefinitionListKey");
31       dis.setLabelName(t);
32       WfXMLPanel p1=new WfXMLPanel(dis);
33       WfXMLControlPanel p2=new WfXMLControlPanel(dis,p1,"",false,false);
34       XMLGroupPanel gp=new XMLGroupPanel(dis,new XMLPanel[]{
35                p1,p2},"",XMLPanel.BOX_LAYOUT,
36                                          true,false);
37
38       XMLElementDialog d=new XMLElementDialog((JFrame JavaDoc)editor.getWindow(),
39                                               ResourceManager.getLanguageDependentString("WfXMLKey"));
40       Authenticator.setDefault(new WfXMLAuthenticator(d));
41       d.editXMLElement(gp,false,false);
42       editor.update();
43    }
44
45 }
46
47
Popular Tags