1 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 17 public class ScheduleDC extends BaseDC { 18 19 private ReferenceAttribute scheduler = new ReferenceAttribute(); 20 private ScheduleListDE schedules = new ScheduleListDE(); 21 22 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 38 public ReferenceAttribute getScheduler() { 39 return scheduler; 40 } 41 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 |