JIDE 3.5.15

com.jidesoft.tree
Class TreeModelWrapperUtils

java.lang.Object
  extended by com.jidesoft.tree.TreeModelWrapperUtils

public class TreeModelWrapperUtils
extends Object

TreeModelWrapperUtils is a utility class that contains several useful methods for TreeModelWrapper.


Constructor Summary
TreeModelWrapperUtils()
           
 
Method Summary
static TreeModel getActualTreeModel(TreeModel outerModel)
          Gets the inner most TreeModel.
static TreeModel getActualTreeModel(TreeModel outerModel, Class innerModelClass)
          Gets the inner TreeModel whose class is an instance of the innerModelClass.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeModelWrapperUtils

public TreeModelWrapperUtils()
Method Detail

getActualTreeModel

public static TreeModel getActualTreeModel(TreeModel outerModel,
                                           Class innerModelClass)
Gets the inner TreeModel whose class is an instance of the innerModelClass.

Parameters:
outerModel - the outermost TreeModel.
innerModelClass - the class for the inner model.
Returns:
the TreeModel whose class is innerModelClass.

getActualTreeModel

public static TreeModel getActualTreeModel(TreeModel outerModel)
Gets the inner most TreeModel.

Parameters:
outerModel - the outermost TreeModel.
Returns:
the inner most Tree model. It is the first inner model that is not an instance of TreeModelWrapper.

JIDE 3.5.15