CSLA .NET 10.0.0
A home for your business logic
Loading...
Searching...
No Matches
Csla.Core.UndoableBase Class Referenceabstract

Implements n-level undo capabilities as described in Chapters 2 and 3. More...

Inheritance diagram for Csla.Core.UndoableBase:
Csla.Core.BindableBase Csla.Core.IUndoableObject Csla.Core.IUseApplicationContext Csla.Core.MobileObject Csla.Serialization.Mobile.IMobileObject Csla.Serialization.Mobile.IMobileObjectMetastate Csla.Core.BusinessBase Csla.BusinessBase< T >

Protected Member Functions

virtual void OnApplicationContextSet ()
 Method invoked after ApplicationContext is available.
 UndoableBase ()
 Creates an instance of the type.
virtual void CopyingState ()
 This method is invoked before the CopyState operation begins.
virtual void CopyStateComplete ()
 This method is invoked after the CopyState operation is complete.
virtual void UndoChangesComplete ()
 This method is invoked before the UndoChanges operation begins.
virtual void UndoingChanges ()
 This method is invoked after the UndoChanges operation is complete.
virtual void AcceptingChanges ()
 This method is invoked before the AcceptChanges operation begins.
virtual void AcceptChangesComplete ()
 This method is invoked after the AcceptChanges operation is complete.
override void OnGetState (SerializationInfo info, StateMode mode)
 Override this method to insert your field values into the MobileFormatter serialization stream.
override void OnSetState (SerializationInfo info, StateMode mode)
 Override this method to retrieve your field values from the MobileFormatter serialization stream.
override void OnGetMetastate (BinaryWriter writer)
 Override this method to write field values directly to a binary stream for metastate serialization.
Parameters
writerBinary writer for the output stream.

override void OnSetMetastate (BinaryReader reader)
 Override this method to read field values directly from a binary stream for metastate deserialization.
Parameters
readerBinary reader for the input stream.

Protected Member Functions inherited from Csla.Core.BindableBase
 BindableBase ()
 Creates an instance of the type.
virtual bool ShouldHandlerSerialize (PropertyChangedEventHandler value)
 Override this method to change the default logic for determining if the event handler should be serialized.
virtual void OnPropertyChanged (string propertyName)
 Call this method to raise the PropertyChanged event for a specific property.
virtual void OnMetaPropertyChanged (string propertyName)
virtual void OnPropertyChanged (IPropertyInfo propertyInfo)
 Call this method to raise the PropertyChanged event for a specific property.
virtual void OnIsDirtyChanged ()
 Call this method to raise the PropertyChanged event for all object properties.
virtual void OnUnknownPropertyChanged ()
 Call this method to raise the PropertyChanged event for all object properties.
virtual void OnIsDirtyChanging ()
 Call this method to raise the PropertyChanging event for all object properties.
virtual void OnUnknownPropertyChanging ()
 Call this method to raise the PropertyChanging event for all object properties.
virtual void OnPropertyChanging (string propertyName)
 Call this method to raise the PropertyChanging event for a specific property.
virtual void OnPropertyChanging (IPropertyInfo propertyInfo)
 Call this method to raise the PropertyChanging event for a specific property.
virtual bool ShouldHandlerSerialize (PropertyChangingEventHandler value)
 Override this method to change the default logic for determining if the event handler should be serialized.
Protected Member Functions inherited from Csla.Core.MobileObject
virtual void OnGetChildren (SerializationInfo info, MobileFormatter formatter)
 Override this method to insert your child object references into the MobileFormatter serialization stream.
virtual void OnSetChildren (SerializationInfo info, MobileFormatter formatter)
 Override this method to retrieve your child object references from the MobileFormatter serialization stream.

Properties

ApplicationContext ApplicationContext [get, set]
 Gets or sets a reference to the current ApplicationContext.
bool BindingEdit [get, set]
 Gets or sets a value indicating whether n-level undo was invoked through IEditableObject. FOR INTERNAL CSLA .NET USE ONLY!
int EditLevel [get]
 Returns the current edit level of the object.

Additional Inherited Members

Events inherited from Csla.Core.BindableBase
PropertyChangedEventHandler? PropertyChanged [add, remove]
 Implements a serialization-safe PropertyChanged event.
PropertyChangingEventHandler? PropertyChanging [add, remove]
 Implements a serialization-safe PropertyChanging event.

Detailed Description

Implements n-level undo capabilities as described in Chapters 2 and 3.

Constructor & Destructor Documentation

◆ UndoableBase()

Csla.Core.UndoableBase.UndoableBase ( )
inlineprotected

Creates an instance of the type.

Member Function Documentation

◆ AcceptChangesComplete()

virtual void Csla.Core.UndoableBase.AcceptChangesComplete ( )
inlineprotectedvirtual

This method is invoked after the AcceptChanges operation is complete.

Reimplemented in Csla.Core.BusinessBase.

◆ AcceptingChanges()

virtual void Csla.Core.UndoableBase.AcceptingChanges ( )
inlineprotectedvirtual

This method is invoked before the AcceptChanges operation begins.

◆ CopyingState()

virtual void Csla.Core.UndoableBase.CopyingState ( )
inlineprotectedvirtual

This method is invoked before the CopyState operation begins.

◆ CopyStateComplete()

virtual void Csla.Core.UndoableBase.CopyStateComplete ( )
inlineprotectedvirtual

This method is invoked after the CopyState operation is complete.

◆ OnApplicationContextSet()

virtual void Csla.Core.UndoableBase.OnApplicationContextSet ( )
inlineprotectedvirtual

Method invoked after ApplicationContext is available.

Reimplemented in Csla.Core.BusinessBase.

◆ OnGetMetastate()

override void Csla.Core.UndoableBase.OnGetMetastate ( BinaryWriter writer)
inlineprotectedvirtual

Override this method to write field values directly to a binary stream for metastate serialization.

Parameters
writerBinary writer for the output stream.

Reimplemented from Csla.Core.MobileObject.

◆ OnGetState()

override void Csla.Core.UndoableBase.OnGetState ( SerializationInfo info,
StateMode mode )
inlineprotectedvirtual

Override this method to insert your field values into the MobileFormatter serialization stream.

Parameters
infoObject containing the data to serialize.
modeThe StateMode indicating why this method was invoked.

Reimplemented from Csla.Core.MobileObject.

◆ OnSetMetastate()

override void Csla.Core.UndoableBase.OnSetMetastate ( BinaryReader reader)
inlineprotectedvirtual

Override this method to read field values directly from a binary stream for metastate deserialization.

Parameters
readerBinary reader for the input stream.

Reimplemented from Csla.Core.MobileObject.

◆ OnSetState()

override void Csla.Core.UndoableBase.OnSetState ( SerializationInfo info,
StateMode mode )
inlineprotectedvirtual

Override this method to retrieve your field values from the MobileFormatter serialization stream.

Parameters
infoObject containing the data to serialize.
modeThe StateMode indicating why this method was invoked.

Reimplemented from Csla.Core.MobileObject.

◆ UndoChangesComplete()

virtual void Csla.Core.UndoableBase.UndoChangesComplete ( )
inlineprotectedvirtual

This method is invoked before the UndoChanges operation begins.

Reimplemented in Csla.Core.BusinessBase.

◆ UndoingChanges()

virtual void Csla.Core.UndoableBase.UndoingChanges ( )
inlineprotectedvirtual

This method is invoked after the UndoChanges operation is complete.

Property Documentation

◆ ApplicationContext

ApplicationContext Csla.Core.UndoableBase.ApplicationContext
getsetprotected

Gets or sets a reference to the current ApplicationContext.

Implements Csla.Core.IUseApplicationContext.

◆ BindingEdit

bool Csla.Core.UndoableBase.BindingEdit
getsetprotected

Gets or sets a value indicating whether n-level undo was invoked through IEditableObject. FOR INTERNAL CSLA .NET USE ONLY!

◆ EditLevel

int Csla.Core.UndoableBase.EditLevel
getprotected

Returns the current edit level of the object.

Implements Csla.Core.IUndoableObject.


The documentation for this class was generated from the following file: