Created
November 25, 2016 09:02
-
-
Save ybon3/bba79ebf1efdee0864f1cdbad23604c8 to your computer and use it in GitHub Desktop.
用來取代 AppForJQM 的 JQMEP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.dtc.fidxc.web.client; | |
import com.google.gwt.core.client.Callback; | |
import com.google.gwt.user.client.Window; | |
import com.sksamuel.jqm4gwt.ScriptUtils; | |
import us.dontcareabout.gwt.client.GFEP; | |
public abstract class JQMEP extends GFEP { | |
@Override | |
protected final void start() { | |
ScriptUtils.waitJqmLoaded(new Callback<Void, Throwable>() { | |
@Override | |
public void onSuccess(Void result) { | |
startJQM(); | |
} | |
@Override | |
public void onFailure(Throwable reason) { | |
Window.alert(reason.getMessage()); | |
} | |
}); | |
} | |
protected abstract void startJQM(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment