Extender control providing automation around data binding to CSLA .NET business objects. More...
Public Member Functions | |
CslaActionExtender (IContainer container) | |
Creates an instance of the type. More... | |
CslaFormAction | GetActionType (Control ctl) |
Gets the action type. More... | |
void | SetActionType (Control ctl, CslaFormAction value) |
Sets the action type. More... | |
PostSaveActionType | GetPostSaveAction (Control ctl) |
Gets the post save action. More... | |
void | SetPostSaveAction (Control ctl, PostSaveActionType value) |
Sets the post save action. More... | |
bool | GetRebindAfterSave (Control ctl) |
Gets the rebind after save value. More... | |
void | SetRebindAfterSave (Control ctl, bool value) |
Sets the rebind after save value. More... | |
bool | GetDisableWhenUseless (Control ctl) |
Gets the disable when useless value. More... | |
void | SetDisableWhenUseless (Control ctl, bool value) |
Sets the disable when useless value. More... | |
string | GetCommandName (Control ctl) |
Gets the command name value. More... | |
void | SetCommandName (Control ctl, string value) |
Sets the command name value. More... | |
void | ResetActionBehaviors (ISavable objectToBind) |
Resets all action behaviors. More... | |
Protected Member Functions | |
virtual void | OnClicking (CslaActionCancelEventArgs e) |
Raises the Clicking event. More... | |
virtual void | OnClicked (CslaActionEventArgs e) |
Raises the Clicked event. More... | |
virtual void | OnErrorEncountered (ErrorEncounteredEventArgs e) |
Raises the ErrorEncountered event. More... | |
virtual void | OnSetForNew (CslaActionEventArgs e) |
Raises the SetForNew event. More... | |
virtual void | OnBusinessObjectInvalid (CslaActionEventArgs e) |
Raises the BusinessObjectInvalid event. More... | |
virtual void | OnHasBrokenRules (HasBrokenRulesEventArgs e) |
Raises the HasBrokenRules event. More... | |
virtual void | OnObjectSaving (CslaActionCancelEventArgs e) |
Raises the ObjectSaving event. More... | |
virtual void | OnObjectSaved (CslaActionEventArgs e) |
Raises the ObjectSaved event. More... | |
void | OnClick (object sender, EventArgs e) |
Method invoked when the target control is clicked. More... | |
Properties | |
object | DataSource [getset] |
Gets or sets a reference to the data source object. More... | |
bool | AutoShowBrokenRules [getset] |
Gets or sets a value indicating whether to automatically show broken rules. More... | |
bool | WarnIfCloseOnDirty [getset] |
Gets or sets a value indicating whether to warn the user on close when the object is dirty. More... | |
string | DirtyWarningMessage [getset] |
Gets or sets the message shown to the user in a close on dirty warning. More... | |
bool | WarnOnCancel [getset] |
Gets or sets a value indicating whether to warn the user on cancel. More... | |
string | WarnOnCancelMessage [getset] |
Gets or sets the message shown to the user in a warn on cancel. More... | |
string | ObjectIsValidMessage [getset] |
Gets or sets the message shown to the user when a button with a Validate ActionType is pressed when the object is valid. More... | |
Events | |
EventHandler< CslaActionCancelEventArgs > | Clicking |
Event indicating the user is clicking on the Control. More... | |
EventHandler< CslaActionEventArgs > | Clicked |
Event indicating the user clicked on the Control. More... | |
EventHandler< ErrorEncounteredEventArgs > | ErrorEncountered |
Event indicating an error was encountered. More... | |
EventHandler< CslaActionEventArgs > | SetForNew |
Event indicating the object is set for new. More... | |
EventHandler< CslaActionEventArgs > | BusinessObjectInvalid |
Event indicating the business object is in an invalid state. More... | |
EventHandler< HasBrokenRulesEventArgs > | HasBrokenRules |
Event indicating the business object has broken rules. More... | |
EventHandler< CslaActionCancelEventArgs > | ObjectSaving |
Event indicating that the object is saving. More... | |
EventHandler< CslaActionEventArgs > | ObjectSaved |
Event indicating that the object has been saved. More... | |
Extender control providing automation around data binding to CSLA .NET business objects.
Definition at line 29 of file CslaActionExtender.cs.
Csla.Windows.CslaActionExtender.CslaActionExtender | ( | IContainer | container | ) |
Creates an instance of the type.
container | Container for the component. |
Definition at line 37 of file CslaActionExtender.cs.
CslaFormAction Csla.Windows.CslaActionExtender.GetActionType | ( | Control | ctl | ) |
Gets the action type.
ctl | Reference to Control. |
Definition at line 197 of file CslaActionExtender.cs.
string Csla.Windows.CslaActionExtender.GetCommandName | ( | Control | ctl | ) |
Gets the command name value.
ctl | Reference to Control. |
Definition at line 362 of file CslaActionExtender.cs.
bool Csla.Windows.CslaActionExtender.GetDisableWhenUseless | ( | Control | ctl | ) |
Gets the disable when useless value.
ctl | Reference to Control. |
Definition at line 321 of file CslaActionExtender.cs.
PostSaveActionType Csla.Windows.CslaActionExtender.GetPostSaveAction | ( | Control | ctl | ) |
Gets the post save action.
ctl | Reference to Control. |
Definition at line 239 of file CslaActionExtender.cs.
bool Csla.Windows.CslaActionExtender.GetRebindAfterSave | ( | Control | ctl | ) |
Gets the rebind after save value.
ctl | Reference to Control. |
Definition at line 280 of file CslaActionExtender.cs.
|
protectedvirtual |
Raises the BusinessObjectInvalid event.
e | Event arguments. |
Definition at line 501 of file CslaActionExtender.cs.
|
protected |
Method invoked when the target control is clicked.
sender | Object originating action. |
e | Arguments. |
Definition at line 612 of file CslaActionExtender.cs.
|
protectedvirtual |
Raises the Clicked event.
e | Event arguments. |
Definition at line 471 of file CslaActionExtender.cs.
|
protectedvirtual |
Raises the Clicking event.
e | Event arguments. |
Definition at line 461 of file CslaActionExtender.cs.
|
protectedvirtual |
Raises the ErrorEncountered event.
e | Event arguments. |
Definition at line 481 of file CslaActionExtender.cs.
|
protectedvirtual |
Raises the HasBrokenRules event.
e | Event arguments. |
Definition at line 511 of file CslaActionExtender.cs.
|
protectedvirtual |
Raises the ObjectSaved event.
e | Event arguments. |
Definition at line 531 of file CslaActionExtender.cs.
|
protectedvirtual |
Raises the ObjectSaving event.
e | Event arguments. |
Definition at line 521 of file CslaActionExtender.cs.
|
protectedvirtual |
Raises the SetForNew event.
e | Event arguments. |
Definition at line 491 of file CslaActionExtender.cs.
void Csla.Windows.CslaActionExtender.ResetActionBehaviors | ( | ISavable | objectToBind | ) |
Resets all action behaviors.
objectToBind | Target object. |
Definition at line 545 of file CslaActionExtender.cs.
void Csla.Windows.CslaActionExtender.SetActionType | ( | Control | ctl, |
CslaFormAction | value | ||
) |
Sets the action type.
ctl | Reference to Control. |
value | Value for property. |
Definition at line 214 of file CslaActionExtender.cs.
void Csla.Windows.CslaActionExtender.SetCommandName | ( | Control | ctl, |
string | value | ||
) |
Sets the command name value.
ctl | Reference to Control. |
value | Value for property. |
Definition at line 379 of file CslaActionExtender.cs.
void Csla.Windows.CslaActionExtender.SetDisableWhenUseless | ( | Control | ctl, |
bool | value | ||
) |
Sets the disable when useless value.
ctl | Reference to Control. |
value | Value for property. |
Definition at line 338 of file CslaActionExtender.cs.
void Csla.Windows.CslaActionExtender.SetPostSaveAction | ( | Control | ctl, |
PostSaveActionType | value | ||
) |
Sets the post save action.
ctl | Reference to Control. |
value | Value for property. |
Definition at line 256 of file CslaActionExtender.cs.
void Csla.Windows.CslaActionExtender.SetRebindAfterSave | ( | Control | ctl, |
bool | value | ||
) |
Sets the rebind after save value.
ctl | Reference to Control. |
value | Value for property. |
Definition at line 297 of file CslaActionExtender.cs.
|
getset |
Gets or sets a value indicating whether to automatically show broken rules.
Definition at line 103 of file CslaActionExtender.cs.
|
getset |
Gets or sets a reference to the data source object.
Definition at line 80 of file CslaActionExtender.cs.
|
getset |
Gets or sets the message shown to the user in a close on dirty warning.
Definition at line 132 of file CslaActionExtender.cs.
|
getset |
Gets or sets the message shown to the user when a button with a Validate ActionType is pressed when the object is valid.
Definition at line 176 of file CslaActionExtender.cs.
|
getset |
Gets or sets a value indicating whether to warn the user on close when the object is dirty.
Definition at line 117 of file CslaActionExtender.cs.
|
getset |
Gets or sets a value indicating whether to warn the user on cancel.
Definition at line 146 of file CslaActionExtender.cs.
|
getset |
Gets or sets the message shown to the user in a warn on cancel.
Definition at line 161 of file CslaActionExtender.cs.
EventHandler<CslaActionEventArgs> Csla.Windows.CslaActionExtender.BusinessObjectInvalid |
Event indicating the business object is in an invalid state.
Definition at line 430 of file CslaActionExtender.cs.
EventHandler<CslaActionEventArgs> Csla.Windows.CslaActionExtender.Clicked |
Event indicating the user clicked on the Control.
Definition at line 409 of file CslaActionExtender.cs.
EventHandler<CslaActionCancelEventArgs> Csla.Windows.CslaActionExtender.Clicking |
Event indicating the user is clicking on the Control.
Definition at line 402 of file CslaActionExtender.cs.
EventHandler<ErrorEncounteredEventArgs> Csla.Windows.CslaActionExtender.ErrorEncountered |
Event indicating an error was encountered.
Definition at line 416 of file CslaActionExtender.cs.
EventHandler<HasBrokenRulesEventArgs> Csla.Windows.CslaActionExtender.HasBrokenRules |
Event indicating the business object has broken rules.
Definition at line 437 of file CslaActionExtender.cs.
EventHandler<CslaActionEventArgs> Csla.Windows.CslaActionExtender.ObjectSaved |
Event indicating that the object has been saved.
Definition at line 451 of file CslaActionExtender.cs.
EventHandler<CslaActionCancelEventArgs> Csla.Windows.CslaActionExtender.ObjectSaving |
Event indicating that the object is saving.
Definition at line 444 of file CslaActionExtender.cs.
EventHandler<CslaActionEventArgs> Csla.Windows.CslaActionExtender.SetForNew |
Event indicating the object is set for new.
Definition at line 423 of file CslaActionExtender.cs.