|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openide.nodes.DefaultHandle
Simple implementation of 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.
Method Summary | |
static DefaultHandle |
createHandle(Node node)
Create a handle for a given node. |
Node |
getNode()
Find the node. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public Node getNode() throws IOException
getNode
in interface Node.Handle
IOException
- if the parent cannot be recreated
NodeNotFoundException
- 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 for
null
if a handle cannot be createdpublic String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |