Example usage for com.google.gwt.tok.client TokBox supportRequirements

List of usage examples for com.google.gwt.tok.client TokBox supportRequirements

Introduction

In this page you can find the example usage for com.google.gwt.tok.client TokBox supportRequirements.

Prototype

public static native boolean supportRequirements() ;

Source Link

Document

Checks if the system supports the Tok API.

Usage

From source file:com.google.gwt.tok.test.client.model.TokModel.java

public TokModel() {
    if (TokBox.supportRequirements()) {
        // Init Tok
        tokBox = TokBox.getInstance();//from  ww w.  ja v a  2  s .  c om
    } else {
        Window.alert("You don't have the minimum requirements to run this application.\n"
                + "Please upgrade to the latest version of Flash.");
    }
    bind();
}