Search
Item.createState Method
See Also
 






Creates an item state corresponding to the concrete type of this item.

Namespace: com.mindfusion.scheduling.model
Package: com.mindfusion.scheduling.model

 Syntax

Java  Copy Code

protected ItemState createState ()

 Return Value

An instance of ItemState or a derived class.

 Remarks

This method is used by the undo/redo system to create an ItemState-derived object that corresponds to the item class. Custom item classes must override createState in order to implement undo/redo support for any additional members they define. This method should be overridden together with saveState and restoreState.

 See Also