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