Class ThreadedTableModelWorkerListener<T>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void maxProgressChanged​(long id, T item, long maxProgress)
      Notification the the max progress value has changed.
      void progressChanged​(long id, T item, long progress)
      Notification that progress has changed during the processing of an item.
      void progressMessageChanged​(long id, T item, java.lang.String message)  
      void progressModeChanged​(long id, T item, boolean indeterminate)
      Notification that the progress mode has changed from/to indeterminate mode
      void taskEnded​(long id, T item, long totalCount, long completedCount)
      Notification that a new task has completed processing for an item.
      void taskStarted​(long id, T item)
      Notification that a new task has been generated to process an item.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • progressChanged

        public void progressChanged​(long id,
                                    T item,
                                    long progress)
        Description copied from interface: QProgressListener
        Notification that progress has changed during the processing of an item.
        Specified by:
        progressChanged in interface QProgressListener<T>
        Parameters:
        id - the id of the item being processed. Since multiple items can be processed concurrently, the id can be used to "demultiplex" the progress and messages being generated.
        progress - the current value of the progress for this task.
      • taskStarted

        public void taskStarted​(long id,
                                T item)
        Description copied from interface: QProgressListener
        Notification that a new task has been generated to process an item.
        Specified by:
        taskStarted in interface QProgressListener<T>
        Parameters:
        id - the id of the item being processed.
      • taskEnded

        public void taskEnded​(long id,
                              T item,
                              long totalCount,
                              long completedCount)
        Description copied from interface: QProgressListener
        Notification that a new task has completed processing for an item.
        Specified by:
        taskEnded in interface QProgressListener<T>
        Parameters:
        id - the id of the item that has completed processing.
        totalCount - the total number of items that have been submitted to the ConcurrentQ
        completedCount - the total number of items that completed processing.
      • progressModeChanged

        public void progressModeChanged​(long id,
                                        T item,
                                        boolean indeterminate)
        Description copied from interface: QProgressListener
        Notification that the progress mode has changed from/to indeterminate mode
        Specified by:
        progressModeChanged in interface QProgressListener<T>
        Parameters:
        id - the id of the item that has completed processing.
        item - the item that was being processed when the worker changed the max progress.
      • maxProgressChanged

        public void maxProgressChanged​(long id,
                                       T item,
                                       long maxProgress)
        Description copied from interface: QProgressListener
        Notification the the max progress value has changed.
        Specified by:
        maxProgressChanged in interface QProgressListener<T>
        Parameters:
        id - the id of the item that has completed processing.
        item - the item that was being processed when the worker changed the max progress.
        maxProgress - the max value of the progress for this task.
      • progressMessageChanged

        public void progressMessageChanged​(long id,
                                           T item,
                                           java.lang.String message)
        Specified by:
        progressMessageChanged in interface QProgressListener<T>
        Parameters:
        id - the id of the item that has completed processing.
        item - the item that was being processed when the worker changed the max progress.