当前页面:
在线文档首页 >
NetBeans API Javadoc 5.0.0
IndexedNode (NetBeans Nodes API) - NetBeans API Javadoc 5.0.0
org.openide.nodes
Class IndexedNode
java.lang.Object
java.beans.FeatureDescriptor
org.openide.nodes.Node
org.openide.nodes.AbstractNode
org.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
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, 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 |
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 implementationindexImpl
- the index implementation
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