KickJava   Java API By Example, From Geeks To Geeks.

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


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

4 package org.oddjob.designer.components;
5
6 import org.oddjob.designer.elements.scheduling.ScheduleListDE;
7 import org.oddjob.designer.elements.simple.ReferenceAttribute;
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.MultiTypeTable;
12 import org.oddjob.designer.model.StandardForm;
13
14 /**
15  *
16  */

17 public class ScheduleDC extends BaseDC {
18
19     private ReferenceAttribute scheduler = new ReferenceAttribute();
20     private ScheduleListDE schedules = new ScheduleListDE();
21     
22     /* (non-Javadoc)
23      * @see org.oddjob.designer.model.DesignerComponent#getJPanel()
24      */

25     public FormDefinition form() {
26         return new StandardForm(tag())
27             .addGroup(basePanel())
28             .addGroup(
29                     new FieldGroup("Scheduler Details")
30                     .add(new ElementField("Scheduler", scheduler)))
31             .addGroup(new MultiTypeTable("Schedules", schedules)
32                     .setNamed(false));
33     }
34         
35     /**
36      * @return Returns the scheduler.
37      */

38     public ReferenceAttribute getScheduler() {
39         return scheduler;
40     }
41     /**
42      * @param scheduler The scheduler to set.
43      */

44     public void setScheduler(ReferenceAttribute scheduler) {
45         this.scheduler = scheduler;
46     }
47
48     public ScheduleListDE getSchedules() {
49         return schedules;
50     }
51
52     public void setSchedules(ScheduleListDE schedules) {
53         this.schedules = schedules;
54     }
55 }
56
Popular Tags