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