Open chesdenis opened 8 years ago
What about TreeEntity class? Should it be a separate class or an internal class of TreeModel?
I think we need a separate interface ITreeEntity and this interface must be in a separate file.
Its all clear with interface. But as I understand TreeModel should be a class that contains array Entities of type, which implemets ITreeEntity (for example TreeEntity class). And when client wants to display folders info, we load our tree structure into TreeModel instance, but all real operations do with Entities property. Am I right?
Its all clear with interface. But as I understand TreeModel should be a class that contains array Entities of type, which implemets ITreeEntity (for example TreeEntity class). And when client wants to display folders info, we load our tree structure into TreeModel instance, but all real operations do with Entities property. Am I right?
Yes, You are right:) I have updated the description, so now I think it's more clear.
Yes, now its clear. One more question about id: how do you think it should calculate - relative to the whole tree (each id would be unique) or relative to the level in which it is situated?
I think it should be unique. This feature give us ability to create an internal dictionary in TreeModel and use it to search any node very fast through all hierarchical data.
Target: Get a feature that can manipulate elements in tree structure. Images: Components.TreeView The feature must have these sub-features:
For completing this issue you must develop a simple ts class that have collection of entities. Each entity must be implement an interface that have these properties:
P.S. Please if you start developing this issue, create a separate branch from branch 'development' and after complete development create the merge request to 'development' branch