|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--javax.swing.tree.DefaultMutableTreeNode
|
+--org.PingOO.DLAI.lib.directorytree.DirectoryComponent
|
+--org.PingOO.DLAI.lib.directorytree.DirectoryLeaf
Defines the component used to describe a leaf in the directory.
| Inner classes inherited from class javax.swing.tree.DefaultMutableTreeNode |
javax.swing.tree.DefaultMutableTreeNode.BreadthFirstEnumeration,
javax.swing.tree.DefaultMutableTreeNode.PathBetweenNodesEnumeration,
javax.swing.tree.DefaultMutableTreeNode.PostorderEnumeration,
javax.swing.tree.DefaultMutableTreeNode.PreorderEnumeration |
| Fields inherited from class org.PingOO.DLAI.lib.directorytree.DirectoryComponent |
accessTable,
attributeVector,
CREATION_DATE_KEY,
DESCRIPTION_KEY,
DN_SEPAPATOR,
EMPTY_ARRAY_ATTRIBUTE,
EXPIRATION_DATE_KEY,
exportationTable,
FIELD_SEPAPATOR,
ICON_KEY,
labelTable,
MODIFICATION_DATE_KEY,
modified,
OBJECT_CLASS_KEY,
PROGRAM_KEY,
requiredVector,
RESOURCE_KEY,
upToDate,
valueTable |
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren,
children,
EMPTY_ENUMERATION,
parent,
userObject |
| Constructor Summary | |
DirectoryLeaf(java.lang.String name,
java.lang.String type)
Creates a new leaf. |
|
| Method Summary | |
void |
add(DirectoryComponent newChild)
Prevents form inserting another component inside the leaf. |
java.util.Enumeration |
children(boolean recursiveSearch)
Returns the list of all child of the same class this node allows. |
java.util.Enumeration |
children(java.lang.Class objectClass)
Returns the list of all child of the same class this node allows. |
java.util.Enumeration |
children(java.lang.Class objectClass,
boolean recursiveSearch)
Returns the list of all child of the same class this node allows. |
boolean |
getAllowsChildren()
Returns true if the receiver allows children. |
void |
insert(javax.swing.tree.MutableTreeNode newChild,
int childIndex)
Removes newChild from its present parent (if it has a parent), sets the child's parent to this node, and then adds the child to this node's child array at index childIndex.newChild must not be null and must not be an ancestor of this node. |
boolean |
isLeaf()
Returns true if the receiver is a leaf. |
void |
setAllowsChildren(boolean allows)
Determines whether or not this node is allowed to have children. |
| Methods inherited from class org.PingOO.DLAI.lib.directorytree.DirectoryComponent |
add,
attributes,
getAccessValue,
getAccessValues,
getAttributeLabel,
getAttributeTextKeys,
getAttributeValue,
getAttributeValues,
getDN,
getExportationValue,
getName,
getNewDN,
getRDN,
getType,
hasRequiredAttributes,
isAccessible,
isModified,
isUpToDate,
prepareMessage,
remove,
requiredAttributes,
setAccessValue,
setAccessValues,
setAccessValues,
setAttributeValue,
setAttributeValues,
setAttributeValues,
setDefaultAccess,
setDefaultExportation,
setExportationValue,
setModified,
setName,
setUpToDate |
| Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
|
| Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
| Constructor Detail |
public DirectoryLeaf(java.lang.String name,
java.lang.String type)
name - The name of this leaf.type - The type of this leaf.| Method Detail |
public final boolean getAllowsChildren()
true if the receiver allows children.false.public final void setAllowsChildren(boolean allows)
allows - true if this node is allowed to have children.public final boolean isLeaf()
true if the receiver is a leaf.true.public final java.util.Enumeration children(boolean recursiveSearch)
recursiveSearch - If true look for all children under this node.public final java.util.Enumeration children(java.lang.Class objectClass)
objectClass - The class used to filter the children.
public final java.util.Enumeration children(java.lang.Class objectClass,
boolean recursiveSearch)
recursiveSearch - If true look for all children under this node.objectClass - The class used to filter the children.public final void add(DirectoryComponent newChild)
public void insert(javax.swing.tree.MutableTreeNode newChild,
int childIndex)
throws java.lang.ArrayIndexOutOfBoundsException,
java.lang.IllegalArgumentException,
java.lang.IllegalStateException
newChild from its present parent (if it has a parent), sets the child's parent to this node, and then adds the child to this node's child array at index childIndex.newChild must not be null and must not be an ancestor of this node.newChild - The MutableTreeNode to insert under this node.childIndex - The index in this node's child array where this node is to be inserted.null or is an ancestor of this node.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||