KickJava   Java API By Example, From Geeks To Geeks.

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


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 ResetJobDC extends BaseDC {
16
17     private SimpleDE job = new SimpleDE();
18     private SimpleDE level = 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("Job", job))
26                     .add(new ElementField("Level", level)));
27     }
28         
29     public void setJob(SimpleDE text) {
30         this.job = text;
31     }
32     
33     public SimpleDE getJob() {
34         return job;
35     }
36     
37     /**
38      * @return Returns the level.
39      */

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

46     public void setLevel(SimpleDE level) {
47         this.level = level;
48     }
49 }
50
51
Popular Tags