KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > oddjob > designer > elements > scheduling > ScheduleInstructionDE


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

4 package org.oddjob.designer.elements.scheduling;
5
6 import org.oddjob.designer.elements.simple.ReferenceAttribute;
7 import org.oddjob.designer.elements.simple.SimpleTextAttribute;
8 import org.oddjob.designer.model.DesignElementType;
9
10 /**
11  *
12  */

13 abstract public class ScheduleInstructionDE extends DesignElementType {
14
15     private ReferenceAttribute job;
16     private SimpleTextAttribute id;
17
18     public ScheduleInstructionDE() {
19         setJob(new ReferenceAttribute());
20         setId(new SimpleTextAttribute());
21     }
22     
23     public void setId(SimpleTextAttribute id) {
24         id.addObserver(detailObserver);
25         this.id = id;
26     }
27     
28     public SimpleTextAttribute getId() {
29         return id;
30     }
31     
32     /**
33      * @return Returns the job.
34      */

35     public ReferenceAttribute getJob() {
36         return job;
37     }
38     /**
39      * @param job The job to set.
40      */

41     public void setJob(ReferenceAttribute job) {
42         job.addObserver(detailObserver);
43         this.job = job;
44     }
45     
46     public void clear() {
47         job.clear();
48         id.clear();
49         super.clear();
50     }
51 }
52
Popular Tags