public class EmptyProgressStatus extends java.lang.Object implements ProgressStatus
| Modifier | Constructor and Description |
|---|---|
protected |
EmptyProgressStatus()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getCurrent()
Get current progress value.
|
static EmptyProgressStatus |
getDefault() |
java.lang.String |
getDescription()
Get progress description.
|
long |
getMax()
Get progress maximum value.
|
long |
getMin()
Get progress minimum value.
|
int |
getPercentage()
Get completed percentage.
|
void |
increase()
Increment progress current value.
|
void |
init(java.lang.String description,
long max)
Initialize progress.
|
void |
init(java.lang.String description,
long min,
long max)
Initialize progress.
|
void |
init(java.lang.String description,
long min,
long max,
long cur)
Initialize progress.
|
boolean |
isCancel() |
boolean |
isCompleted()
Checks if progress status completed.
|
boolean |
isIndeterminate()
Checks if progres status is indeterminate,
|
boolean |
isLocked()
Check if progress status is locked.
|
void |
reset()
Reset progress status.
|
void |
setCancel(boolean cancel)
Call this when want current operation be canceled.
|
void |
setCurrent(long cur)
Set progress current value.
|
void |
setDescription(java.lang.String description)
Set progress description.
|
void |
setIndeterminate(boolean ind)
Set progress status as indeterminate.
|
void |
setLocked(boolean lock)
Lock the progress status.
|
void |
setMax(long max)
Set progress maximum value.
|
void |
setMin(long min)
Set progress minimum value.
|
public void setMin(long min)
ProgressStatussetMin in interface ProgressStatuspublic void setMax(long max)
ProgressStatussetMax in interface ProgressStatuspublic void setCurrent(long cur)
ProgressStatussetCurrent in interface ProgressStatuspublic void setDescription(java.lang.String description)
ProgressStatussetDescription in interface ProgressStatuspublic int getPercentage()
ProgressStatusgetPercentage in interface ProgressStatuspublic long getMin()
ProgressStatusgetMin in interface ProgressStatuspublic long getMax()
ProgressStatusgetMax in interface ProgressStatuspublic long getCurrent()
ProgressStatusgetCurrent in interface ProgressStatuspublic java.lang.String getDescription()
ProgressStatusgetDescription in interface ProgressStatuspublic void reset()
ProgressStatusreset in interface ProgressStatuspublic void increase()
ProgressStatusincrease in interface ProgressStatuspublic void init(java.lang.String description,
long min,
long max,
long cur)
ProgressStatusinit in interface ProgressStatusdescription - progress description.min - minimum value.max - maximum value.cur - current value.public void init(java.lang.String description,
long min,
long max)
ProgressStatusinit in interface ProgressStatusdescription - progress description.min - minimum value.max - maximum value.public void init(java.lang.String description,
long max)
ProgressStatusinit in interface ProgressStatusdescription - progress description.max - maximum value.public boolean isCompleted()
ProgressStatusisCompleted in interface ProgressStatuspublic void setIndeterminate(boolean ind)
ProgressStatussetIndeterminate in interface ProgressStatuspublic boolean isIndeterminate()
ProgressStatusisIndeterminate in interface ProgressStatuspublic void setLocked(boolean lock)
ProgressStatussetLocked in interface ProgressStatuspublic boolean isLocked()
ProgressStatusisLocked in interface ProgressStatuspublic boolean isCancel()
isCancel in interface ProgressStatuspublic void setCancel(boolean cancel)
ProgressStatussetCancel in interface ProgressStatuscancel - new cancel value.public static EmptyProgressStatus getDefault()