KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

16 public class UnscheduleDC extends BaseDC {
17
18     private ReferenceAttribute scheduler = new ReferenceAttribute();
19     private SimpleTextAttribute scheduleId = new SimpleTextAttribute();
20     
21     public FormDefinition form() {
22         return new StandardForm(tag())
23             .addGroup(basePanel())
24             .addGroup(
25                     new FieldGroup("Unschedule")
26                     .add(new ElementField("Scheduler", scheduler))
27                     .add(new ElementField("Schedule Id", scheduleId)));
28     }
29         
30     public void setScheduler(ReferenceAttribute text) {
31         this.scheduler = text;
32     }
33     
34     public ReferenceAttribute getScheduler() {
35         return scheduler;
36     }
37
38     public SimpleTextAttribute getScheduleId() {
39         return scheduleId;
40     }
41
42     public void setScheduleId(SimpleTextAttribute scheduleId) {
43         this.scheduleId = scheduleId;
44     }
45     
46 }
47
48
Popular Tags