KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > oddjob > designer > components > VariablesDC


1 /*
2  * (c) Rob Gordon 2005.
3  */

4 package org.oddjob.designer.components;
5
6 import java.awt.Component JavaDoc;
7
8 import org.oddjob.designer.arooa.ElementWrapper;
9 import org.oddjob.designer.elements.MapDE;
10 import org.oddjob.designer.model.DesignComponent;
11 import org.oddjob.designer.model.DesignElementType;
12 import org.oddjob.designer.model.FormDefinition;
13 import org.oddjob.designer.model.StandardForm;
14
15 /**
16  *
17  */

18 public class VariablesDC extends BaseDC
19 implements DesignComponent {
20
21     private final MapDE values = new MapDE();
22     private Component JavaDoc mainForm;
23         
24     /* (non-Javadoc)
25      * @see org.oddjob.designer.model.DesignerComponent#getJPanel()
26      */

27     public FormDefinition form() {
28         return new StandardForm(tag())
29                     .addGroup(basePanel())
30                     .addGroup(values.detail());
31     }
32     
33     public ElementWrapper[] elements() {
34         return values.elements();
35     }
36
37     public void addChild(DesignElementType de) {
38         values.addChild(de);
39     }
40         
41 }
42
Popular Tags