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

E13403-02

oracle.jdeveloper.cmt
Class CmtPropertySetCommand

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

public class CmtPropertySetCommand
extends PropertySetCommand


Field Summary
 
Fields inherited from class oracle.ide.controller.Command
CANCEL, context, EXECUTING, MULTI_NODE, NO_CHANGE, NO_UNDO, NORMAL, OK, type
 
Constructor Summary
CmtPropertySetCommand(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.
protected  void sendUpdates()
          Send relevant object change notifications.
 void setContext(Context context)
          Sets context associated with command.
 int undo()
          Restores the object to its previous state.
 
Methods inherited from class oracle.ide.inspector.PropertySetCommand
getAffectedNodes, getName
 
Methods inherited from class oracle.ide.controller.Command
getContext, getData, getId, getType, isGlobal, setData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmtPropertySetCommand

public CmtPropertySetCommand(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

setContext

public void setContext(Context context)
Description copied from class: Command
Sets context associated with command.

Overrides:
setContext in class Command

doit

public int doit()
         throws java.lang.Exception
Description copied from class: PropertySetCommand
Assign the new value to the object.

Overrides:
doit in class PropertySetCommand
Returns:
Completion status of the operation.
Throws:
java.lang.Exception - the Command failed to complete successfully.

sendUpdates

protected void sendUpdates()
Description copied from class: PropertySetCommand
Send relevant object change notifications.

Overrides:
sendUpdates in class PropertySetCommand

undo

public int undo()
         throws java.lang.Exception
Restores the object to its previous state.

Overrides:
undo in class PropertySetCommand
Returns:
Completion status of the operation.
Throws:
java.lang.Exception - the Command failed to undo successfully.

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

E13403-02

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