org.PingOO.DLAI.lib.directorytree
Class RootSheet

java.lang.Object
  |
  +--javax.swing.tree.DefaultMutableTreeNode
        |
        +--org.PingOO.DLAI.lib.directorytree.DirectoryComponent
              |
              +--org.PingOO.DLAI.lib.directorytree.DirectoryLeaf
                    |
                    +--org.PingOO.DLAI.lib.directorytree.SheetLeaf
                          |
                          +--org.PingOO.DLAI.lib.directorytree.RootSheet

public final class RootSheet
extends SheetLeaf

Defines the component used to describe the root sheet of 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
private static javax.swing.ImageIcon ROOT_SHEET_ICON
          Icon for a user sheet.
static java.lang.String ROOT_SHEET_TYPE
          This component's attribute.
 
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
RootSheet(java.lang.String name)
          Hides the constructor from the outside.
 
Method Summary
 javax.swing.Icon getIcon(boolean expanded)
          Returns the icon used to represent this component in the tree.
 java.lang.String getType()
          Returns the type of this component.
 boolean hasRequestAttributes()
          Tests if this component has the required attributes.
 
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, 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
, 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

ROOT_SHEET_TYPE

public static final java.lang.String ROOT_SHEET_TYPE
This component's attribute.

ROOT_SHEET_ICON

private static javax.swing.ImageIcon ROOT_SHEET_ICON
Icon for a user sheet.
Constructor Detail

RootSheet

public RootSheet(java.lang.String name)
Hides the constructor from the outside.
Method Detail

getIcon

public final javax.swing.Icon getIcon(boolean expanded)
Returns the icon used to represent this component in the tree.
Parameters:
Tells - Indicates if this node is expanded.
Returns:
The icon used to represent this component in the tree.

getType

public java.lang.String getType()
Returns the type of this component.
Returns:
The type of this component.
Overrides:
getType in class DirectoryComponent

hasRequestAttributes

public boolean hasRequestAttributes()
Tests if this component has the required attributes.
Returns:
true if the node has its required attributes, false otherwise.