Class MetadataSource.ThreadedMetadataSource

  • Enclosing class:
    MetadataSource

    public abstract static class MetadataSource.ThreadedMetadataSource
    extends MetadataSource
    An abstract helper class for creating metadata sources that fill in some of their data from a background thread. This prevents blocking the user interface to complete potentially complex or time-consuming operations, such as generating a preview thumbnail. Be careful to observe Swing threading restrictions.
    • Constructor Detail

      • ThreadedMetadataSource

        public ThreadedMetadataSource()
      • ThreadedMetadataSource

        public ThreadedMetadataSource​(boolean autopause)
        If autopause is true, then pause() will be called before calling fillInThreadedMetadataImpl. If the property consumer becomes invalid during the pause, then the threaded metadata will not be requested.
        Parameters:
        autopause -