[MOBY-guts] biomoby commit

Eddie Kawas kawas at pub.open-bio.org
Wed Dec 22 14:33:36 UTC 2004


kawas
Wed Dec 22 09:33:36 EST 2004
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/gui/objectCreationTool
In directory pub.open-bio.org:/tmp/cvs-serv1939/org/biomoby/client/gui/objectCreationTool

Modified Files:
	MobyTree.java 
Log Message:
Revised MobyTree.java

moby-live/Java/src/main/org/biomoby/client/gui/objectCreationTool MobyTree.java,1.1,1.2
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/gui/objectCreationTool/MobyTree.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/gui/objectCreationTool/MobyTree.java	2004/09/27 22:15:13	1.1
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/gui/objectCreationTool/MobyTree.java	2004/12/22 14:33:36	1.2
@@ -66,7 +66,17 @@
 		tree.setEditable(canEdit);
 		tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
 		tree.setShowsRootHandles(true);
-
+	}
+	
+	/**
+	 *  
+	 * <b>PRE:</b>tree is a valid JTree.<p>
+	 * <b>POST:</b>JTree is collapsed at root node.<p>
+	 *
+	 */
+	public void collapseMobyTree() {
+	    tree.clearSelection();
+	    tree.collapseRow(0);
 	}
 
 	/**




More information about the MOBY-guts mailing list