KickJava   Java API By Example, From Geeks To Geeks.

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


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

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 /**
13  *
14  */

15 public class ServerDC extends BaseDC {
16
17     private SimpleDE root = new SimpleDE();
18     private SimpleDE url = new SimpleDE();
19     
20     public FormDefinition form() {
21         return new StandardForm(tag())
22             .addGroup(basePanel())
23             .addGroup(
24                     new FieldGroup("Server Details")
25                     .add(new ElementField("Root Node", root))
26                     .add(new ElementField("URL", url))
27                             );
28     }
29         
30     public void setRoot(SimpleDE text) {
31         this.root = text;
32     }
33     
34     public SimpleDE getRoot() {
35         return root;
36     }
37     
38     /**
39      * @return Returns the url.
40      */

41     public SimpleDE getUrl() {
42         return url;
43     }
44     /**
45      * @param url The url to set.
46      */

47     public void setUrl(SimpleDE url) {
48         this.url = url;
49     }
50 }
51
52
Popular Tags