org.gudy.azureus2.ui.swt.progress
Class ProgressReporterWindow

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.progress.ProgressReporterWindow
All Implemented Interfaces:
java.util.EventListener, org.eclipse.swt.events.DisposeListener, org.eclipse.swt.internal.SWTEventListener, IProgressReportConstants, ITwistieListener

public class ProgressReporterWindow
extends java.lang.Object
implements IProgressReportConstants, ITwistieListener, org.eclipse.swt.events.DisposeListener


Field Summary
 
Fields inherited from interface org.gudy.azureus2.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
 
Method Summary
 void isCollapsed(boolean value)
          When any ProgressReporterPanel in this window is expanded or collapsed re-layout the controls and window appropriately
static boolean isOpened(IProgressReporter pReporter)
          Returns whether the given IProgressReporter is opened in any instance of this window; processes can query this method before opening another window to prevent opening multiple windows for the same reporter.
static boolean isShowingEmpty()
          Returns whether this window is already opened and is showing the empty panel
static void open(IProgressReporter[] pReporters, int style)
          Opens the window and display the given array of IProgressReporter's style could be one or more of these: IProgressReportConstants.NONE -- the default IProgressReportConstants.AUTO_CLOSE -- automatically disposes this panel when the given reporter is done IProgressReportConstants.MODAL -- this window will be application modal IProgressReportConstants.SHOW_TOOLBAR -- shows the toolbar for removing inactive reporters
static void open(IProgressReporter pReporter, int style)
          Opens the window and display the given IProgressReporter style could be one or more of these: IProgressReportConstants.NONE -- the default IProgressReportConstants.AUTO_CLOSE -- automatically disposes this panel when the given reporter is done IProgressReportConstants.MODAL -- this window will be application modal IProgressReportConstants.SHOW_TOOLBAR -- shows the toolbar for removing inactive reporters
 void widgetDisposed(org.eclipse.swt.events.DisposeEvent e)
          When any ProgressReporterPanel in this window is disposed re-layout the controls and window appropriately
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

open

public static void open(IProgressReporter pReporter,
                        int style)
Opens the window and display the given IProgressReporter style could be one or more of these:

Parameters:
pReporter -
style -

open

public static void open(IProgressReporter[] pReporters,
                        int style)
Opens the window and display the given array of IProgressReporter's style could be one or more of these:

Parameters:
pReporters -
style -

isShowingEmpty

public static boolean isShowingEmpty()
Returns whether this window is already opened and is showing the empty panel

Returns:

isOpened

public static boolean isOpened(IProgressReporter pReporter)
Returns whether the given IProgressReporter is opened in any instance of this window; processes can query this method before opening another window to prevent opening multiple windows for the same reporter. This is implemented explicitly instead of having the window automatically recycle instances because there are times when it is desirable to open a reporter in more than one instances of this window.

Parameters:
pReporter -
Returns:

isCollapsed

public void isCollapsed(boolean value)
When any ProgressReporterPanel in this window is expanded or collapsed re-layout the controls and window appropriately

Specified by:
isCollapsed in interface ITwistieListener

widgetDisposed

public void widgetDisposed(org.eclipse.swt.events.DisposeEvent e)
When any ProgressReporterPanel in this window is disposed re-layout the controls and window appropriately

Specified by:
widgetDisposed in interface org.eclipse.swt.events.DisposeListener