How can I create a GWT download dialog?

I have a page with a combination of HTML and GWT components. I would like the content not to be displayed to the user until the content is fully downloaded (possibly showing a simple download dialog during the process).

What is the easiest way to achieve this?

+3
source share
2 answers

I am using PopupPanel with autohide set to false and modal to true. Create it however you want, show it when you start uploading your content, and hide it when you're done.

+4
source

In fact, the proposed method is to create in your HTML and after loading everything in your entry point hide it:

<html>
...
<body>
...
    <div id="loading"> 
        <span id="loadingMsg">Loading ...</span>
    </div> 
...
</body>
</html>

public void onModuleLoad()
{
...
    // Hide the "Loading" notification
    RootPanel.get("loading").setVisible(false);
...
}
+7

Source: https://habr.com/ru/post/1706836/


All Articles