JVCL Help:TJvCustomInspectorData.RegisterInstance

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Registers data instance globally to the application.


Pascal

 classfunctionRegisterInstance(constInstance: TJvCustomInspectorData): TJvCustomInspectorData;


Parameters

Parameters Description
const Instance: TJvCustomInspectorData The data instance to register.


Description

RegisterInstance registers the specified data instance in an application global list of known data instances. This assures that multiple references to the same data are only created once. Instead of duplicating the data instance, a new inspector item is created. The big advantage is that if data is changed in one item, it will immediately change in the other item as well, even if it's in another inspector. The return value will either hold the specified instance if no other instance references the same physical data or a previously registered instance that references the same physical data.


See Also

TJvCustomInspectorData.IsEqualReference, TJvCustomInspectorData.NotifyRemoveData


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page