Packagecom.yworks.support
Classpublic class MementoStateStruct
InheritanceMementoStateStruct Inheritance Object

A simple struct that holds a tuple consisting of an implementation of IMementoSupport, a object instance and its state memento.

This struct is used by MementoUndoUnit and the like.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
MementoStateStruct(mementoSupport:IMementoSupport, subject:Object, state:Object)
Creates and initializes a new instance of this struct.
MementoStateStruct
Property Detail
mementoSupportproperty
public var mementoSupport:IMementoSupport

The implementation that can apply to and retrieve the current state from the subject.

stateproperty 
public var state:Object

The state of the subject before the subject has been changed.

subjectproperty 
public var subject:Object

The subject for which the state is changed.

Constructor Detail
MementoStateStruct()Constructor
public function MementoStateStruct(mementoSupport:IMementoSupport, subject:Object, state:Object)

Creates and initializes a new instance of this struct.

Parameters
mementoSupport: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.