public class PleaseWaitProgressMonitor extends AbstractProgressMonitor
Modifier and Type | Class and Description |
---|---|
static interface |
PleaseWaitProgressMonitor.ProgressMonitorDialog
Implemented by both foreground dialog and background progress dialog (in status bar)
|
AbstractProgressMonitor.State
ProgressMonitor.CancelListener
Modifier and Type | Field and Description |
---|---|
private boolean |
cancelable |
private ActionListener |
cancelListener |
private int |
currentProgressValue |
private String |
customText |
private PleaseWaitDialog |
dialog |
private Window |
dialogParent |
private ActionListener |
inBackgroundListener |
private boolean |
indeterminate |
private boolean |
isInBackground |
static int |
PROGRESS_BAR_MAX |
protected ProgressTaskId |
taskId |
private String |
title |
private WindowListener |
windowListener |
private String |
windowTitle |
state, ticks, ticksCount
ALL_TICKS, DEFAULT_TICKS
Constructor and Description |
---|
PleaseWaitProgressMonitor() |
PleaseWaitProgressMonitor(Component dialogParent) |
PleaseWaitProgressMonitor(Component dialogParent,
String windowTitle) |
PleaseWaitProgressMonitor(String windowTitle) |
Modifier and Type | Method and Description |
---|---|
void |
appendLogMessage(String message)
Default implementation is empty.
|
void |
close() |
void |
doBeginTask() |
void |
doFinishTask() |
private void |
doInEDT(Runnable runnable) |
protected void |
doSetCustomText(String title) |
protected void |
doSetIntermediate(boolean value) |
protected void |
doSetTitle(String title) |
private PleaseWaitProgressMonitor.ProgressMonitorDialog |
getDialog() |
ProgressTaskId |
getProgressTaskId()
Returns the task ID of the progress dialog
Should be used only by PleaseWaitRunnable
|
Component |
getWindowParent()
Return the parent windows of progress dialog
|
boolean |
isCancelable() |
void |
reset() |
void |
setCancelable(boolean cancelable) |
private void |
setDialogVisible(boolean visible) |
void |
setProgressTaskId(ProgressTaskId taskId)
Set the task ID of the progress dialog
Should be used only by PleaseWaitRunnable.
|
void |
showForegroundDialog() |
protected void |
updateProgress(double progressValue) |
addCancelListener, beginTask, beginTask, cancel, checkState, childFinished, childSetCustomText, childSetIntermediate, childSetProgress, childSetTitle, createSubTaskMonitor, finishTask, getTicks, getTicksCount, indeterminateSubTask, invalidate, isCanceled, removeCancelListener, setCustomText, setExtraText, setTicks, setTicksCount, subTask, worked
public static final int PROGRESS_BAR_MAX
private final Window dialogParent
private int currentProgressValue
private String customText
private boolean indeterminate
private boolean isInBackground
private PleaseWaitDialog dialog
private String windowTitle
protected ProgressTaskId taskId
private boolean cancelable
private ActionListener cancelListener
private ActionListener inBackgroundListener
private WindowListener windowListener
public PleaseWaitProgressMonitor()
public PleaseWaitProgressMonitor(String windowTitle)
public PleaseWaitProgressMonitor(Component dialogParent)
public PleaseWaitProgressMonitor(Component dialogParent, String windowTitle)
private void setDialogVisible(boolean visible)
private PleaseWaitProgressMonitor.ProgressMonitorDialog getDialog()
public final boolean isCancelable()
public final void setCancelable(boolean cancelable)
public void doBeginTask()
doBeginTask
in class AbstractProgressMonitor
public void doFinishTask()
doFinishTask
in class AbstractProgressMonitor
protected void updateProgress(double progressValue)
updateProgress
in class AbstractProgressMonitor
protected void doSetCustomText(String title)
doSetCustomText
in class AbstractProgressMonitor
protected void doSetTitle(String title)
doSetTitle
in class AbstractProgressMonitor
protected void doSetIntermediate(boolean value)
doSetIntermediate
in class AbstractProgressMonitor
public void appendLogMessage(String message)
AbstractProgressMonitor
appendLogMessage
in interface ProgressMonitor
appendLogMessage
in class AbstractProgressMonitor
message
- the log message. Ignored if null or white space only.public void reset()
public void close()
public void showForegroundDialog()
public void setProgressTaskId(ProgressTaskId taskId)
ProgressMonitor
<> null
then "In background" button will be showntaskId
- the task IDpublic ProgressTaskId getProgressTaskId()
ProgressMonitor
public Component getWindowParent()
ProgressMonitor