站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 5.0.0

IndexedNode (NetBeans Nodes API) - NetBeans API Javadoc 5.0.0

 

org.openide.nodes
Class IndexedNode

java.lang.Object
  extended byjava.beans.FeatureDescriptor
      extended byorg.openide.nodes.Node
          extended byorg.openide.nodes.AbstractNode
              extended byorg.openide.nodes.IndexedNode
All Implemented Interfaces:
HelpCtx.Provider, Lookup.Provider

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


Nested Class Summary
 
Nested classes inherited from class org.openide.nodes.Node
Node.Cookie, Node.Handle, Node.IndexedProperty, Node.Property, Node.PropertySet
 
Field Summary
 
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_LEAF, 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, getPreferredAction, getPropertySets, getSheet, setCookieSet, setDefaultAction, setIconBase, setIconBaseWithExtension, setName, setSheet
 
Methods inherited from class org.openide.nodes.Node
addNodeListener, addPropertyChangeListener, clone, destroy, equals, fireCookieChange, fireDisplayNameChange, fireIconChange, fireNameChange, fireNodeDestroyed, fireOpenedIconChange, firePropertyChange, firePropertySetsChange, fireShortDescriptionChange, getActions, getChildren, getContextActions, getContextMenu, getHtmlDisplayName, getLookup, getParentNode, hasPropertyChangeListener, isLeaf, removeNodeListener, removePropertyChangeListener, setChildren, 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
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
indexImpl - 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
Returns:
false

getCustomizer

public Component getCustomizer()
Description copied from class: AbstractNode
Get the customizer.

Overrides:
getCustomizer in class 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 May 3 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.