org.PingOO.DLAI.lib.directorytree
Class AliasLeaf

java.lang.Object
  |
  +--javax.swing.tree.DefaultMutableTreeNode
        |
        +--org.PingOO.DLAI.lib.directorytree.DirectoryComponent
              |
              +--org.PingOO.DLAI.lib.directorytree.DirectoryLeaf
                    |
                    +--org.PingOO.DLAI.lib.directorytree.AliasLeaf
Direct Known Subclasses:
PersonAlias, ResourceAlias

public abstract class AliasLeaf
extends DirectoryLeaf

The component used to describe an alias in the directory.

Since:
PingOO 2.0
Version:
2.0
Author:
Fabrice Bouyé (bouye@cur-archamps.fr)
See Also:
Serialized Form

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 TARGET_KEY
          The list of this component attributes.
 
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
AliasLeaf(AliasLeaf target, java.lang.String type)
          Creates a new alias with the default factory renderer.
AliasLeaf(SheetLeaf target, java.lang.String type)
          Creates a new alias with the default factory renderer.
AliasLeaf(java.lang.String name, AliasLeaf target, java.lang.String type)
          Creates a new alias with the default factory renderer.
AliasLeaf(java.lang.String name, SheetLeaf target, java.lang.String type)
          Creates a new alias with the default factory renderer.
 
Method Summary
 boolean hasRequiredAttributes()
          Tests if this component has the required attributes.
 void setTarget(AliasLeaf target)
          Sets the target of this alias.
 void setTarget(SheetLeaf target)
          Sets the target of this alias.
 
Methods inherited from class org.PingOO.DLAI.lib.directorytree.DirectoryLeaf
add, children, children, children, getAllowsChildren, insert, isLeaf, setAllowsChildren
 
Methods inherited from class org.PingOO.DLAI.lib.directorytree.DirectoryComponent
add, attributes, getAccessValue, getAccessValues, getAttributeLabel, getAttributeTextKeys, getAttributeValue, getAttributeValues, getDN, getExportationValue, getName, getNewDN, getRDN, getType, 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
, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, readObject, remove, removeAllChildren, removeFromParent, setParent, setUserObject, toString, writeObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

TARGET_KEY

public static final java.lang.String TARGET_KEY
The list of this component attributes.
Constructor Detail

AliasLeaf

public AliasLeaf(java.lang.String name,
                 SheetLeaf target,
                 java.lang.String type)
Creates a new alias with the default factory renderer.
Parameters:
name - Provides a name for this alias.
target - The pointed leaf.
type - The real type of this alias.

AliasLeaf

public AliasLeaf(SheetLeaf target,
                 java.lang.String type)
Creates a new alias with the default factory renderer.
The target name will be used as this alias name.
Parameters:
target - The pointed leaf.
type - The real type of this alias.

AliasLeaf

public AliasLeaf(AliasLeaf target,
                 java.lang.String type)
Creates a new alias with the default factory renderer.
The target name will be used as this alias name.
Parameters:
target - An alias on the pointed leaf.
type - The real type of this alias.

AliasLeaf

public AliasLeaf(java.lang.String name,
                 AliasLeaf target,
                 java.lang.String type)
Creates a new alias with the default factory renderer.
Parameters:
name - Provides a name for this alias.
target - An alias on the pointed leaf.
type - The real type of this alias.
Method Detail

setTarget

public void setTarget(SheetLeaf target)
Sets the target of this alias.
Changes the target attribute as well.
Parameters:
target - The new target of this alias.

setTarget

public void setTarget(AliasLeaf target)
Sets the target of this alias.
Changes the target attribute as well.
Parameters:
target - The new target of this alias.

hasRequiredAttributes

public boolean hasRequiredAttributes()
Tests if this component has the required attributes.
Returns:
true if the node has its required attributes, false otherwise.
Overrides:
hasRequiredAttributes in class DirectoryComponent