![]() | Data |
public abstract class DataMappingTable<EXTENSION, ROWCONTROLTYPE, SETTINGS> : DataMappingTable where EXTENSION : new(), CTExtension where ROWCONTROLTYPE : new(), DataMappingRowControl
The DataMappingTableEXTENSION, ROWCONTROLTYPE, SETTINGS type exposes the following members.
Name | Description | |
---|---|---|
![]() | DataMappingTableEXTENSION, ROWCONTROLTYPE, SETTINGS | Constructor |
Name | Description | |
---|---|---|
![]() | AdditionalBindings | Possible additional bindings for this table. |
![]() | IsModified | Does any of the rows of this table have Modified status? |
![]() | MainBindings | The main controls of this mapping. |
![]() | ParentExtension | Parent CTExtension |
![]() | Status | Status of this table. |
Name | Description | |
---|---|---|
![]() | AllMappingsValid |
Used to determine if all visible rows are fully defined (IsMappingValid), so a new empty row could be added.
(Overrides DataMappingTableAllMappingsValid) |
![]() | ButtonClicked |
Invoked when button is clicked. This implementation
handles the TAG_ACTION button press and
calls the approriate handler set at UpdateActionButton.
(Overrides DataMappingTableButtonClicked(DataMappingRowControl, String)) |
![]() | CanAddNewBinding | Return true if new additional binding can be added. |
![]() | ClearCaches | Clear cached selectables |
![]() | CreateNewBindingRow |
Creates new Additional Binding control to the table. InitNewBinding(ROWCONTROLTYPE) is NOT called after this,
so you must populate the values yourself like so:
C# var row = CreateNewBindingRow();
row.InitProperties(() =>
{
row.MyProperty = ....
}); |
![]() | DeleteSettings | Handle deletion of owned Core object if any. |
![]() | Init | MUST BE CALLED immediately after object creation. Calls Init(Boolean). |
![]() | InitNewBinding | Set initial values (e.g. nulls) to all properties of the row. Settings properties to binding within this function will not cause PropertyChanged(DataMappingRowControl, String) event. |
![]() | IsValidForSaving |
Object is valid for saving if MainBindings is valid.
Note that bindings in AdditionalBindings do NOT have to be valid. (Overrides DataMappingTableIsValidForSaving) |
![]() | LoadCombosT |
This function can be used to load the same content to all currently visible
controls (except exept if non-null).
This function can be usefull, if you have already set the values to your combos before loading the actual available values. Calling this function will then set non-available values as error selection. |
![]() | LoadSettings | Load settings for this table. If the settings is not SettingsIsNew(SETTINGS) but existing and loaded, then the table is Locked after loading, and it can be unlocked using TAG_ACTION button. |
![]() | LoadSettingsToTable |
Load the provided settings to the table. Populate MainBindings and
add new AdditionalBindings to populate using CreateNewBindingRow(ROWCONTROLTYPE).
When populating values to your objects, use InitProperties(Action) to avoid PropertyChanged(DataMappingRowControl, String) event during loading. C# MainBindings.InitProperties(() => { MainBindings.Name = settings.CTObject.Name; MainBindings.DataSource = settings.Source; }); |
![]() | PropertyChanged |
Invoked when any property is changed. If the changed property is not TAG_STATUS,
sets the status to Modified. Then checkes if all mappings are now
valid (AllMappingsValid) and if new binding can be added CanAddNewBinding. Adds new
empty binding to the end of the table if previous two are true.
If new binding is added InitNewBinding(ROWCONTROLTYPE) is called for it. (Overrides DataMappingTablePropertyChanged(DataMappingRowControl, String)) |
![]() | RemoveBinding | Remove given binding for the table. Completely disposes it and its controls, and moves all bindings below it up. |
![]() | Reset | Removes everything and resets this table. |
![]() | Save | Save this object if it's valid for |
![]() | SaveSettings | Save everything from UI to settings. Create new objects if needed etc. |
![]() | SettingsIsNew | Return true if the given settings is new, or false if it's loaded. |
![]() | UpdateActionButton | Updated the action button and its action based on Status. |
Date | Version | Description |
---|---|---|
- | 2025 SP1 | First Release |