public class ProgressMonitor extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ProgressMonitor.Result |
static class |
ProgressMonitor.State |
static class |
ProgressMonitor.Task |
Constructor and Description |
---|
ProgressMonitor() |
Modifier and Type | Method and Description |
---|---|
void |
endProgressMonitor() |
void |
endProgressMonitor(Exception e) |
void |
fullReset() |
ProgressMonitor.Task |
getCurrentTask() |
Exception |
getException() |
String |
getFileName() |
int |
getPercentDone() |
ProgressMonitor.Result |
getResult() |
ProgressMonitor.State |
getState() |
long |
getTotalWork() |
long |
getWorkCompleted() |
boolean |
isCancelAllTasks() |
boolean |
isPause() |
void |
setCancelAllTasks(boolean cancelAllTasks) |
void |
setCurrentTask(ProgressMonitor.Task currentTask) |
void |
setException(Exception exception) |
void |
setFileName(String fileName) |
void |
setPause(boolean pause) |
void |
setPercentDone(int percentDone) |
void |
setResult(ProgressMonitor.Result result) |
void |
setState(ProgressMonitor.State state) |
void |
setTotalWork(long totalWork) |
void |
updateWorkCompleted(long workCompleted) |
public void updateWorkCompleted(long workCompleted)
public void endProgressMonitor()
public void endProgressMonitor(Exception e)
public void fullReset()
public ProgressMonitor.State getState()
public void setState(ProgressMonitor.State state)
public long getTotalWork()
public void setTotalWork(long totalWork)
public long getWorkCompleted()
public int getPercentDone()
public void setPercentDone(int percentDone)
public ProgressMonitor.Task getCurrentTask()
public void setCurrentTask(ProgressMonitor.Task currentTask)
public String getFileName()
public void setFileName(String fileName)
public ProgressMonitor.Result getResult()
public void setResult(ProgressMonitor.Result result)
public Exception getException()
public void setException(Exception exception)
public boolean isCancelAllTasks()
public void setCancelAllTasks(boolean cancelAllTasks)
public boolean isPause()
public void setPause(boolean pause)
Copyright © 2022. All rights reserved.