public class ProgressMonitor extends Object
Constructor and Description |
---|
ProgressMonitor() |
Modifier and Type | Method and Description |
---|---|
void |
addProgressListener(ProgressListener l)
Add progress listener in progress monitor.
|
static ProgressMonitor |
getDefault()
Return default ProgressMonitor.
|
ArrayList<ProgressSource> |
getProgressSources()
Return a snapshot of the ProgressSource list
|
int |
getProgressUpdateThreshold()
Return update notification threshold
|
void |
registerSource(ProgressSource pi)
Register progress source when progress is began.
|
void |
removeProgressListener(ProgressListener l)
Remove progress listener from progress monitor.
|
static void |
setDefault(ProgressMonitor m)
Change default ProgressMonitor implementation.
|
static void |
setMeteringPolicy(ProgressMeteringPolicy policy)
Change progress metering policy.
|
boolean |
shouldMeterInput(URL url,
String method)
Return true if metering should be turned on
for a particular URL input stream.
|
void |
unregisterSource(ProgressSource pi)
Unregister progress source when progress is finished.
|
void |
updateProgress(ProgressSource pi)
Progress source is updated.
|
public void addProgressListener(ProgressListener l)
public static ProgressMonitor getDefault()
public ArrayList<ProgressSource> getProgressSources()
public int getProgressUpdateThreshold()
public void registerSource(ProgressSource pi)
public void removeProgressListener(ProgressListener l)
public static void setDefault(ProgressMonitor m)
public static void setMeteringPolicy(ProgressMeteringPolicy policy)
public boolean shouldMeterInput(URL url, String method)
public void unregisterSource(ProgressSource pi)
public void updateProgress(ProgressSource pi)