public class ProgressMonitor extends Object
Modifier and Type | Field and Description |
---|---|
static int |
OPERATION_ADD |
static int |
OPERATION_CALC_CRC |
static int |
OPERATION_EXTRACT |
static int |
OPERATION_MERGE |
static int |
OPERATION_NONE |
static int |
OPERATION_REMOVE |
static int |
RESULT_CANCELLED |
static int |
RESULT_ERROR |
static int |
RESULT_SUCCESS |
static int |
RESULT_WORKING |
static int |
STATE_BUSY |
static int |
STATE_READY |
Constructor and Description |
---|
ProgressMonitor() |
Modifier and Type | Method and Description |
---|---|
void |
cancelAllTasks() |
void |
endProgressMonitorError(Throwable e) |
void |
endProgressMonitorSuccess() |
void |
fullReset() |
int |
getCurrentOperation() |
Throwable |
getException() |
String |
getFileName() |
int |
getPercentDone() |
int |
getResult() |
int |
getState() |
long |
getTotalWork() |
long |
getWorkCompleted() |
boolean |
isCancelAllTasks() |
boolean |
isPause() |
void |
reset() |
void |
setCurrentOperation(int currentOperation) |
void |
setException(Throwable exception) |
void |
setFileName(String fileName) |
void |
setPause(boolean pause) |
void |
setPercentDone(int percentDone) |
void |
setResult(int result) |
void |
setState(int state) |
void |
setTotalWork(long totalWork) |
void |
updateWorkCompleted(long workCompleted) |
public static final int STATE_READY
public static final int STATE_BUSY
public static final int RESULT_SUCCESS
public static final int RESULT_WORKING
public static final int RESULT_ERROR
public static final int RESULT_CANCELLED
public static final int OPERATION_NONE
public static final int OPERATION_ADD
public static final int OPERATION_EXTRACT
public static final int OPERATION_REMOVE
public static final int OPERATION_CALC_CRC
public static final int OPERATION_MERGE
public int getState()
public void setState(int state)
public long getTotalWork()
public void setTotalWork(long totalWork)
public long getWorkCompleted()
public void updateWorkCompleted(long workCompleted)
public int getPercentDone()
public void setPercentDone(int percentDone)
public int getResult()
public void setResult(int result)
public String getFileName()
public void setFileName(String fileName)
public int getCurrentOperation()
public void setCurrentOperation(int currentOperation)
public Throwable getException()
public void setException(Throwable exception)
public void endProgressMonitorSuccess() throws ZipException
ZipException
public void endProgressMonitorError(Throwable e) throws ZipException
ZipException
public void reset()
public void fullReset()
public boolean isCancelAllTasks()
public void cancelAllTasks()
public boolean isPause()
public void setPause(boolean pause)
Copyright © 2013. All rights reserved.