jaugment2.directory
Class DirectoryServiceSwingRepresentation.EntryTreeNode

java.lang.Object
  |
  +--jaugment2.directory.DirectoryServiceSwingRepresentation.EntryTreeNode
Enclosing class:
DirectoryServiceSwingRepresentation

private class DirectoryServiceSwingRepresentation.EntryTreeNode
extends java.lang.Object
implements javax.swing.tree.TreeNode

Tree-node for an entry in the entries-tree


Field Summary
private  javax.swing.tree.DefaultMutableTreeNode[] children
           
private  RemoteDirContextIF ctx
           
private  java.lang.Object o
           
private  javax.swing.tree.TreeNode parent
           
 
Constructor Summary
DirectoryServiceSwingRepresentation.EntryTreeNode(java.lang.Object o, javax.swing.tree.TreeNode parent)
           
 
Method Summary
 java.util.Enumeration children()
          Returns the children of the reciever as an Enumeration.
 boolean getAllowsChildren()
          Returns true if the receiver allows children.
 javax.swing.tree.TreeNode getChildAt(int childIndex)
          Returns the child TreeNode at index childIndex.
 int getChildCount()
          Returns the number of children TreeNodes the receiver contains.
 int getIndex(javax.swing.tree.TreeNode node)
          Returns the index of node in the receivers children.
 javax.swing.tree.TreeNode getParent()
          Returns the parent TreeNode of the receiver.
 void insert(javax.swing.tree.MutableTreeNode child, int index)
          Adds child to the receiver at index.
 boolean isLeaf()
          Returns true if the receiver is a leaf.
 void remove(int index)
          Removes the child at index from the receiver.
 void remove(javax.swing.tree.MutableTreeNode node)
          Removes node from the receiver.
 void removeFromParent()
          Removes the receiver from its parent.
 void setParent(javax.swing.tree.MutableTreeNode newParent)
          Sets the parent of the receiver to newParent.
 void setUserObject(java.lang.Object object)
          Resets the user object of the receiver to object.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

ctx

private RemoteDirContextIF ctx

o

private java.lang.Object o

parent

private javax.swing.tree.TreeNode parent

children

private javax.swing.tree.DefaultMutableTreeNode[] children
Constructor Detail

DirectoryServiceSwingRepresentation.EntryTreeNode

public DirectoryServiceSwingRepresentation.EntryTreeNode(java.lang.Object o,
                                                         javax.swing.tree.TreeNode parent)
Method Detail

getChildAt

public javax.swing.tree.TreeNode getChildAt(int childIndex)
Returns the child TreeNode at index childIndex.
Specified by:
getChildAt in interface javax.swing.tree.TreeNode

getChildCount

public int getChildCount()
Returns the number of children TreeNodes the receiver contains.
Specified by:
getChildCount in interface javax.swing.tree.TreeNode

getParent

public javax.swing.tree.TreeNode getParent()
Returns the parent TreeNode of the receiver.
Specified by:
getParent in interface javax.swing.tree.TreeNode

getIndex

public int getIndex(javax.swing.tree.TreeNode node)
Returns the index of node in the receivers children. If the receiver does not contain node, -1 will be returned.
Specified by:
getIndex in interface javax.swing.tree.TreeNode

getAllowsChildren

public boolean getAllowsChildren()
Returns true if the receiver allows children.
Specified by:
getAllowsChildren in interface javax.swing.tree.TreeNode

isLeaf

public boolean isLeaf()
Returns true if the receiver is a leaf.
Specified by:
isLeaf in interface javax.swing.tree.TreeNode

children

public java.util.Enumeration children()
Returns the children of the reciever as an Enumeration.
Specified by:
children in interface javax.swing.tree.TreeNode

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

insert

public void insert(javax.swing.tree.MutableTreeNode child,
                   int index)
Adds child to the receiver at index. child will be messaged with setParent.

remove

public void remove(int index)
Removes the child at index from the receiver.

remove

public void remove(javax.swing.tree.MutableTreeNode node)
Removes node from the receiver. setParent will be messaged on node.

setUserObject

public void setUserObject(java.lang.Object object)
Resets the user object of the receiver to object.

removeFromParent

public void removeFromParent()
Removes the receiver from its parent.

setParent

public void setParent(javax.swing.tree.MutableTreeNode newParent)
Sets the parent of the receiver to newParent.