java.io.Serializable, Node.Handlepublic final class DefaultHandle extends java.lang.Object implements Node.Handle
Node.Handle.
When created by createHandle(org.openide.nodes.Node) it
looks for the parent of the node and stores the node's name.
When getNode() is then called, it tries to restore the
parent and then to walk down to the child.
Note that if most nodes use DefaultHandle, this
may walk up to the root recursively. Otherwise, some other sort
of handle may provide the termination case.
| Modifier and Type | Method | Description |
|---|---|---|
static DefaultHandle |
createHandle(Node node) |
Create a handle for a given node.
|
Node |
getNode() |
Find the node.
|
java.lang.String |
toString() |
public Node getNode() throws java.io.IOException
getNode in interface Node.HandleIOException - if the parent cannot be recreatedNodeNotFoundException - if the path is not valid (exception may be examined for details)public static DefaultHandle createHandle(Node node)
node - the node to create a handler fornull if a handle cannot be createdpublic java.lang.String toString()
toString in class java.lang.ObjectBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.