jmri.jmrit.catalog
Class CatalogTreeModel

java.lang.Object
  extended by javax.swing.tree.DefaultTreeModel
      extended by jmri.jmrit.catalog.CatalogTreeModel
All Implemented Interfaces:
Serializable, TreeModel

public class CatalogTreeModel
extends DefaultTreeModel

TreeModel used by CatalogPane to create a tree of resources.

Accessed via the instance() member, as we expect to have only one of these models.

The tree has two top-level visible nodes. One, "icons", represents the contents of the icons directory in the resources tree in the .jar file. The other, "files", is all files found in the "resources" filetree in the preferences directory. Note that this means that files in the distribution directory are _not_ included.

As a special case "simplification", the catalog tree will not contain CVS directories, or files whose name starts with a "."

Author:
Bob Jacobsen Copyright 2002
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultTreeModel
asksAllowsChildren, listenerList, root
 
Constructor Summary
CatalogTreeModel()
           
 
Method Summary
static CatalogTreeModel instance()
           
 
Methods inherited from class javax.swing.tree.DefaultTreeModel
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatalogTreeModel

public CatalogTreeModel()
Method Detail

instance

public static CatalogTreeModel instance()


Copyright © 1997 - 2008 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: SourceForge_Logo