public class ProgressPanel extends Object implements IProgressReport, ActionListener
| Constructor and Description |
|---|
ProgressPanel()
Constructor for modal implementation.
|
ProgressPanel(VirtualSessionManager vsm)
Creates and displays the progress panel, without cancel listener.
|
ProgressPanel(VirtualSessionManager vsm,
Runnable cancelListener)
Creates and displays the progress panel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e)
The cancel button listener.
|
void |
allowCancel(boolean allow)
Make it possible/impossible to cancel the current task.
|
IFeedBack |
beginWork(String text,
int count)
Creates monitor and begins work.
|
void |
destroy()
Destroys the progress panel.
|
ProgressMonitor |
getMonitor()
Gets a new monitor.
|
boolean |
isCanceled()
Checks if it is canceled.
|
static boolean |
isPresent()
Checks if the progress dialog is present.
|
void |
setIndeterminate()
Sets the progress bar to indeterminate.
|
void |
setOperation(String text,
String param)
Sets the current operation.
|
void |
setProgress(int currentOperation,
int totalOperations)
Sets the progress bar.
|
void |
setVerbose(boolean on)
Sets the verbose mode.
|
public ProgressPanel()
public ProgressPanel(VirtualSessionManager vsm)
vsm - The Virtual Session Manager.public ProgressPanel(VirtualSessionManager vsm, Runnable cancelListener)
vsm - The Virtual Session Manager.cancelListener - Cancel listener, or null for none.public static boolean isPresent()
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void setIndeterminate()
public void setProgress(int currentOperation,
int totalOperations)
setProgress in interface IProgressReportcurrentOperation - The current operation count.totalOperations - The total number of operations: if this value is zero or less, then the progress bar will be indeterminate.public void setOperation(String text, String param)
setOperation in interface IProgressReportpublic void destroy()
public void allowCancel(boolean allow)
allow - Flag to allow cancel of progress or not.public boolean isCanceled()
isCanceled in interface ICancelpublic ProgressMonitor getMonitor()
public void setVerbose(boolean on)
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.