01: /*
02: * Copyright 2001-2006 C:1 Financial Services GmbH
03: *
04: * This software is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License Version 2.1, as published by the Free Software Foundation.
07: *
08: * This software is distributed in the hope that it will be useful,
09: * but WITHOUT ANY WARRANTY; without even the implied warranty of
10: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11: * Lesser General Public License for more details.
12: *
13: * You should have received a copy of the GNU Lesser General Public
14: * License along with this library; if not, write to the Free Software
15: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
16: */
17:
18: package de.finix.contelligent.client.gui.directory;
19:
20: import javax.swing.ImageIcon;
21: import javax.swing.tree.DefaultMutableTreeNode;
22:
23: import de.finix.contelligent.client.base.ContelligentComponent;
24:
25: public class NodeNavigation {
26:
27: private String text;
28:
29: private ImageIcon icon;
30:
31: private int start;
32:
33: private DefaultMutableTreeNode node;
34:
35: private ContelligentComponent component;
36:
37: public NodeNavigation(DefaultMutableTreeNode node,
38: ContelligentComponent component, String text,
39: ImageIcon icon, int start) {
40: this .text = text;
41: this .icon = icon;
42: this .start = start;
43: this .component = component;
44: this .node = node;
45: }
46:
47: public DefaultMutableTreeNode getNode() {
48: return node;
49: }
50:
51: public ContelligentComponent getComponent() {
52: return component;
53: }
54:
55: public String getText() {
56: return text;
57: }
58:
59: public ImageIcon getIcon() {
60: return icon;
61: }
62:
63: public int getStart() {
64: return start;
65: }
66: }
|