|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.tree.DefaultTreeModel | +--net.openai.ai.nn.gui.widgets.AbstractTreeModel
Generic TreeModel that uses AITreeNodes
Field Summary |
Fields inherited from class javax.swing.tree.DefaultTreeModel |
asksAllowsChildren, listenerList, root |
Constructor Summary | |
AbstractTreeModel()
Constructs a new model with a root-node |
|
AbstractTreeModel(AITreeNode root)
Construct a new model with the given root |
Method Summary | |
abstract void |
BuildTree()
Must be overwriten in the Implementation. |
AITreeNode |
getNode(java.lang.Class NodeClass,
AITreeNode searchroot,
long lID)
Find a node with the given ID and the given subclass |
AITreeNode |
getNode(java.lang.Class NodeClass,
AITreeNode searchroot,
java.lang.String Name)
Find a node with the given name and the given subclass |
AITreeNode |
getNode(long lID)
Find the first node with the given ID |
AITreeNode |
getNode(java.lang.String Name)
Find the first node with the given name |
javax.swing.tree.TreePath |
getPath(javax.swing.tree.TreeNode nd)
Returns the path of a Node |
java.util.Vector |
ScanNodes(AITreeNode ndParent)
Returns a vector containing all (sub-)childs of the given parent |
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 |
public AbstractTreeModel()
public AbstractTreeModel(AITreeNode root)
root
- Root-node of the new TreeModelMethod Detail |
public abstract void BuildTree()
public java.util.Vector ScanNodes(AITreeNode ndParent)
ndParent
- Parent to scan for childs
public javax.swing.tree.TreePath getPath(javax.swing.tree.TreeNode nd)
public AITreeNode getNode(java.lang.String Name)
Name
- Nodename to be found
public AITreeNode getNode(long lID)
lID
- ID to be found
public AITreeNode getNode(java.lang.Class NodeClass, AITreeNode searchroot, java.lang.String Name)
NodeClass
- Class of the node to be foundsearchroot
- Node where the search startsName
- Nodename to be found
public AITreeNode getNode(java.lang.Class NodeClass, AITreeNode searchroot, long lID)
NodeClass
- Class of the node to be foundsearchroot
- Node where the search starts
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |