1 4 package org.oddjob.designer.components; 5 6 import org.oddjob.designer.elements.ListDE; 7 import org.oddjob.designer.elements.simple.BooleanAttribute; 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 DeleteDC extends BaseDC { 17 18 private ListDE files = new ListDE(); 19 private BooleanAttribute force = new BooleanAttribute(); 20 21 public FormDefinition form() { 22 return new StandardForm(tag()) 23 .addGroup(basePanel()) 24 .addGroup( 25 new FieldGroup("File/Directory Details") 26 .add(new ElementField("File(s)/Dir(s)", files)) 27 .add(new ElementField("Force", force))); 28 } 29 30 public void setFiles(ListDE file) { 31 this.files = file; 32 } 33 34 public ListDE getFiles() { 35 return this.files; 36 } 37 38 public BooleanAttribute getForce() { 39 return force; 40 } 41 42 public void setForce(BooleanAttribute force) { 43 this.force = force; 44 } 45 46 47 } 48 | Popular Tags |