jaugment2.directory
Class DirectoryServiceSwingRepresentation.EntriesTreeNode

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

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

root-tree-node of the entries-tree


Field Summary
private  DirectoryServiceSwingRepresentation.EntryTreeNode[] children
           
private  RemoteContextIF ctx
           
private  java.lang.Object[] names
           
 
Constructor Summary
DirectoryServiceSwingRepresentation.EntriesTreeNode(RemoteContextIF ctx)
           
DirectoryServiceSwingRepresentation.EntriesTreeNode(RemoteContextIF ctx, java.util.LinkedList entryNames, java.util.LinkedList entries)
          Constructor used by MyTreeSelectionListener explicitely giving all children and their names
DirectoryServiceSwingRepresentation.EntriesTreeNode(RemoteContextIF ctx, javax.naming.NamingEnumeration entryNames)
           
 
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.
private  void init(RemoteContextIF ctx, java.util.Enumeration entryNames)
           
 boolean isLeaf()
          Returns true if the receiver is a leaf.
 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 RemoteContextIF ctx

children

private DirectoryServiceSwingRepresentation.EntryTreeNode[] children

names

private java.lang.Object[] names
Constructor Detail

DirectoryServiceSwingRepresentation.EntriesTreeNode

public DirectoryServiceSwingRepresentation.EntriesTreeNode(RemoteContextIF ctx)

DirectoryServiceSwingRepresentation.EntriesTreeNode

public DirectoryServiceSwingRepresentation.EntriesTreeNode(RemoteContextIF ctx,
                                                           javax.naming.NamingEnumeration entryNames)

DirectoryServiceSwingRepresentation.EntriesTreeNode

public DirectoryServiceSwingRepresentation.EntriesTreeNode(RemoteContextIF ctx,
                                                           java.util.LinkedList entryNames,
                                                           java.util.LinkedList entries)
Constructor used by MyTreeSelectionListener explicitely giving all children and their names
Method Detail

init

private void init(RemoteContextIF ctx,
                  java.util.Enumeration entryNames)

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