com.getsnappy.w20
Class ContextBlockingAnimatedGifLoadingIndicator

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

public class ContextBlockingAnimatedGifLoadingIndicator
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
ContextBlockingAnimatedGifLoadingIndicator(java.lang.String contextId)
           
 
Method Summary
 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

ContextBlockingAnimatedGifLoadingIndicator

public ContextBlockingAnimatedGifLoadingIndicator(java.lang.String contextId)
Method Detail

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