org.openide.nodes
Class  IndexedNode
java.lang.Object
  |
  +--java.beans.FeatureDescriptor
        |
        +--org.openide.nodes.Node
              |
              +--org.openide.nodes.AbstractNode
                    |
                    +--org.openide.nodes.IndexedNode
- public class IndexedNode
- extends AbstractNode
  
An implementation of a node that has children and
 supports reordering by providing Index implementor.
 Index implementor and children can be the same instance,
 allowing us to use either Index.ArrayChildren or Index.MapChildren
 
 
 
| 
Constructor Summary | 
  | 
IndexedNode()
 
          Create an indexed node. | 
protected  | 
IndexedNode(Children children,
            Index indexImpl)
 
          Allows subclasses to provide their own children and
 index handling. | 
 
 
| Methods inherited from class org.openide.nodes.AbstractNode | 
canCopy, canCut, canDestroy, canRename, clipboardCopy, clipboardCut, cloneNode, createActions, createPasteTypes, createSheet, drag, getActions, getCookieSet, getDefaultAction, getDropType, getHandle, getHelpCtx, getIcon, getNewTypes, getOpenedIcon, getPasteTypes, getPropertySets, getSheet, setCookieSet, setDefaultAction, setIconBase, setName, setSheet | 
 
| Methods inherited from class org.openide.nodes.Node | 
addNodeListener, addPropertyChangeListener, clone, destroy, fireCookieChange, fireDisplayNameChange, fireIconChange, fireNameChange, fireNodeDestroyed, fireOpenedIconChange, firePropertyChange, firePropertySetsChange, fireShortDescriptionChange, getChildren, getContextActions, getContextMenu, getParentNode, hasPropertyChangeListener, isLeaf, removeNodeListener, removePropertyChangeListener, setDisplayName, setShortDescription, toString | 
 
| Methods inherited from class java.beans.FeatureDescriptor | 
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setExpert, setHidden, setPreferred, setValue | 
 
 
IndexedNode
public IndexedNode()
- Create an indexed node. Uses 
Index.ArrayChildren to both
 hold the children, and as an implementation of Index. 
IndexedNode
protected IndexedNode(Children children,
                      Index indexImpl)
- Allows subclasses to provide their own children and
 index handling.
- Parameters:
 children - the children implementationindex - the index implementation
 
 
hasCustomizer
public boolean hasCustomizer()
- Description copied from class: 
AbstractNode 
- Does this node have a customizer?
- Overrides:
 hasCustomizer in class AbstractNode
 
- Following copied from class: 
org.openide.nodes.AbstractNode 
- Returns:
 false
 
 
getCustomizer
public Component getCustomizer()
- Description copied from class: 
AbstractNode 
- Get the customizer.
- Overrides:
 getCustomizer in class AbstractNode
 
- Following copied from class: 
org.openide.nodes.AbstractNode 
- Returns:
 null in the default implementation
 
 
getCookie
public Node.Cookie getCookie(Class clazz)
- Get a cookie.
- Overrides:
 getCookie in class AbstractNode
 
- Parameters:
 clazz - representation class- Returns:
 - the index implementation or children if these match the cookie class,
 else using the superclass cookie lookup
 
 
 
Built on December 12 2001.  |  Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.