Package | com.yworks.support |
Class | public class MementoStateStruct |
Inheritance | MementoStateStruct Object |
IMementoSupport
,
a object instance and its state memento.
This struct is used by MementoUndoUnit
and the like.
Property | Defined By | ||
---|---|---|---|
mementoSupport : IMementoSupport
The implementation that can apply to and retrieve the current state from the subject. | MementoStateStruct | ||
state : Object
The state of the subject before the subject has been changed. | MementoStateStruct | ||
subject : Object
The subject for which the state is changed. | MementoStateStruct |
Method | Defined By | ||
---|---|---|---|
MementoStateStruct(mementoSupport:IMementoSupport, subject:Object, state:Object)
Creates and initializes a new instance of this struct. | MementoStateStruct |
mementoSupport | property |
public var mementoSupport:IMementoSupport
The implementation that can apply to and retrieve the current state from the subject.
state | property |
public var state:Object
The state of the subject before the subject has been changed.
subject | property |
public var subject:Object
The subject for which the state is changed.
MementoStateStruct | () | Constructor |
public function MementoStateStruct(mementoSupport:IMementoSupport, subject:Object, state:Object)
Creates and initializes a new instance of this struct.
ParametersmementoSupport:IMementoSupport — The implementation that can apply to and retrieve the current state from the subject.
| |
subject:Object — The subject for which the state is changed.
| |
state:Object — The state of the subject before the subject has been changed.
|