(no commit message)
[sfa.git] / gui / JavaApplication1 / src / javaapplication1 / GuiComponent.java
1 /*
2  * GuiComponent.java
3  *
4  * Created on March 29, 2008, 2:45 AM
5  *
6  * To change this template, choose Tools | Template Manager
7  * and open the template in the editor.
8  */
9
10 package javaapplication1;
11
12 /**
13  *
14  * @author soners
15  */
16 public class GuiComponent {
17     
18     /** Creates a new instance of GuiComponent */
19     public GuiComponent(String name, String[] property, String type, String label, String defaultVal) {
20         this.name = name;
21         this.property = property;
22         this.type = type;
23         this.label = label;
24         this.value = defaultVal;
25         
26     }
27     private String[] property;
28     private String type;
29     private String label;
30     private String value;
31
32     /**
33      * Holds value of property name.
34      */
35     private String name;
36
37     /**
38      * Getter for property name.
39      * @return Value of property name.
40      */
41     public String getName() {
42         return this.name;
43     }
44
45     /**
46      * Setter for property name.
47      * @param name New value of property name.
48      */
49     public void setName(String name) {
50         this.name = name;
51     }
52
53     /**
54      * Getter for property property.
55      * @return Value of property property.
56      */
57     public String[] getProperty() {
58         return this.property;
59     }
60
61     /**
62      * Setter for property property.
63      * @param property New value of property property.
64      */
65     public void setProperty(String[] property) {
66         this.property = property;
67     }
68
69     /**
70      * Getter for property type.
71      * @return Value of property type.
72      */
73     public String getType() {
74         return this.type;
75     }
76
77     /**
78      * Setter for property type.
79      * @param type New value of property type.
80      */
81     public void setType(String type) {
82         this.type = type;
83     }
84
85     /**
86      * Getter for property label.
87      * @return Value of property label.
88      */
89     public String getLabel() {
90         return this.label;
91     }
92
93     /**
94      * Setter for property label.
95      * @param label New value of property label.
96      */
97     public void setLabel(String label) {
98         this.label = label;
99     }
100
101     /**
102      * Getter for property value.
103      * 
104      * @return Value of property value.
105      */
106     public String getValue() {
107         return this.value;
108     }
109
110     /**
111      * Setter for property value.
112      * 
113      * @param value New value of property value.
114      */
115     public void setValue(String defaultVal) {
116         this.value = defaultVal;
117     }
118
119 }