|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.controller.Command
oracle.ide.cmd.CloseNodeCommand
public class CloseNodeCommand
The CloseNodeCommand class implements the command to unload
the the selected node(s) and revert to an unopen state.
Command| Field Summary |
|---|
| Fields inherited from class oracle.ide.controller.Command |
|---|
CANCEL, context, EXECUTING, MULTI_NODE, NO_CHANGE, NO_UNDO, NORMAL, OK, type |
| Constructor Summary | |
|---|---|
CloseNodeCommand()
Constructor. |
|
CloseNodeCommand(UpdateMessage messageTemplate)
Constructor. |
|
| Method Summary | |
|---|---|
int |
checkSave(java.util.Iterator targets)
Check if the user wants to save dirty Nodes about to be closed. |
int |
checkSave(java.util.Iterator targets,
boolean canCancel)
Check if the user wants to save dirty Nodes about to be closed. |
int |
checkSave(java.util.List dirtyNodes,
boolean canCancel)
|
void |
clearAffectedNodes()
Reset the list of affected Nodes. |
int |
close(java.util.Iterator nodes,
Context context,
boolean uncache,
boolean removeUnsavedNodes)
Closes the nodes specified by the Iterator. |
int |
close(java.util.List nodes,
boolean uncache,
boolean removeUnsavedNodes)
Close the Nodes listed in nodes. |
protected int |
close(java.util.List nodes,
Context context,
boolean uncache,
boolean removeUnsavedNodes)
|
int |
close(Node node)
Close the specified Node. |
int |
close(Node node,
boolean uncache,
boolean removeUnsavedNode)
Close the specified node. |
static Command |
closeAndremoveApplication(Context context)
|
protected void |
collectDirtyNodes(java.util.Iterator targets,
java.util.List dirtyNodes)
|
int |
doit()
Executes the actions associated with a specific command. |
Node[] |
getAffectedNodes()
Returns an array of the Nodes closed. |
boolean |
isNeedConfirm()
|
static Command |
removeOrCloseApplicationPrompt(Context context)
Deprecated. No longer an option to close without removing application; use closeAndremoveApplication(oracle.ide.Context) |
void |
setNeedConfirm(boolean confirm)
|
| Methods inherited from class oracle.ide.controller.Command |
|---|
getContext, getData, getId, getName, getType, isGlobal, setContext, setData, undo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CloseNodeCommand()
public CloseNodeCommand(UpdateMessage messageTemplate)
| Method Detail |
|---|
@Deprecated public static Command removeOrCloseApplicationPrompt(Context context)
closeAndremoveApplication(oracle.ide.Context)
public static Command closeAndremoveApplication(Context context)
public int doit()
throws java.lang.Exception
Command
doit in class Commandjava.lang.Exceptionpublic boolean isNeedConfirm()
public void setNeedConfirm(boolean confirm)
public int close(java.util.List nodes,
boolean uncache,
boolean removeUnsavedNodes)
nodes.
If the uncache parameter is true nodes are
uncached from the node factory. When the removeUnsavedNodes
parameter is true, nodes that have not yet been persited are removed
from their container.
public int close(Node node,
boolean uncache,
boolean removeUnsavedNode)
node.
If the uncache parameter is true nodes are
uncached from the node factory. When the removeUnsavedNodes
parameter is true, nodes that have not yet been persited are removed
from their container.
public int close(Node node)
public Node[] getAffectedNodes()
getAffectedNodes in class Commandpublic void clearAffectedNodes()
public int checkSave(java.util.Iterator targets)
public int checkSave(java.util.Iterator targets,
boolean canCancel)
canCancel parameter is true the
user is given the choice to cancel.
public int checkSave(java.util.List dirtyNodes,
boolean canCancel)
public int close(java.util.Iterator nodes,
Context context,
boolean uncache,
boolean removeUnsavedNodes)
nodes specified by the Iterator.
If the uncache parameter is true nodes are
uncached from the node factory. When the removeUnsavedNodes
parameter is true, nodes that have not yet been persited are removed
from their container.
protected int close(java.util.List nodes,
Context context,
boolean uncache,
boolean removeUnsavedNodes)
protected void collectDirtyNodes(java.util.Iterator targets,
java.util.List dirtyNodes)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||