JVCL Help:TJvBaseDataItem.ReadSubItems

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

Search in JVCL Help

 
Search in all projects
 

Summary

Reads in a collection of sub items from a stream.


Pascal

 procedureReadSubItems(Reader: TReader);


Parameters

Parameters Description
Reader: TReader Filer object to read the collection of extensions from.


Description

ReadSubItems reads in a collection of sub items from a stream. It expects to find a collection at the current location. If there's not a collection at the current location in the stream, an exception will be raised.
Only one item is expected to be in the collection. That item is expected to start with ClassName property, containing the class name of the implementation object for IJvDataItems to use. If the extension list contains an object implementing the IJvDataItems interface, but is of the wrong class, it will be deleted. If no IJvDataItems implementation is present, it will be added. If the correct class already was present, it will be used as is (i.e. the list is not cleared before reading commences).
The remainder of the collection item is expected to be properties of the IJvDataItems implementer class.
ReadSubItems is called by the filing system when the SubItems property is encountered.


See Also

TJvBaseDataItem.WriteSubItems


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