de.vxart.zipupdate.ui
Class MultiProgressDialog

java.lang.Object
  extended by de.vxart.zipupdate.ui.MultiProgressDialog
All Implemented Interfaces:
MultiProgressListener, ProgressListener

public class MultiProgressDialog
extends java.lang.Object
implements MultiProgressListener

Author:
Philipp Reichart, philipp.reichart@vxart.de

Constructor Summary
MultiProgressDialog()
           
 
Method Summary
 void finish()
          Finishes the display of progress by a progress listener, e.g.
 ProgressListener getOverallProgressListener()
           
 int getProgress()
          Returns the latest value set by the update method.
 void init(java.lang.String message)
          Sets or resets this listener to indeterminate mode and labels it with the given message.
 void init(java.lang.String message, int min, int max)
          Sets or resets this listener to determinate mode using the specified message, minimum and maximum values.
 void label(java.lang.String message)
          Labels the current task with the specified string.
 void update(int value)
          Updates the progress to the specified value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiProgressDialog

public MultiProgressDialog()
Method Detail

init

public void init(java.lang.String message)
Description copied from interface: ProgressListener
Sets or resets this listener to indeterminate mode and labels it with the given message. Indeterminate mode is used for tasks of unknown length.

Specified by:
init in interface ProgressListener

init

public void init(java.lang.String message,
                 int min,
                 int max)
Description copied from interface: ProgressListener
Sets or resets this listener to determinate mode using the specified message, minimum and maximum values.

Specified by:
init in interface ProgressListener

update

public void update(int value)
Description copied from interface: ProgressListener
Updates the progress to the specified value. Implementations may rely on this happening in order to provide advanced progress information, therefore the caller should update continously and not "jump"around.

Specified by:
update in interface ProgressListener
Parameters:
value - the new progress value

label

public void label(java.lang.String message)
Description copied from interface: ProgressListener
Labels the current task with the specified string.

Specified by:
label in interface ProgressListener
Parameters:
message - a label describing the current task

getProgress

public int getProgress()
Description copied from interface: ProgressListener
Returns the latest value set by the update method.

Specified by:
getProgress in interface ProgressListener
Returns:
the current progress value

finish

public void finish()
Description copied from interface: ProgressListener
Finishes the display of progress by a progress listener, e.g. by closing a progress dialog.

Specified by:
finish in interface ProgressListener

getOverallProgressListener

public ProgressListener getOverallProgressListener()
Specified by:
getOverallProgressListener in interface MultiProgressListener