DESY ACOP Beans Home

com.cosylab.gui.components
Class ProgressDialog.StateListener

java.lang.Object
  extended by com.cosylab.gui.components.ProgressDialog.StateListener
All Implemented Interfaces:
ProgressListener
Enclosing class:
ProgressDialog

protected class ProgressDialog.StateListener
extends java.lang.Object
implements ProgressListener

Listens for status updates from thread implementing ProgressMonitor and updates interface accordingly.


Constructor Summary
protected ProgressDialog.StateListener()
           
 
Method Summary
 void progress(ProgressEvent e)
          Updates GUI with new progress value.
 void taskComplete(ProgressEvent e)
          Hides the dialog.
 void taskInterruped(ProgressEvent e)
          Hides the dialog.
 void taskStarted(ProgressEvent e)
          No action, since dialog is expected to be already visible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgressDialog.StateListener

protected ProgressDialog.StateListener()
Method Detail

progress

public void progress(ProgressEvent e)
Updates GUI with new progress value.

Specified by:
progress in interface ProgressListener
Parameters:
e - event.

taskComplete

public void taskComplete(ProgressEvent e)
Hides the dialog.

Specified by:
taskComplete in interface ProgressListener
Parameters:
e - event.

taskInterruped

public void taskInterruped(ProgressEvent e)
Hides the dialog.

Specified by:
taskInterruped in interface ProgressListener
Parameters:
e - event.

taskStarted

public void taskStarted(ProgressEvent e)
No action, since dialog is expected to be already visible.

Specified by:
taskStarted in interface ProgressListener
Parameters:
e - event.


Copyright © 2010. All Rights Reserved.