public class ProgressMonitorAdapter extends Object implements IProgressMonitorIF
Constructor and Description |
---|
ProgressMonitorAdapter(Component parent,
String statusMessage,
String note,
int minimum,
int maximum,
int currentValue) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Sends cancel message to monitored task.
|
void |
close()
Closes associated GUI component
|
int |
getCurrentStep() |
int |
getInitialStep() |
int |
getLastStep() |
boolean |
isCanceled()
Returns if has received cancel message
|
boolean |
isIndeterminated() |
void |
open()
Sets associated gui component visible
|
void |
setBarString(String barString)
Sets complementary text to progress bar.
|
void |
setBarStringDrawed(boolean stringDrawed)
Sets if the progress bar associated to monitor
must draw a complementary text to progress bar
|
void |
setCurrentStep(int step)
sets current step number of the task
monitored
|
void |
setIndeterminated(boolean indeterminated)
Sets if the monitored task is defined (known
number of steps) or undefined (unknown)
|
void |
setInitialStep(int step)
sets initial step number of the task
monitored
|
void |
setLastStep(int step)
sets final step number of the task
monitored
|
void |
setMainTitleLabel(String text)
Set main text of GUI component
|
void |
setNote(String note) |
void |
taskInBackground() |
public void setInitialStep(int step)
IProgressMonitorIF
setInitialStep
in interface IProgressMonitorIF
public void setLastStep(int step)
IProgressMonitorIF
setLastStep
in interface IProgressMonitorIF
public void setCurrentStep(int step)
IProgressMonitorIF
setCurrentStep
in interface IProgressMonitorIF
public int getInitialStep()
getInitialStep
in interface IProgressMonitorIF
public int getLastStep()
getLastStep
in interface IProgressMonitorIF
public int getCurrentStep()
getCurrentStep
in interface IProgressMonitorIF
public void setIndeterminated(boolean indeterminated)
IProgressMonitorIF
setIndeterminated
in interface IProgressMonitorIF
public boolean isIndeterminated()
isIndeterminated
in interface IProgressMonitorIF
public void setBarStringDrawed(boolean stringDrawed)
IProgressMonitorIF
setBarStringDrawed
in interface IProgressMonitorIF
public void setBarString(String barString)
IProgressMonitorIF
setBarString
in interface IProgressMonitorIF
public void setMainTitleLabel(String text)
IProgressMonitorIF
setMainTitleLabel
in interface IProgressMonitorIF
public void setNote(String note)
setNote
in interface IProgressMonitorIF
public void cancel()
IProgressMonitorIF
cancel
in interface IProgressMonitorIF
public boolean isCanceled()
IProgressMonitorIF
isCanceled
in interface IProgressMonitorIF
public void taskInBackground()
public void close()
IProgressMonitorIF
close
in interface IProgressMonitorIF
public void open()
IProgressMonitorIF
open
in interface IProgressMonitorIF