KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

11 public class FieldGroup extends GroupBase implements DesignDefinition {
12
13     private boolean containsSelection;
14     
15     public FieldGroup(String JavaDoc heading) {
16         super(heading);
17     }
18     
19     
20     public FieldGroup add(DesignDefinition elementField) {
21         super.addElement(elementField);
22         if (elementField instanceof FieldSelection) {
23             containsSelection = true;
24         }
25         return this;
26     }
27             
28     public boolean isContainsSelection() {
29         return containsSelection;
30     }
31     
32     /* (non-Javadoc)
33      * @see org.oddjob.designer.model.DialogDefinition#accept(org.oddjob.designer.model.DialogProcessor)
34      */

35     public void accept(DesignProcessor processor) {
36         processor.onFieldGroup(this);
37     }
38 }
39
Popular Tags