sam.ui.text
Class ProgressEventListener

java.lang.Object
  |
  +--sam.ui.text.ProgressEventListener
All Implemented Interfaces:
ProgressEventListener

public class ProgressEventListener
extends java.lang.Object
implements ProgressEventListener

Text-based progress event listener This outputs progress information one line per entry.


Method Summary
protected static java.lang.String getProgressBar(float achievedPercentage)
          Gets text-based a progress bar corresponding to specified achieved percentage
 void progress(sam.event.ProgressEvent event)
          This outputs progress information one line per entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

progress

public void progress(sam.event.ProgressEvent event)
This outputs progress information one line per entry. The actual output is apt-get alike:

 mydir/mydir/myfile1: 831kB (-31%) at 123kB/s
 

Specified by:
progress in interface ProgressEventListener

getProgressBar

protected static java.lang.String getProgressBar(float achievedPercentage)
Gets text-based a progress bar corresponding to specified achieved percentage