com.mebigfatguy.mongobrowser
Class TreeUtils

java.lang.Object
  extended by com.mebigfatguy.mongobrowser.TreeUtils

public class TreeUtils
extends java.lang.Object

a collection of utility methods used in a static context


Method Summary
static MongoTreeNode findCollectionNode(MongoTreeNode fromNode)
          retrieves the collection node that owns the requested node
static MongoTreeNode[] getSelectedNodes(javax.swing.JTree tree)
          retrieves all the MongoTreeNodes from the current selection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findCollectionNode

public static MongoTreeNode findCollectionNode(MongoTreeNode fromNode)
retrieves the collection node that owns the requested node

Parameters:
fromNode - the node to find the collection for
Returns:
the collection node that owns this node

getSelectedNodes

public static MongoTreeNode[] getSelectedNodes(javax.swing.JTree tree)
retrieves all the MongoTreeNodes from the current selection

Parameters:
tree - the tree to fetch the nodes from
Returns:
the selected MongoTreeNodes


Copyright © 2009-2011 MeBigFatGuy.com. All Rights Reserved.