jmri.jmrit.catalog
Class CatalogTreeIndex
java.lang.Object
javax.swing.tree.DefaultTreeModel
jmri.jmrit.catalog.AbstractCatalogTree
jmri.jmrit.catalog.CatalogTreeIndex
- All Implemented Interfaces:
- Serializable, TreeModel, CatalogTree, NamedBean
public class CatalogTreeIndex
- extends AbstractCatalogTree
TreeModel used by CatalogPanel to create a tree of resources.
This model is for trees that can be permanently stored to and
reloaded from an XML file.
Source of the tree content is an XML file.
- Author:
- Pete Cressman Copyright 2009
- See Also:
- Serialized Form
| Methods inherited from class jmri.jmrit.catalog.AbstractCatalogTree |
addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, getComment, getDisplayName, getListenerRef, getListenerRefs, getNumPropertyChangeListeners, getPropertyChangeListeners, getState, getSystemName, getUserName, insertNodes, removePropertyChangeListener, setComment, setState, setUserName, updateListenerRef |
| 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 |
CatalogTreeIndex
public CatalogTreeIndex(String sysName,
String userName)
insertNodes
public void insertNodes(String pName,
String pPath,
CatalogTreeNode pParent)
- Recursively add nodes to the tree
- Specified by:
insertNodes in interface CatalogTree- Specified by:
insertNodes in class AbstractCatalogTree
- Parameters:
pName - Name of the resource to be scanned; this
is only used for the human-readable treepPath - Path to this resource, including the pName partpParent - Node for the parent of the resource to be scanned, e.g.
where in the tree to insert it.
setProperty
public void setProperty(Object key,
Object value)
- Description copied from interface:
NamedBean
- Attach a key/value pair to the
NamedBean, which can be retrieved later.
These are not bound properties as yet,
and don't throw events on modification.
Key must not be null.
getProperty
public Object getProperty(Object key)
- Description copied from interface:
NamedBean
- Retrieve the value associated with a key.
If no value has been set for that key, returns null.
getPropertyKeys
public Set<Object> getPropertyKeys()
- Description copied from interface:
NamedBean
- Retrieve the complete current set of keys.
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: