|
Extension SDK 10.1.2 | ||||||||||
| 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()
Get the collection of any other Document 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. |
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 - the Command failed to complete successfully.
public int undo()
throws java.lang.Exception
undo in interface Commandundo in class AbstractCommandjava.lang.Exception - the Command failed to undo successfully.public Document[] getAffectedDocuments()
getAffectedDocuments in interface CommandgetAffectedDocuments in class AbstractCommandpublic java.lang.String getName()
getName in interface CommandgetName in class AbstractCommand
|
Extension SDK | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright © 1997, 2004, Oracle. All rights reserved.