KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > oddjob > designer > view > ElementFieldDummy


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

4 package org.oddjob.designer.view;
5
6 import org.oddjob.designer.model.DesignAttribute;
7 import org.oddjob.designer.model.DesignDefinition;
8 import org.oddjob.designer.model.ElementField;
9
10 public class ElementFieldDummy extends DummyView {
11
12     DesignAttribute da;
13     
14     public ElementFieldDummy(ElementField elementField) {
15         da = elementField.getDesignElement();
16         if (da.hasDetail()) {
17             inline(da.detail());
18         }
19     }
20     
21     public void attribute(String JavaDoc attribute) {
22         da.attribute(attribute);
23     }
24     
25     public String JavaDoc attribute() {
26         return da.attribute();
27     }
28 }
29
Popular Tags