gecco.client.dialogs
Class LoadingInfo
java.lang.Object
|
+--gecco.client.dialogs.LoadingInfo
- public class LoadingInfo
- extends Object
This class supplies a modal dialog box that indicates that something is
loading. There is a progress bar, that is to be updated as the loading
progresses. At most one loading dialog box should be open at any given time.
- Author:
- Andreas Enblom
Constructor Summary |
private |
LoadingInfo()
No contructor is necessary. |
Method Summary |
(package private) static void |
()
|
static void |
display(String msg,
Frame owner)
Displays a new dialog with the given message. |
static void |
hide()
Hides the dialog. |
static void |
update(double progress)
Update the progress bar. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
dialog
private static JDialog dialog
- Description of the Field
content
private static JPanel content
- Description of the Field
message
private static JLabel message
- Description of the Field
progress
private static double progress
- Description of the Field
LoadingInfo
private LoadingInfo()
- No contructor is necessary.
display
public static void display(String msg,
Frame owner)
- Displays a new dialog with the given message. The progress bar is set to
zero.
- Parameters:
msg
- The message to display. If the message should be formatted
in a way different from a one line standard JLabel, use html-format
of the text.owner
- The frame that owns the modal error dialog.
update
public static void update(double progress)
- Update the progress bar.
- Parameters:
progress
- A number between 0 and 1, indicating how much of the
task that has been completed (0 = nothing, 1 = all).
hide
public static void hide()
- Hides the dialog.
static void ()