|
|||||||||
| 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.DirectoryNode
Defines the component used to describe a node 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 |
| Field Summary | |
static java.lang.String |
ADMINISTRATOR_ALIAS_CHILD
Defines an administrator alias. |
static java.lang.String |
ALLOW_KEY
The list of this component attributes. |
protected java.util.Hashtable |
childrenAllowed
|
static java.lang.String |
COUNTRY_NODE_CHILD
defines a country. |
static java.lang.String |
DEPARTEMENT_NODE_CHILD
Defines a departement. |
static java.lang.String |
LIST_GROUP_CHILD
Defines a list group. |
static java.lang.String |
LIST_HOME_CHILD
Defines a list home. |
static java.lang.String |
LIST_SHEET_CHILD
Defines a list sheet. |
static java.lang.String |
ORGANIZATION_NODE_CHILD
Defines an organization. |
static java.lang.String |
PEOPLE_HOME_CHILD
Defines a user group home. |
static java.lang.String |
RESOURCE_ALIAS_CHILD
Defines a resource alias. |
static java.lang.String |
RESOURCE_GROUP_CHILD
Defines a resource group. |
static java.lang.String |
RESOURCE_HOME_CHILD
Defines a resource group. |
static java.lang.String |
RESOURCE_SHEET_CHILD
Defines a resource sheet. |
static java.lang.String |
SECTION_NODE_CHILD
Defines a section. |
static java.lang.String |
USER_ALIAS_CHILD
Defines a user alias. |
static java.lang.String |
USER_GROUP_CHILD
Defines a user group. |
static java.lang.String |
USER_SHEET_CHILD
Defines a user sheet. |
| 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 | |
DirectoryNode(java.lang.String name,
java.lang.String type)
Creates a new node. |
|
| Method Summary | |
void |
add(javax.swing.tree.MutableTreeNode newChild)
Removes newChild from its parent and makes it a child of this node by adding it to the end of this node's child array. |
java.util.Enumeration |
administrators()
|
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. |
boolean |
getAllowsChildren(java.lang.String childType)
Returns true if the receiver allows children of the designed type. |
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. |
java.util.Enumeration |
leaves()
Returns the list of all sub leaves of this node. |
java.util.Enumeration |
leaves(boolean recursiveSearch)
Returns the list of all sub leaves of this node. |
java.util.Enumeration |
nodes()
Returns the list of all sub nodes of this node |
java.util.Enumeration |
nodes(boolean recursiveSearch)
Returns the list of all sub nodes of this node |
void |
setAdministrator(AdministratorAlias administrator)
|
void |
setAdministrator(UserAlias administrator)
|
void |
setAdministrator(UserSheet administrator)
|
void |
setAllowsChildren(boolean allows)
Determines whether or not this node is allowed to have children. |
void |
setAllowsChildren(java.lang.String childType,
boolean allows)
Determines whether or not this node is allowed to have children of the designed type. |
void |
setAttributeValue(java.lang.String attributeKey,
java.lang.Object value)
Sets one attribute of this component. |
void |
setAttributeValues(java.util.Hashtable updatedTable)
Sets the attributes of this component. |
void |
setAttributeValues(MessageHashtable updatedTable)
Sets the attributes of this component. |
private void |
setAutorization()
defines the type of children this node allows. |
| Methods inherited from class org.PingOO.DLAI.lib.directorytree.DirectoryComponent |
attributes,
getAccessValue,
getAccessValues,
getAttributeLabel,
getAttributeTextKeys,
getAttributeValue,
getAttributeValues,
getDN,
getExportationValue,
getName,
getNewDN,
getRDN,
getType,
hasRequiredAttributes,
isAccessible,
isModified,
isUpToDate,
prepareMessage,
remove,
requiredAttributes,
setAccessValue,
setAccessValues,
setAccessValues,
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 |
| Field Detail |
public static final java.lang.String COUNTRY_NODE_CHILD
public static final java.lang.String DEPARTEMENT_NODE_CHILD
public static final java.lang.String SECTION_NODE_CHILD
public static final java.lang.String ORGANIZATION_NODE_CHILD
public static final java.lang.String USER_SHEET_CHILD
public static final java.lang.String USER_ALIAS_CHILD
public static final java.lang.String ADMINISTRATOR_ALIAS_CHILD
public static final java.lang.String USER_GROUP_CHILD
public static final java.lang.String PEOPLE_HOME_CHILD
public static final java.lang.String RESOURCE_SHEET_CHILD
public static final java.lang.String RESOURCE_ALIAS_CHILD
public static final java.lang.String RESOURCE_GROUP_CHILD
public static final java.lang.String RESOURCE_HOME_CHILD
public static final java.lang.String LIST_SHEET_CHILD
public static final java.lang.String LIST_GROUP_CHILD
public static final java.lang.String LIST_HOME_CHILD
public static final java.lang.String ALLOW_KEY
protected final java.util.Hashtable childrenAllowed
| Constructor Detail |
public DirectoryNode(java.lang.String name,
java.lang.String type)
name - This node's name.type - The type of this node.| Method Detail |
public final void setAttributeValues(MessageHashtable updatedTable)
updatedTable - The table that contains the new attributes for this object.public void setAttributeValues(java.util.Hashtable updatedTable)
updatedTable - The table that contains the new attributes for this object.
public void setAttributeValue(java.lang.String attributeKey,
java.lang.Object value)
attributeKey - The attribute's key.value - The new value for this attribute.private final void setAutorization()
public boolean getAllowsChildren()
true if the receiver allows children.true if the receiver allows children, false otherwise.public boolean getAllowsChildren(java.lang.String childType)
true if the receiver allows children of the designed type.childType - The type to test.true if the receiver allows children of this type, false otherwise.public final void setAllowsChildren(boolean allows)
false, all of this node's children are removed.
Note : by default, a node does not allows children.
allows - true if this node is allowed to have children.
public final void setAllowsChildren(java.lang.String childType,
boolean allows)
false, all of this node's children that have this type are removed.
Note: By default, a node allows all types of children.
childType - The type to be removed.allows - true if this node is allowed to have children of this type.public final boolean isLeaf()
true if the receiver is a leaf.true if the receiver is a leaf, false otherwise.public java.util.Enumeration children(boolean recursiveSearch)
recursiveSearch - If true look for all children under this node.public java.util.Enumeration children(java.lang.Class objectClass)
objectClass - The class used to filter the children.
public 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 setAdministrator(AdministratorAlias administrator)
public final void setAdministrator(UserSheet administrator)
public final void setAdministrator(UserAlias administrator)
public java.util.Enumeration nodes()
public java.util.Enumeration nodes(boolean recursiveSearch)
recursiveSearch - If true look for all nodes under this node.public java.util.Enumeration leaves()
public java.util.Enumeration leaves(boolean recursiveSearch)
recursiveSearch - If true look for all leaves under this node.public final java.util.Enumeration administrators()
public void add(javax.swing.tree.MutableTreeNode newChild)
newChild - The noode to add as a child of this node.
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 | ||||||||