Package com.biglybt.core
Class CoreOperationTask.ProgressCallbackAdapter
- java.lang.Object
-
- com.biglybt.core.CoreOperationTask.ProgressCallbackAdapter
-
- All Implemented Interfaces:
CoreOperationTask.ProgressCallback
,java.lang.Comparable<CoreOperationTask.ProgressCallback>
- Direct Known Subclasses:
DiskManagerAllocationScheduler.AllocationInstance.Callback
,DiskManagerRecheckScheduler.DiskManagerRecheckInstance.Callback
- Enclosing interface:
- CoreOperationTask
public static class CoreOperationTask.ProgressCallbackAdapter extends java.lang.Object implements CoreOperationTask.ProgressCallback
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
auto_pause
private int
order
private long
size
private java.lang.String
subtask
private int
thousandths
-
Fields inherited from interface com.biglybt.core.CoreOperationTask.ProgressCallback
ST_BUTTONS, ST_CANCEL, ST_NONE, ST_PAUSE, ST_QUEUED, ST_RESUME, ST_SUBTASKS, STYLE_MODAL, STYLE_NO_CLOSE, STYLE_NONE
-
-
Constructor Summary
Constructors Constructor Description ProgressCallbackAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(CoreOperationTask.ProgressCallback o)
int
getOrder()
int
getProgress()
long
getSize()
java.lang.String
getSubTaskName()
int
getSupportedTaskStates()
int
getTaskState()
boolean
isAutoPause()
void
setAutoPause(boolean b)
void
setOrder(int _order)
void
setProgress(int _thousandths)
void
setSize(long _size)
void
setSubTaskName(java.lang.String name)
void
setTaskState(int state)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.biglybt.core.CoreOperationTask.ProgressCallback
getDelay, getStyle
-
-
-
-
Method Detail
-
getProgress
public int getProgress()
- Specified by:
getProgress
in interfaceCoreOperationTask.ProgressCallback
-
setProgress
public void setProgress(int _thousandths)
- Specified by:
setProgress
in interfaceCoreOperationTask.ProgressCallback
-
getSize
public long getSize()
- Specified by:
getSize
in interfaceCoreOperationTask.ProgressCallback
-
setSize
public void setSize(long _size)
- Specified by:
setSize
in interfaceCoreOperationTask.ProgressCallback
-
getSubTaskName
public java.lang.String getSubTaskName()
- Specified by:
getSubTaskName
in interfaceCoreOperationTask.ProgressCallback
-
setSubTaskName
public void setSubTaskName(java.lang.String name)
- Specified by:
setSubTaskName
in interfaceCoreOperationTask.ProgressCallback
-
isAutoPause
public boolean isAutoPause()
- Specified by:
isAutoPause
in interfaceCoreOperationTask.ProgressCallback
-
setAutoPause
public void setAutoPause(boolean b)
- Specified by:
setAutoPause
in interfaceCoreOperationTask.ProgressCallback
-
getOrder
public int getOrder()
- Specified by:
getOrder
in interfaceCoreOperationTask.ProgressCallback
-
setOrder
public void setOrder(int _order)
- Specified by:
setOrder
in interfaceCoreOperationTask.ProgressCallback
-
getSupportedTaskStates
public int getSupportedTaskStates()
- Specified by:
getSupportedTaskStates
in interfaceCoreOperationTask.ProgressCallback
-
setTaskState
public void setTaskState(int state)
- Specified by:
setTaskState
in interfaceCoreOperationTask.ProgressCallback
-
getTaskState
public int getTaskState()
- Specified by:
getTaskState
in interfaceCoreOperationTask.ProgressCallback
-
compareTo
public int compareTo(CoreOperationTask.ProgressCallback o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<CoreOperationTask.ProgressCallback>
-
-