Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Method Summary
`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, toString, wait, wait, wait`

Method Detail

### 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD