Package docking.widgets.table.threaded
Class ThreadedTableModelWorkerListener<T>
- java.lang.Object
-
- docking.widgets.table.threaded.ThreadedTableModelWorkerListener<T>
-
- All Implemented Interfaces:
QProgressListener<T>
public class ThreadedTableModelWorkerListener<T> extends java.lang.Object implements QProgressListener<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 modevoid
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.
-
-
-
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 interfaceQProgressListener<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 interfaceQProgressListener<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 interfaceQProgressListener<T>
- Parameters:
id
- the id of the item that has completed processing.totalCount
- the total number of items that have been submitted to the ConcurrentQcompletedCount
- 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 interfaceQProgressListener<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 interfaceQProgressListener<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 interfaceQProgressListener<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.
-
-