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 JustJobDC extends BaseDC { 16 17 private SimpleDE job = new SimpleDE(); 18 19 public FormDefinition form() { 20 return new StandardForm(tag()) 21 .addGroup(basePanel()) 22 .addGroup( 23 new FieldGroup("Job Details") 24 .add(new ElementField("Job", job))); 25 } 26 27 public void setJob(SimpleDE text) { 28 this.job = text; 29 } 30 31 public SimpleDE getJob() { 32 return job; 33 } 34 35 } 36 37 | Popular Tags |