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.StateProgressMonitor.CancelListener| Modifier and Type | Field and Description |
|---|---|
private boolean |
cancelable |
private ActionListener |
cancelListener |
private int |
currentProgressValue |
private String |
customText |
private PleaseWaitDialog |
dialog |
private Component |
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 |
stateALL_TICKS, DEFAULT_TICKS| Constructor and Description |
|---|
PleaseWaitProgressMonitor()
Constructs a new
PleaseWaitProgressMonitor. |
PleaseWaitProgressMonitor(Component dialogParent)
Constructs a new
PleaseWaitProgressMonitor. |
PleaseWaitProgressMonitor(Component dialogParent,
String windowTitle)
Constructs a new
PleaseWaitProgressMonitor. |
PleaseWaitProgressMonitor(String windowTitle)
Constructs a new
PleaseWaitProgressMonitor. |
| Modifier and Type | Method and Description |
|---|---|
void |
appendLogMessage(String message)
Default implementation is empty.
|
void |
close() |
void |
doBeginTask() |
void |
doFinishTask() |
private static 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, workedpublic static final int PROGRESS_BAR_MAX
private final Component 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 final ActionListener cancelListener
private final ActionListener inBackgroundListener
private final WindowListener windowListener
public PleaseWaitProgressMonitor()
PleaseWaitProgressMonitor.public PleaseWaitProgressMonitor(String windowTitle)
PleaseWaitProgressMonitor.windowTitle - window titlepublic PleaseWaitProgressMonitor(Component dialogParent)
PleaseWaitProgressMonitor.dialogParent - component to get parent frame frompublic PleaseWaitProgressMonitor(Component dialogParent, String windowTitle)
PleaseWaitProgressMonitor.dialogParent - component to get parent frame fromwindowTitle - window titleprivate void setDialogVisible(boolean visible)
private PleaseWaitProgressMonitor.ProgressMonitorDialog getDialog()
public final boolean isCancelable()
public final void setCancelable(boolean cancelable)
public void doBeginTask()
doBeginTask in class AbstractProgressMonitorpublic void doFinishTask()
doFinishTask in class AbstractProgressMonitorprotected void updateProgress(double progressValue)
updateProgress in class AbstractProgressMonitorprotected void doSetCustomText(String title)
doSetCustomText in class AbstractProgressMonitorprotected void doSetTitle(String title)
doSetTitle in class AbstractProgressMonitorprotected void doSetIntermediate(boolean value)
doSetIntermediate in class AbstractProgressMonitorpublic void appendLogMessage(String message)
AbstractProgressMonitorappendLogMessage in interface ProgressMonitorappendLogMessage in class AbstractProgressMonitormessage - 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()
ProgressMonitorpublic Component getWindowParent()
ProgressMonitor