public final void setMainPage(String pageId, String animation) { Options options = Options.create(); options.setCloseMenu(true); JavaScriptObject jsAnimation = null; String msg = ""; if (animation != null) { if (OnsenUi.ANIMATION_NATIVE_PUSH.equals(animation)) { jsAnimation = getPushAnimationImpl(); msg = " WITH NATIVE PUSH ANIMATION"; } else if (OnsenUi.ANIMATION_NATIVE_POP.equals(animation)) { jsAnimation = getPopAnimationImpl(); msg = " WITH NATIVE POP ANIMATION"; } } PhgUtils.log("PUSHING PAGE " + pageId + " " + msg + " " + JSONUtils.stringify(options)); setMainPageImpl(pageId, options, jsAnimation); }
/** * Create the object that contains the Options used by {@link Dropzone} * * @return a default {@link DropzoneOptions} instance */ public static DropzoneOptions options() { return Options.create(); }
public final void setMenuPage(String pageId) { Options options = Options.create(); PhgUtils.log("MENU PAGE " + pageId); setMenuPageImpl(pageId, options); }