jmri.util.swing
Class JTreeUtil

java.lang.Object
  extended by jmri.util.swing.GuiUtilBase
      extended by jmri.util.swing.JTreeUtil

public class JTreeUtil
extends GuiUtilBase

Common utility methods for working with JTrees.

Chief among these is the loadTree method, for creating a tree from an XML definition

Since:
2.9.4
Author:
Bob Jacobsen Copyright 2003, 2010

Constructor Summary
JTreeUtil()
           
 
Method Summary
static DefaultMutableTreeNode loadTree(File file, WindowInterface wi, Object context)
           
 
Methods inherited from class jmri.util.swing.GuiUtilBase
rootFromFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTreeUtil

public JTreeUtil()
Method Detail

loadTree

public static DefaultMutableTreeNode loadTree(File file,
                                              WindowInterface wi,
                                              Object context)
Parameters:
file - XML file to be read and processed
wi - WindowInterface to be passed to the nodes in the tree
context - Blind context Object passed to the nodes in the tree


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads