|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javax.swing.tree.DefaultTreeModel
|
+--com.ca.directory.jxplorer.tree.SmartModel
The intention behind this class is to keep DefaultTreeModel largely unchanged, but add some utility ftns to make the task of translating between DNs and objects in the tree (SmartNodes and TreePaths).
| Field Summary |
| Fields inherited from class javax.swing.tree.DefaultTreeModel |
asksAllowsChildren, listenerList, root |
| Constructor Summary | |
SmartModel(javax.swing.tree.TreeNode root)
|
|
SmartModel(javax.swing.tree.TreeNode root,
boolean asksAllowsChildren)
|
|
| Method Summary | |
DN |
getDNForNode(javax.swing.tree.TreeNode node)
A conversion function - returns the current Node as a DN |
DN |
getDNForPath(javax.swing.tree.TreeNode[] path)
A conversion function. |
DN |
getDNForPath(javax.swing.tree.TreePath path)
A conversion function. |
SmartNode |
getNodeForDN(DN nodeDN)
A conversion function. |
javax.swing.tree.TreePath |
getPathForDN(DN nodeDN)
A conversion function - gets a path for a particular DN |
javax.swing.tree.TreePath |
getPathForNode(javax.swing.tree.TreeNode node)
A conversion function - gets the path to given node. |
protected java.lang.String |
getUniqueCopyRDN(DN activeDN,
DN copyDN)
A rare condition occurs when a user tries to copy a node over an existing node with the same name. |
| 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 SmartModel(javax.swing.tree.TreeNode root)
public SmartModel(javax.swing.tree.TreeNode root,
boolean asksAllowsChildren)
| Method Detail |
public DN getDNForPath(javax.swing.tree.TreePath path)
path - a tree path to determine the DN for.
public DN getDNForNode(javax.swing.tree.TreeNode node)
public DN getDNForPath(javax.swing.tree.TreeNode[] path)
path - an array of tree nodes to convert to a DN.
public javax.swing.tree.TreePath getPathForNode(javax.swing.tree.TreeNode node)
public javax.swing.tree.TreePath getPathForDN(DN nodeDN)
public SmartNode getNodeForDN(DN nodeDN)
nodeDN - the full DN of the node to be found
protected java.lang.String getUniqueCopyRDN(DN activeDN,
DN copyDN)
activeDN - the DN of the node into which the
new node is being copied.copyDN - the DN of the node being copied.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||