public class ProgressController extends Object
ProgressController| Modifier and Type | Field and Description |
|---|---|
static int |
UNKNOWN_STEPS
Defines unknown number of steps for a progress
|
| Constructor and Description |
|---|
ProgressController() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clear()
Removes all listeners
|
static void |
deregister(ProgressListener pl)
Deregisters a listener to recieve the progress of all classes.
|
static void |
deregister(ProgressListener pl,
Class<?> c)
Deregisters a listener to recieve the progress of a concrete class.
|
static void |
finish(Class<?> c)
Finishes the progress of a task.
|
static void |
init(Class<?> c,
String info,
int numberOfSteps)
Notifies to all the listeners of a class that the progress is begining.
|
static void |
register(ProgressListener pl)
Registers a listener to recieve the progress of all classes.
|
static void |
register(ProgressListener pl,
Class<?> c)
Registers a listener to recieve the progress of a concrete class.
|
static void |
step(Class<?> c)
Notifies a new step in the task for a concrete class.
|
public static final int UNKNOWN_STEPS
public ProgressController()
public static void clear()
public static void register(ProgressListener pl, Class<?> c)
public static void register(ProgressListener pl)
public static void deregister(ProgressListener pl, Class<?> c)
public static void deregister(ProgressListener pl)
public static void init(Class<?> c, String info, int numberOfSteps)
c - Class that notifies the progress.info - Some info about the progress.numberOfSteps - Number of steps of the task. If unknown it must be -1.Copyright © 2018 Group of Artificial Intelligence Applications (GAIA). All rights reserved.