jmri
Interface CatalogTree

All Superinterfaces:
NamedBean, TreeModel
All Known Implementing Classes:
AbstractCatalogTree, CatalogTreeFS, CatalogTreeIndex

public interface CatalogTree
extends NamedBean, TreeModel

Represents a CatalogTree, a tree displaying a taxonomy - e.g. a file system directory, or an index of references or a table of contents built according to the user's taxonomy.

Specific implementations are in the jmri.jmrit.catalog package.

The states and names are Java Bean parameters, so that listeners can be registered to be notified of any changes.

Each CatalogTree object has a two names. The "user" name is entirely free form, and can be used for any purpose. The "system" name is provided by the purpose-specific implementations.


This file is part of JMRI.

JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.

JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Author:
Pete Cressman Copyright (C) 2009

Field Summary
static char FILESYS
           
static char IMAGE
           
static char NOFILTER
           
static char SCRIPT
           
static char SOUND
           
static char XML
           
 
Fields inherited from interface jmri.NamedBean
INCONSISTENT, UNKNOWN
 
Method Summary
 void insertNodes(String pathToRoot)
          Starting point to recursively add nodes to the tree by scanning a file directory
 void insertNodes(String pName, String pPath, CatalogTreeNode pParent)
          Recursively add a representation of the resources below a particular resource
 
Methods inherited from interface jmri.NamedBean
addPropertyChangeListener, addPropertyChangeListener, dispose, getComment, getDisplayName, getListenerRef, getListenerRefs, getNumPropertyChangeListeners, getProperty, getPropertyChangeListeners, getPropertyKeys, getState, getSystemName, getUserName, removePropertyChangeListener, setComment, setProperty, setState, setUserName, updateListenerRef
 
Methods inherited from interface javax.swing.tree.TreeModel
addTreeModelListener, getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged
 

Field Detail

IMAGE

static final char IMAGE
See Also:
Constant Field Values

SOUND

static final char SOUND
See Also:
Constant Field Values

SCRIPT

static final char SCRIPT
See Also:
Constant Field Values

NOFILTER

static final char NOFILTER
See Also:
Constant Field Values

FILESYS

static final char FILESYS
See Also:
Constant Field Values

XML

static final char XML
See Also:
Constant Field Values
Method Detail

insertNodes

void insertNodes(String pName,
                 String pPath,
                 CatalogTreeNode pParent)
Recursively add a representation of the resources below a particular resource

Parameters:
pName - Name of the resource to be scanned; this is only used for the human-readable tree
pPath - Path to this resource, including the pName part
pParent - Node for the parent of the resource to be scanned, e.g. where in the tree to insert it.

insertNodes

void insertNodes(String pathToRoot)
Starting point to recursively add nodes to the tree by scanning a file directory

Parameters:
pathToRoot - Path to Directory to be scanned


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