Class CachingTreeContentProvider

java.lang.Object
com._1c.g5.v8.dt.navigator.providers.CachingTreeContentProvider
All Implemented Interfaces:
IContentProvider, IStructuredContentProvider, ITreeContentProvider

public class CachingTreeContentProvider extends Object implements ITreeContentProvider
The implementation of ITreeContentProvider for caching children of FilteringTreeContentProvider.

Provides the following features:

  • Caches the children for the specific list of Class'es. For the specific Class instance firstly it tries to find its children in cache and if it was successful returns the cached children, otherwise gets children fairly, caches them and returns them.
  • Caches the all children that were got. It is very useful for the serial calls of methods hasChildren(Object) and getChildren(Object).

    Important notes:

  • The cache drops if only the input was changed. If the customer wants to drop the cache without input changes he needs to recreate CachingTreeContentProvider.
  • The cache size isn't limited, so the customers should keep it in mind.
  • CachingTreeContentProvider is the lightweight implementation of a caching tree content provider, so it is better to use it for dialogs, and don't use it, for example, in the navigation tools.