Package com.metsci.glimpse.util.var2
Class ActivityListenableBasic
- java.lang.Object
-
- com.metsci.glimpse.util.var2.ActivityListenableBasic
-
- All Implemented Interfaces:
ActivityListenable
public class ActivityListenableBasic extends Object implements ActivityListenable
-
-
Field Summary
-
Fields inherited from interface com.metsci.glimpse.util.var2.ActivityListenable
ALL, COMPLETED
-
-
Constructor Summary
Constructors Constructor Description ActivityListenableBasic()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Disposable
addListener(Set<? extends ListenerFlag> flags, ActivityListener listener)
Listenable
all()
Includes notifications for both ongoing and completed events.Listenable
completed()
Includes notifications for completed events only.void
fire(boolean ongoing)
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.metsci.glimpse.util.var2.ActivityListenable
addListener, addListener, addListener, addListener, addListener
-
-
-
-
Method Detail
-
fire
public void fire(boolean ongoing)
-
completed
public Listenable completed()
Description copied from interface:ActivityListenable
Includes notifications for completed events only.- Specified by:
completed
in interfaceActivityListenable
-
all
public Listenable all()
Description copied from interface:ActivityListenable
Includes notifications for both ongoing and completed events.- Specified by:
all
in interfaceActivityListenable
-
addListener
public Disposable addListener(Set<? extends ListenerFlag> flags, ActivityListener listener)
- Specified by:
addListener
in interfaceActivityListenable
-
-