KickJava   Java API By Example, From Geeks To Geeks.

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


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

4 package org.oddjob.designer.view;
5
6 import org.oddjob.designer.model.SelectionList;
7
8 public class SelectionListDummy extends DummyView {
9
10     SelectionList selectionList;
11     
12     public SelectionListDummy(SelectionList selectionList) {
13         this.selectionList = selectionList;
14     }
15     
16     public String JavaDoc attribute() {
17         return selectionList.getSelected();
18     }
19     
20     public void attribute(String JavaDoc attribute) {
21         selectionList.setSelected(attribute);
22     }
23 }
24
Popular Tags