|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.ide.addin.AbstractCommand
oracle.ide.inspector.PropertySetCommand
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.addin.AbstractCommand |
cmdId, context, name, type |
Fields inherited from interface oracle.ide.addin.Command |
CANCEL, EXECUTING, NO_CHANGE, NO_UNDO, NORMAL, OK |
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 and send out proper notification. |
Document[] |
getAffectedDocuments()
For commands of the NORMAL and NO_UNDO this method should return an array of documents affected by the execution of this command. |
java.lang.String |
getName()
Gets the name of the command to display as the action to undo |
int |
undo()
Restores the object to its previous state. |
Methods inherited from class oracle.ide.addin.AbstractCommand |
getContext, getData, getId, getType, setContext, setData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PropertySetCommand(oracle.bali.inspector.multi.SelectionModel selection, java.lang.Object id, int col, java.lang.Object data)
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 |
public int doit() throws java.lang.Exception
java.lang.Exception
public int undo() throws java.lang.Exception
undo
in interface Command
undo
in class AbstractCommand
java.lang.Exception
public Document[] getAffectedDocuments()
Command
getAffectedDocuments
in interface Command
getAffectedDocuments
in class AbstractCommand
public java.lang.String getName()
AbstractCommand
getName
in interface Command
getName
in class AbstractCommand
|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©1997, 2003, Oracle. All rights reserved.