KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > oddjob > designer > components > MkdirDC


1 /*
2  * (c) Rob Gordon 2005.
3  */

4 package org.oddjob.designer.components;
5
6 import org.oddjob.designer.elements.simple.FileAttribute;
7 import org.oddjob.designer.model.FieldGroup;
8 import org.oddjob.designer.model.FileSelection;
9 import org.oddjob.designer.model.FormDefinition;
10 import org.oddjob.designer.model.StandardForm;
11
12 /**
13  *
14  */

15 public class MkdirDC extends BaseDC {
16
17     private FileAttribute dir = new FileAttribute();
18         
19     public FormDefinition form() {
20             return new StandardForm(tag())
21                 .addGroup(basePanel())
22                 .addGroup(
23                         new FieldGroup("Directory Details")
24                         .add(new FileSelection("Directory", dir)));
25     }
26         
27     public void setDir(FileAttribute file) {
28         this.dir = file;
29     }
30     
31     public FileAttribute getDir() {
32         return this.dir;
33     }
34     
35 }
36
Popular Tags