public class PropertySetCommand extends Command
PropetySetCommand
implements a property set, handling the
undoing of the property set and sending out all relevant notifications.Constructor and Description |
---|
PropertySetCommand(oracle.bali.inspector.multi.SelectionModel selection,
java.lang.Object id,
int col,
java.lang.Object data)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
enableConfirmation, getContext, getData, getId, getProgressHandle, getType, isGlobal, setContext, setData, setTaskInfo
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.public int doit() throws java.lang.Exception
protected void sendUpdates()
public int undo() throws java.lang.Exception
public Node[] getAffectedNodes()
getAffectedNodes
in class Command