Class TreeValueUpdateThrottle<T>


  • public class TreeValueUpdateThrottle<T>
    extends Object
    Throttle for tree UI 'update' of a tree item value

    Structure (new links) need to be represented to allow reacting to updates of their values, but the value updates itself can be throttled.

    Author:
    Kay Kasemir
    • Constructor Detail

      • TreeValueUpdateThrottle

        public TreeValueUpdateThrottle​(Consumer<Collection<T>> updater)
        Parameters:
        updater - Will be called with accumulated fields to update
    • Method Detail

      • scheduleUpdate

        public void scheduleUpdate​(T item)
        Request a tree viewer 'update'
        Parameters:
        item - Item to update
      • shutdown

        public void shutdown()