Package com.biglybt.ui.swt.mainwindow
Class MainStatusBar.ProgressListener
- java.lang.Object
-
- com.biglybt.ui.swt.mainwindow.MainStatusBar.ProgressListener
-
- All Implemented Interfaces:
IProgressReportConstants
,IProgressReportingListener
- Enclosing class:
- MainStatusBar
private class MainStatusBar.ProgressListener extends java.lang.Object implements IProgressReportingListener
A listener that listens to any changes notified from theProgressReportingManager
and accordingly update the progress bar and/or the status text area.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
lastProgressImageID
private java.util.Set<IProgressReporter>
pending_updates
-
Fields inherited from interface com.biglybt.ui.swt.progress.IProgressReportConstants
AUTO_CLOSE, BORDER, MANAGER_EVENT_ADDED, MANAGER_EVENT_REMOVED, MANAGER_EVENT_UPDATED, MODAL, MSG_TYPE_ERROR, MSG_TYPE_INFO, MSG_TYPE_LOG, NONE, REPORT_TYPE_CANCEL, REPORT_TYPE_DISPOSED, REPORT_TYPE_DONE, REPORT_TYPE_ERROR, REPORT_TYPE_INIT, REPORT_TYPE_MODE_CHANGE, REPORT_TYPE_PROPERTY_CHANGED, REPORT_TYPE_RETRY, REPORTER_TYPE_DEFAULT, REPORTER_VISIBILITY_SYSTEM, REPORTER_VISIBILITY_USER, RETVAL_OK, RETVAL_OK_TO_DISPOSE, SHOW_TOOLBAR, STANDALONE
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ProgressListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
reporting(int eventType, IProgressReporter reporter)
Notify that some event has happenedprivate int
swt_reporting(int eventType, IProgressReporter reporter)
private void
swt_setProgressImage()
private void
swt_update(IProgressReport pReport)
private void
swt_updateFromPrevious()
private void
swt_updateProgressBarDisplay(IProgressReport pReport)
-
-
-
Field Detail
-
lastProgressImageID
private java.lang.String lastProgressImageID
-
pending_updates
private java.util.Set<IProgressReporter> pending_updates
-
-
Method Detail
-
swt_updateProgressBarDisplay
private void swt_updateProgressBarDisplay(IProgressReport pReport)
-
swt_setProgressImage
private void swt_setProgressImage()
-
reporting
public int reporting(int eventType, IProgressReporter reporter)
Description copied from interface:IProgressReportingListener
Notify that some event has happened- Specified by:
reporting
in interfaceIProgressReportingListener
reporter
- TheProgressReporter
that reported the change;- Returns:
-
swt_reporting
private int swt_reporting(int eventType, IProgressReporter reporter)
-
swt_update
private void swt_update(IProgressReport pReport)
-
swt_updateFromPrevious
private void swt_updateFromPrevious()
-
-