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

Uploaded
author timpalpant
date Mon, 13 Feb 2012 22:12:06 -0500
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gui/edu/unc/genomics/ToolsTreeNode.java	Mon Feb 13 22:12:06 2012 -0500
@@ -0,0 +1,44 @@
+package edu.unc.genomics;
+
+import javax.swing.tree.DefaultMutableTreeNode;
+
+/**
+ * A node in the ToolsTreeModel
+ * Contains a class and a name for the tool
+ * TODO Add help for each tool
+ * 
+ * @author timpalpant
+ *
+ */
+public class ToolsTreeNode extends DefaultMutableTreeNode {
+
+	private static final long serialVersionUID = -9067416927466519457L;
+
+	private final String name;
+	private final Class<? extends CommandLineTool> clazz;
+
+	/**
+	 * @param userObject
+	 */
+	public ToolsTreeNode(String name, Class<? extends CommandLineTool> clazz) {
+		super(name, false);
+		
+		this.name = name;
+		this.clazz = clazz;
+	}
+
+	/**
+	 * @return the name
+	 */
+	public String getName() {
+		return name;
+	}
+
+	/**
+	 * @return the clazz
+	 */
+	public Class<? extends CommandLineTool> getClazz() {
+		return clazz;
+	}
+
+}