|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.model.NodeListener
public class NodeListener
Callback interface for Node events.
Constructor Summary | |
---|---|
NodeListener()
|
Method Summary | |
---|---|
static void |
invokeLaterIfNeeded(java.lang.Runnable runnable)
If the current thread is the event dispatch thread, the runnable is executed immediately and synchronously. |
void |
nodeClosed(NodeEvent e)
Called after a Node has been closed. |
void |
nodeDeleted(NodeEvent e)
Called after a Node has been deleted from disk and removed from the NodeFactory cache. |
void |
nodeDirtyStateChanged(NodeEvent e,
boolean isNowDirty)
Called when the dirty state of a Node has just changed. |
void |
nodeOpened(NodeEvent e)
Called after a Node has been opened. |
void |
nodeRenamed(NodeEvent e,
java.net.URL oldURL,
java.net.URL newURL)
Called after a Node has been renamed and recached under the new URL in the NodeFactory. |
void |
nodeReverted(NodeEvent e)
Called when a Node has been reverted (reloaded) to its last saved state. |
void |
nodeSaved(NodeEvent e)
Called after a Node has been saved. |
void |
nodeWillBeSaved(NodeEvent e)
Called before a Node is about to be saved. |
void |
nodeWillClose(NodeEvent e)
Called when a Node is about to be closed. |
void |
nodeWillOpen(NodeEvent e)
Called when a Node is about to be opened. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeListener()
Method Detail |
---|
public void nodeOpened(NodeEvent e)
e
- the object containing information about this eventpublic void nodeDirtyStateChanged(NodeEvent e, boolean isNowDirty)
e
- the object containing information about this eventisNowDirty
- true
if the Node's dirty flag has
just been set; false
if the Node's dirty flag has
just been cleared.public void nodeWillOpen(NodeEvent e)
e
- the object containing information about this eventpublic void nodeWillClose(NodeEvent e)
e
- the object containing information about this eventpublic void nodeClosed(NodeEvent e)
e
- the object containing information about this eventpublic void nodeWillBeSaved(NodeEvent e)
e
- the object containing information about this eventpublic void nodeSaved(NodeEvent e)
e
- the object containing information about this eventpublic void nodeReverted(NodeEvent e)
e
- the object containing information about this eventpublic void nodeDeleted(NodeEvent e)
e
- the object containing information about this eventpublic void nodeRenamed(NodeEvent e, java.net.URL oldURL, java.net.URL newURL)
e
- the object containing information about this event.
Calling e.getNode()
will return the
old Node
. To get the new Node, call
NodeFactory.find(newURL)
. Both old and new Nodes
remain available while NodeListeners are being called with
the nodeRenamed event. In the case where renaming did not cause
the Node type to change, both old Node and new Node will be the
exact same object, so using the oldURL
parameter
is the only reliable way to know the URL of the Node before it
was renamed. If the Node type did change, the old Node is
removed from the NodeFactory cache immediately after all
NodeListeners have been called with the nodeRenamed event.oldURL
- the old URL of the Node before the renamenewURL
- the new URL of the Node after the renamepublic static final void invokeLaterIfNeeded(java.lang.Runnable runnable)
runnable
- The code to run.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |