Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libTools / src / org / gvsig / tools / dynobject / DynObjectValueItem.java @ 25791

History | View | Annotate | Download (596 Bytes)

1
package org.gvsig.tools.dynobject;
2

    
3
public class DynObjectValueItem {
4

    
5
        private Object value;
6
        private String label;
7

    
8
        public DynObjectValueItem(Object value, String label) {
9
                this.setLabel(label);
10
                this.setValue(value);
11
        }
12

    
13
        public DynObjectValueItem(Object value) {
14
                this.setLabel(null);
15
                this.setValue(value);
16
        }
17

    
18
        public void setValue(Object value) {
19
                this.value = value;
20
        }
21

    
22
        public Object getValue() {
23
                return value;
24
        }
25

    
26
        public void setLabel(String label) {
27
                this.label = label;
28
        }
29

    
30
        public String getLabel() {
31
                return label;
32
        }
33

    
34
        public String toString() {
35
                return label;
36
        }
37

    
38

    
39
}