net.openai.ai.nn.gui.scripting
Class ScriptTreeModel

java.lang.Object
  |
  +--javax.swing.tree.DefaultTreeModel
        |
        +--net.openai.ai.nn.gui.widgets.AbstractTreeModel
              |
              +--net.openai.ai.nn.gui.scripting.ScriptTreeModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.tree.TreeModel

public class ScriptTreeModel
extends AbstractTreeModel

Author:
tom
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultTreeModel
asksAllowsChildren, listenerList, root
 
Constructor Summary
ScriptTreeModel(java.lang.String rootpath)
          Creates a new instance of ScriptTreeModel
 
Method Summary
 void BuildTree()
          Reads all files in the script subdir and builds a tree
static java.io.File getFile(AITreeNode nd)
          Returns a encapsulated File-object, null if its a directory
 
Methods inherited from class net.openai.ai.nn.gui.widgets.AbstractTreeModel
getNode, getNode, getNode, getNode, getPath, ScanNodes
 
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

ScriptTreeModel

public ScriptTreeModel(java.lang.String rootpath)
Creates a new instance of ScriptTreeModel

Method Detail

getFile

public static java.io.File getFile(AITreeNode nd)
Returns a encapsulated File-object, null if its a directory


BuildTree

public void BuildTree()
Reads all files in the script subdir and builds a tree

Specified by:
BuildTree in class AbstractTreeModel


Copyright - 2001 OpenAI Labs. All Rights Reserved.