1 4 package org.oddjob.designer.components; 5 6 import org.oddjob.designer.elements.simple.NumberAttribute; 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.StandardForm; 12 13 16 public class WaitDC extends BaseDC { 17 18 private NumberAttribute pause = new NumberAttribute(); 19 private ReferenceAttribute forProperty = new ReferenceAttribute(); 20 21 public FormDefinition form() { 22 return new StandardForm(tag()) 23 .addGroup(basePanel()) 24 .addGroup( 25 new FieldGroup("Unschedule") 26 .add(new ElementField("Delay", pause)) 27 .add(new ElementField("Property", forProperty))); 28 } 29 30 public void setFor(ReferenceAttribute text) { 31 this.forProperty = text; 32 } 33 34 public ReferenceAttribute getFor() { 35 return forProperty; 36 } 37 38 public NumberAttribute getPause() { 39 return pause; 40 } 41 42 public void setPause(NumberAttribute pause) { 43 this.pause = pause; 44 } 45 46 } 47 48 | Popular Tags |