KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > oddjob > designer > elements > PropertyDE


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

4 package org.oddjob.designer.elements;
5
6 import org.oddjob.designer.arooa.ElementWrapper;
7 import org.oddjob.designer.factory.DesignFactory;
8 import org.oddjob.designer.model.DesignDefinition;
9 import org.oddjob.designer.model.DesignElementType;
10 import org.oddjob.designer.model.ElementField;
11 import org.oddjob.designer.model.FieldGroup;
12 import org.oddjob.designer.model.SingleTypeSelection;
13
14 /**
15  *
16  */

17 public class PropertyDE extends DesignElementType {
18     
19     public DesignDefinition detail() {
20         return new FieldGroup("Property")
21             .add(new ElementField("Name", getName()))
22             .add(new SingleTypeSelection("Type", this));
23     }
24     
25     public String JavaDoc[] supportedTypes() {
26         return DesignFactory.supportedTypes(ListDE.class);
27     }
28
29     public ElementWrapper[] elements() {
30         return childElements();
31     }
32     
33 }
34
Popular Tags