source: vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/items/ConfigItem.java@ 858

Last change on this file since 858 was 858, checked in by tobias, on Apr 9, 2010 at 10:56:07 AM

visual design slightly modified. tree functions extended

File size: 1.5 KB
Line 
1package de.dass_it.vanhelsing.gui.items;
2public class ConfigItem extends ItemType implements UserObjectItem{
3 /**
4 * @uml.property name="id"
5 */
6 private int id;
7 /**
8 * @uml.property name="ressource"
9 */
10 private String ressource;
11 /**
12 * @uml.property name="key"
13 */
14 private String key;
15 /**
16 * @uml.property name="value"
17 */
18 private String value;
19
20 public ConfigItem(){
21 }
22
23 public ConfigItem(int id, String ressource, String key, String value){
24 this.setId(id);
25 this.setRessource(ressource);
26 this.setKey(key);
27 this.value = value;
28 }
29
30 /**
31 * @param value
32 * @uml.property name="value"
33 */
34 public void setValue(String value) {
35 this.value = value;
36 }
37
38 /**
39 * @return
40 * @uml.property name="value"
41 */
42 public String getValue() {
43 return value;
44 }
45
46 /**
47 * @param key
48 * @uml.property name="key"
49 */
50 public void setKey(String key) {
51 this.key = key;
52 }
53
54 /**
55 * @return
56 * @uml.property name="key"
57 */
58 public String getKey() {
59 return key;
60 }
61
62 /**
63 * @param ressource
64 * @uml.property name="ressource"
65 */
66 public void setRessource(String ressource) {
67 this.ressource = ressource;
68 }
69
70 /**
71 * @return
72 * @uml.property name="ressource"
73 */
74 public String getRessource() {
75 return ressource;
76 }
77
78 public String toString() {
79 return ("Key: " + key + ", Value: " + value);
80 }
81
82 /**
83 * @param id
84 * @uml.property name="id"
85 */
86 public void setId(int id) {
87 this.id = id;
88 }
89
90 /**
91 * @return
92 * @uml.property name="id"
93 */
94 public int getId() {
95 return id;
96 }
97
98}
Note: See TracBrowser for help on using the repository browser.