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


Inner classes inherited from class org.openide.nodes.Node
Node.Cookie, Node.Handle, Node.IndexedProperty, Node.Property, Node.PropertySet
 
Fields inherited from class org.openide.nodes.AbstractNode
displayFormat, systemActions
 
Fields inherited from class org.openide.nodes.Node
EMPTY, PROP_COOKIE, PROP_DISPLAY_NAME, PROP_ICON, PROP_NAME, PROP_OPENED_ICON, PROP_PARENT_NODE, PROP_PROPERTY_SETS, PROP_SHORT_DESCRIPTION
 
Constructor Summary
  IndexedNode()
          Create an indexed node.
protected IndexedNode(Children children, Index indexImpl)
          Allows subclasses to provide their own children and index handling.
 
Method Summary
 Node.Cookie getCookie(Class clazz)
          Get a cookie.
 Component getCustomizer()
          Get the customizer.
 boolean hasCustomizer()
          Does this node have a customizer?
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 implementation
index - the index implementation
Method Detail

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.