KickJava   Java API By Example, From Geeks To Geeks.

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


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

41     public SimpleDE getThreadManager() {
42         return threadManager;
43     }
44     
45     /**
46      * @param threadManager The threadManager to set.
47      */

48     public void setThreadManager(SimpleDE threadManager) {
49         this.threadManager = threadManager;
50     }
51 }
52
53
Popular Tags