com.partnersoft.gui
Class ActivityProgressControl

java.lang.Object
  extended by com.partnersoft.gui.ActivityProgressControl
All Implemented Interfaces:
ActivityProgressListener, GUIControl, java.util.EventListener

public class ActivityProgressControl
extends java.lang.Object
implements GUIControl, ActivityProgressListener

A GUI to monitor an ActivityProgress object.

Author:
Paul Reavis Copyright 2004 Partner Software, Inc.

Constructor Summary
ActivityProgressControl()
           
 
Method Summary
 void activityChanged(java.lang.String mainDescription, int levels)
           
 void cancelWork()
           
 void descriptionChanged(int level, java.lang.String description, int totalSize)
           
 javax.swing.JComponent getGUI()
           
 void progressWasMade(int level, int howMuch)
           
 void setWorker(ActivityProgressWorker worker)
           
 void startWork()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivityProgressControl

public ActivityProgressControl()
Method Detail

activityChanged

public void activityChanged(java.lang.String mainDescription,
                            int levels)
Specified by:
activityChanged in interface ActivityProgressListener

descriptionChanged

public void descriptionChanged(int level,
                               java.lang.String description,
                               int totalSize)
Specified by:
descriptionChanged in interface ActivityProgressListener

progressWasMade

public void progressWasMade(int level,
                            int howMuch)
Specified by:
progressWasMade in interface ActivityProgressListener

getGUI

public javax.swing.JComponent getGUI()
Specified by:
getGUI in interface GUIControl

setWorker

public void setWorker(ActivityProgressWorker worker)

startWork

public void startWork()

cancelWork

public void cancelWork()