1 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 15 public class ResetJobDC extends BaseDC { 16 17 private SimpleDE job = new SimpleDE(); 18 private SimpleDE level = 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("Level", level))); 27 } 28 29 public void setJob(SimpleDE text) { 30 this.job = text; 31 } 32 33 public SimpleDE getJob() { 34 return job; 35 } 36 37 40 public SimpleDE getLevel() { 41 return level; 42 } 43 46 public void setLevel(SimpleDE level) { 47 this.level = level; 48 } 49 } 50 51 | Popular Tags |