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 RenameDC extends BaseDC { 16 17 private SimpleDE from = new SimpleDE(); 18 private SimpleDE to = new SimpleDE(); 19 20 public FormDefinition form() { 21 return new StandardForm(tag()) 22 .addGroup(basePanel()) 23 .addGroup( 24 new FieldGroup("File Details") 25 .add(new ElementField("From", from)) 26 .add(new ElementField("To", to))); 27 } 28 29 public void setFrom(SimpleDE from) { 30 this.from = from; 31 } 32 33 public SimpleDE getFrom() { 34 return from; 35 } 36 37 public void setTo(SimpleDE to) { 38 this.to = to; 39 } 40 41 public SimpleDE getTo() { 42 return to; 43 } 44 45 } 46 | Popular Tags |