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
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, hashCode, hasPropertyChangeListener, isLeaf, removeNodeListener, removePropertyChangeListener, setChildren, setDisplayName, setHidden, setShortDescription, toString |
Methods inherited from class java.beans.FeatureDescriptor |
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setExpert, 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
IndexedNode
protected IndexedNode(Children children,
Index indexImpl,
Lookup lookup)
- Allows subclasses to provide their own children and
index handling as well as
Lookup
.
- Parameters:
children
- the children implementationindexImpl
- the index implementationlookup
- lookup the node shall use- Since:
- 7.16
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 <T extends Node.Cookie> T getCookie(Class<T> 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
- See Also:
Lookup