public class ProgressMonitor
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
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 |
构造器和说明 |
---|
ProgressMonitor() |
限定符和类型 | 方法和说明 |
---|---|
void |
cancelAllTasks() |
void |
endProgressMonitorError(java.lang.Throwable e) |
void |
endProgressMonitorSuccess() |
void |
fullReset() |
int |
getCurrentOperation() |
java.lang.Throwable |
getException() |
java.lang.String |
getFileName() |
int |
getPercentDone() |
int |
getResult() |
int |
getState() |
long |
getTotalWork() |
long |
getWorkCompleted() |
boolean |
isCancelAllTasks() |
boolean |
isPause() |
void |
reset() |
void |
setCurrentOperation(int currentOperation) |
void |
setException(java.lang.Throwable exception) |
void |
setFileName(java.lang.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 java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
public int getCurrentOperation()
public void setCurrentOperation(int currentOperation)
public java.lang.Throwable getException()
public void setException(java.lang.Throwable exception)
public void endProgressMonitorSuccess() throws ZipException
ZipException
public void endProgressMonitorError(java.lang.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)