KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > oddjob > designer > components > TriggerDC


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

4 package org.oddjob.designer.components;
5
6 import org.oddjob.designer.elements.SimpleDE;
7 import org.oddjob.designer.model.ElementField;
8 import org.oddjob.designer.model.FieldGroup;
9 import org.oddjob.designer.model.FormDefinition;
10 import org.oddjob.designer.model.StandardForm;
11
12 /**
13  *
14  */

15 public class TriggerDC extends BaseDC {
16
17     private SimpleDE on = new SimpleDE();
18     private SimpleDE state = new SimpleDE();
19     
20     public FormDefinition form() {
21         return new StandardForm(tag())
22             .addGroup(basePanel())
23             .addGroup(
24                     new FieldGroup("Job Details")
25                         .add(new ElementField("On Job", on))
26                         .add(new ElementField("State", state)));
27     }
28         
29     public void setOn(SimpleDE text) {
30         this.on = text;
31     }
32     
33     public SimpleDE getOn() {
34         return on;
35     }
36     
37     /**
38      * @return Returns the state.
39      */

40     public SimpleDE getState() {
41         return state;
42     }
43     
44     /**
45      * @param state The state to set.
46      */

47     public void setState(SimpleDE state) {
48         this.state = state;
49     }
50 }
51
52
Popular Tags