com.bbn.openmap.event
Class ProgressSupport

java.lang.Object
  extended by java.util.concurrent.CopyOnWriteArrayList<E>
      extended by com.bbn.openmap.event.ListenerSupport<ProgressListener>
          extended by com.bbn.openmap.event.ProgressSupport
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<ProgressListener>, java.util.Collection<ProgressListener>, java.util.List<ProgressListener>, java.util.RandomAccess

public class ProgressSupport
extends ListenerSupport<ProgressListener>

This is a utility class that can be used by beans that need support for handling ProgressListeners and firing ProgressEvents. You can use an instance of this class as a member field of your bean and delegate work to it.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.bbn.openmap.event.ListenerSupport
source
 
Constructor Summary
ProgressSupport(java.lang.Object sourceBean)
          Construct a ProgressSupport.
 
Method Summary
 void fireUpdate(int type, java.lang.String taskname, float finishedValue, float currentValue)
          Send a layer event to all registered listeners.
 
Methods inherited from class com.bbn.openmap.event.ListenerSupport
add, add, addAll, clear, getSource, iterator, listIterator, remove, remove, set, setSource, size
 
Methods inherited from class java.util.concurrent.CopyOnWriteArrayList
addAll, addAllAbsent, addIfAbsent, clone, contains, containsAll, equals, get, hashCode, indexOf, indexOf, isEmpty, lastIndexOf, lastIndexOf, listIterator, removeAll, retainAll, subList, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProgressSupport

public ProgressSupport(java.lang.Object sourceBean)
Construct a ProgressSupport.

Parameters:
sourceBean - The bean to be given as the source for any events.
Method Detail

fireUpdate

public void fireUpdate(int type,
                       java.lang.String taskname,
                       float finishedValue,
                       float currentValue)
Send a layer event to all registered listeners.

Parameters:
taskname - the description of the task
finishedValue - the completed value
currentValue - the currentValue


Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details