public abstract class PropertySetCommand extends Command
PropetySetCommand class provides a skeleton implemention
 for applying a property set, handling the undoing of the property set and
 sending out all relevant notifications.  Subclass implemenations are
 responsible for actually applying the value to the live object.| Modifier and Type | Field and Description | 
|---|---|
protected java.lang.Object | 
origin  | 
protected java.lang.String | 
property  | 
protected java.lang.Object[] | 
targets  | 
| Modifier | Constructor and Description | 
|---|---|
protected  | 
PropertySetCommand(java.lang.Object origin,
                  java.lang.Object[] targets,
                  java.lang.String property,
                  java.lang.Object oldValue,
                  java.lang.Object newValue)
Constructor. 
 | 
protected  | 
PropertySetCommand(java.lang.Object origin,
                  java.lang.Object target,
                  java.lang.String property,
                  java.lang.Object oldValue,
                  java.lang.Object newValue)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
doit()
Assign the new value to the object and send out proper notification. 
 | 
protected abstract void | 
setValue(java.lang.Object newValue)
Perform the actual property setting. 
 | 
int | 
undo()
Restores the object to its previous state. 
 | 
enableConfirmation, getAffectedNodes, getContext, getData, getId, getName, getProgressHandle, getType, isGlobal, setContext, setData, setTaskInfoprotected java.lang.Object origin
protected java.lang.Object[] targets
protected java.lang.String property
protected PropertySetCommand(java.lang.Object origin,
                             java.lang.Object target,
                             java.lang.String property,
                             java.lang.Object oldValue,
                             java.lang.Object newValue)
origin - Origin of the action to be used in UpdateMessage instance.target - Object upon which the command should be performed.property - the name of the property whose value is about to change.oldValue - the current value of the property.newValue - the new value to apply.protected PropertySetCommand(java.lang.Object origin,
                             java.lang.Object[] targets,
                             java.lang.String property,
                             java.lang.Object oldValue,
                             java.lang.Object newValue)
origin - Origin of the action to be used in UpdateMessage instance.targets - Objects upon which the command should be performed.property - the name of the property whose value is about to change.oldValue - the current value of the property.newValue - the new value to apply.