annotate gui/edu/unc/genomics/ToolsTreeNode.java @ 2:e16016635b2a

Uploaded
author timpalpant
date Mon, 13 Feb 2012 22:12:06 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
1 package edu.unc.genomics;
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
2
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
3 import javax.swing.tree.DefaultMutableTreeNode;
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
4
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
5 /**
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
6 * A node in the ToolsTreeModel
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
7 * Contains a class and a name for the tool
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
8 * TODO Add help for each tool
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
9 *
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
10 * @author timpalpant
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
11 *
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
12 */
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
13 public class ToolsTreeNode extends DefaultMutableTreeNode {
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
14
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
15 private static final long serialVersionUID = -9067416927466519457L;
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
16
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
17 private final String name;
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
18 private final Class<? extends CommandLineTool> clazz;
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
19
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
20 /**
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
21 * @param userObject
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
22 */
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
23 public ToolsTreeNode(String name, Class<? extends CommandLineTool> clazz) {
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
24 super(name, false);
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
25
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
26 this.name = name;
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
27 this.clazz = clazz;
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
28 }
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
29
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
30 /**
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
31 * @return the name
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
32 */
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
33 public String getName() {
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
34 return name;
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
35 }
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
36
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
37 /**
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
38 * @return the clazz
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
39 */
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
40 public Class<? extends CommandLineTool> getClazz() {
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
41 return clazz;
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
42 }
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
43
e16016635b2a Uploaded
timpalpant
parents:
diff changeset
44 }