Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.5.0)

E13403-06


oracle.ide.inspector
Class PropertySetCommand

java.lang.Object
  extended by oracle.ide.controller.Command
      extended by oracle.ide.inspector.PropertySetCommand


public class PropertySetCommand
extends Command

The PropetySetCommand implements a property set, handling the undoing of the property set and sending out all relevant notifications.


Field Summary

 

Fields inherited from class oracle.ide.controller.Command
CANCEL, context, EXECUTING, MULTI_NODE, NO_CHANGE, NO_UNDO, NORMAL, OK, type

 

Constructor Summary
PropertySetCommand(oracle.bali.inspector.multi.SelectionModel selection, java.lang.Object id, int col, java.lang.Object data)
          Constructor.

 

Method Summary
 int doit()
          Assign the new value to the object.
 Node[] getAffectedNodes()
          Get the collection of any other Node instances that are affected by this Command.
 java.lang.String getName()
          Get the name of this Command for display in the Undo/Redo menu items.
protected  void sendUpdates()
          Send relevant object change notifications.
 int undo()
          Restores the object to its previous state.

 

Methods inherited from class oracle.ide.controller.Command
getContext, getData, getId, getType, isGlobal, setContext, setData

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

PropertySetCommand

public PropertySetCommand(oracle.bali.inspector.multi.SelectionModel selection,
                          java.lang.Object id,
                          int col,
                          java.lang.Object data)
Constructor.
Parameters:
selection - SelectionModel of PropertyModel instances te be affected.
id - ID identifying the property row in which to set the data.
col - value identifying the property column in which to set the data.
data - the new value to apply.

Method Detail

doit

public int doit()
         throws java.lang.Exception
Assign the new value to the object.
Specified by:
doit in class Command
Returns:
Completion status of the operation.
Throws:
java.lang.Exception - the Command failed to complete successfully.

sendUpdates

protected void sendUpdates()
Send relevant object change notifications.

undo

public int undo()
         throws java.lang.Exception
Restores the object to its previous state.
Overrides:
undo in class Command
Returns:
Completion status of the operation.
Throws:
java.lang.Exception - the Command failed to undo successfully.

getAffectedNodes

public Node[] getAffectedNodes()
Get the collection of any other Node instances that are affected by this Command.
Overrides:
getAffectedNodes in class Command
Returns:
An array of other affected Nodes.

getName

public java.lang.String getName()
Get the name of this Command for display in the Undo/Redo menu items.
Overrides:
getName in class Command
Returns:
The name of this Command.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.5.0)

E13403-06


Copyright © 1997, 2011, Oracle. All rights reserved.