KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > oddjob > designer > model > SelectionList


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

4 package org.oddjob.designer.model;
5
6
7 /**
8  *
9  */

10 abstract public class SelectionList implements DesignDefinition {
11
12     private final String JavaDoc heading;
13     
14     public SelectionList(String JavaDoc heading) {
15         this.heading = heading;
16     }
17
18     public String JavaDoc getTitle() {
19         return heading;
20     }
21
22     abstract public String JavaDoc[] getOptions();
23     
24     abstract public void setSelected(String JavaDoc selected);
25
26     abstract public String JavaDoc getSelected();
27     
28     /* (non-Javadoc)
29      * @see org.oddjob.designer.model.DialogDefinition#accept(org.oddjob.designer.model.DialogProcessor)
30      */

31     public void accept(DesignProcessor processor) {
32         processor.onSelectionList(this);
33     }
34     
35 }
36
Popular Tags