Source code: cor/gui/clp/JspmClassTreeObject.java
1 /*-----------------------------------------------------------------------------------------------------*/
2 /* */
3 /* Copyright (C) */
4 /* */
5 /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU */
6 /* General Public License as published by the Free Software Foundation; either version 2 of the */
7 /* License, or (at your option) any later version. */
8 /* */
9 /* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; */
10 /* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */
11 /* PURPOSE. See the GNU General Public License for more details. */
12 /* */
13 /* You should have received a copy of the GNU General Public License along with this program; if */
14 /* not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA */
15 /* 02111-1307 USA */
16 /* */
17 /*-----------------------------------------------------------------------------------------------------*/
18 /* */
19 /* $Author: strand01 $ $Revision: 1.3 $ $Date: 2001/12/20 14:23:02 $ */
20 /* */
21 /*-----------------------------------------------------------------------------------------------------*/
22
23 package cor.gui.clp;
24
25 import cor.gui.JspmTreeObject;
26
27 /**
28 * Performance tree object definition.
29 *
30 * This class represents one node in the performance tree. The different parameters used to display a node
31 * in the tree, which are use by the TreeCellRenderer are defined here. The TreeCellRenderer will use the
32 * name of the object to get the icon from the icon table and NOT the label. The node itself will be displayed
33 * using the label and NOT the name.
34 *
35 * @author Steve Randall (strand012001@yahoo.com)
36 * @version 0.0.11
37 * @date 30/11/2001
38 */
39
40 public class JspmClassTreeObject implements JspmTreeObject
41 {
42 /**
43 * Name of the object
44 */
45 public String name = null;
46
47 /**
48 * Label of the object. This will be displayed in the tree.
49 */
50 public String label = null;
51
52 /**
53 * Icon name
54 */
55 public String icon = null;
56
57 /**
58 * Status of the object
59 */
60 public int status = -1;
61
62 /**
63 * Constructor.
64 *
65 * @param name (String) object name.
66 * @param label (String) node label name.
67 * @param icon (String) icon name.
68 * @param status (int) object status.
69 */
70 public JspmClassTreeObject( String name, String label, String icon, int status )
71 {
72 this.name = name;
73 this.label = label;
74 this.icon = icon;
75 this.status = status;
76 }
77
78 public String getName() { return name; };
79 public String getLabel() { return label; };
80 public String getIcon() { return icon; };
81 public int getStatus() { return status; };
82 };