KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jacorb > ir > gui > typesystem > NodeMapper


1 /*
2  * JacORB - a free Java ORB
3  *
4  * Copyright (C) 1999-2004 Gerald Brose
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the Free
18  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19  *
20  */

21
22
23 package org.jacorb.ir.gui.typesystem;
24
25
26
27
28
29 /**
30
31  * Existiert nur, um als cell-value in ein TableModel gesteckt zu werden.
32
33  * Nur so kann GUI-Client von der selektierten Row auf die dazugehörige TypeSystemNode schließen.
34
35  * (DefaultTableModel sieht es leider nicht vor, mit jeder Row ein Objekt zu assoziieren)
36
37  *
38
39  */

40
41 public class NodeMapper {
42
43     TypeSystemNode node;
44
45     String JavaDoc string;
46
47
48
49
50
51
52
53 /**
54
55  * This method was created by a SmartGuide.
56
57  * @param node org.jacorb.ir.gui.typesystem.TypeSystemNode
58
59  */

60
61 public NodeMapper ( TypeSystemNode node, String JavaDoc string) {
62
63     this.node = node;
64
65     this.string = string;
66
67 }
68
69 /**
70
71  * This method was created by a SmartGuide.
72
73  * @return org.jacorb.ir.gui.typesystem.TypeSystemNode
74
75  */

76
77 public TypeSystemNode getNode() {
78
79     return node;
80
81 }
82
83 /**
84
85  * This method was created by a SmartGuide.
86
87  * @return java.lang.String
88
89  */

90
91 public String JavaDoc toString() {
92
93     return string;
94
95 }
96
97 }
98
99
100
101
102
103
104
105
106
107
108
109
110
111
Popular Tags