org.kuali.common.threads.listener
Class ProgressNotifier<T>

java.lang.Object
  extended by org.kuali.common.threads.listener.ProgressNotifier<T>

public class ProgressNotifier<T>
extends Object

Keeps track of overall progress towards a goal. Notifies its listener whenever progress has occurred. Also notifies the listener when progress starts and completes.


Constructor Summary
ProgressNotifier()
           
 
Method Summary
 ProgressListener<T> getListener()
           
 int getProgress()
           
 int getTotal()
           
 void notify(ProgressEvent<T> event)
           
 void setListener(ProgressListener<T> listener)
           
 void setTotal(int total)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgressNotifier

public ProgressNotifier()
Method Detail

getProgress

public int getProgress()

notify

public void notify(ProgressEvent<T> event)

getListener

public ProgressListener<T> getListener()

setListener

public void setListener(ProgressListener<T> listener)

getTotal

public int getTotal()

setTotal

public void setTotal(int total)


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.