com.getsnappy.w20
Class BlockingAnimatedGifLoadingIndicator

java.lang.Object
  extended by com.getsnappy.w20.JavaScriptLoadingIndicator
      extended by com.getsnappy.w20.BlockingAnimatedGifLoadingIndicator

public class BlockingAnimatedGifLoadingIndicator
extends JavaScriptLoadingIndicator

This loading indicator will apply the opaque png "/images/grey.png" screenwide and then load /images/loadingBox.png and attempt to keep it centered in the screen

Author:
brian

Constructor Summary
BlockingAnimatedGifLoadingIndicator()
           
 
Method Summary
static BlockingAnimatedGifLoadingIndicator getInstance()
          Load the single shared instance.
 void jsFinish(java.io.Writer out)
          Called immediately before replacing the contents of the page.
 void jsStart(java.io.Writer out)
          This function will apply the opaque png "/images/grey.png" screenwide and then load /images/loadingBox.png and attempt to keep centered in the screen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockingAnimatedGifLoadingIndicator

public BlockingAnimatedGifLoadingIndicator()
Method Detail

getInstance

public static BlockingAnimatedGifLoadingIndicator getInstance()
Load the single shared instance.

Returns:

jsStart

public void jsStart(java.io.Writer out)
             throws java.io.IOException
This function will apply the opaque png "/images/grey.png" screenwide and then load /images/loadingBox.png and attempt to keep centered in the screen

Specified by:
jsStart in class JavaScriptLoadingIndicator
Throws:
java.io.IOException
See Also:
DoNothingLoadingIndicator

jsFinish

public void jsFinish(java.io.Writer out)
              throws java.io.IOException
Description copied from class: JavaScriptLoadingIndicator
Called immediately before replacing the contents of the page. One use is for for displaying 100% on a progress. Another concept is too allow browsers to load all images and/or other external resources before showing the contents. It must output the JavaScript definition of a function (everything BETWEEN the braces).

Overrides:
jsFinish in class JavaScriptLoadingIndicator
Throws:
java.io.IOException