KickJava   Java API By Example, From Geeks To Geeks.

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


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

4 package org.oddjob.designer.view;
5
6 import org.oddjob.designer.model.DesignElementType;
7 import org.oddjob.designer.model.SingleTypeSelection;
8
9 public class TypeSelectionDummy extends DummyView {
10
11     private SingleTypeSelection selection;
12     
13     public TypeSelectionDummy(SingleTypeSelection selection) {
14         this.selection = selection;
15     }
16     
17     public DummyView create(String JavaDoc type) {
18         selection.setSelected(type);
19         DesignElementType det = selection.getChildDesignElement();
20         return inline(det.detail());
21     }
22 }
23
Popular Tags