@Test public void testStartAnimation() throws Exception { createBody(); JSONObject obj; obj = new JSONObject(); obj.put("type","div"); obj.put("ref","100"); stmt.addDom(obj,WXDomObject.ROOT,0); stmt.startAnimation("100","",null); }
void startAnimation(@NonNull final String ref, @NonNull String animation, @Nullable final String callBack){ if (mDestroy) { return; } WXDomObject domObject = mRegistry.get(ref); if (domObject == null) { return; } final WXAnimationBean animationBean=createAnimationBean(ref, animation); if(animationBean!=null) { mNormalTasks.add(new IWXRenderTask() { @Override public void execute() { mWXRenderManager.startAnimation(mInstanceId, ref, animationBean, callBack); } @Override public String toString() { return "startAnimationByCall"; } }); mDirty=true; } }
WXDomStatement { void startAnimation(@NonNull final String ref, @NonNull String animation, @Nullable final String callBack){ if (mDestroy) { return; } WXDomObject domObject = mRegistry.get(ref); if (domObject == null) { return; } final WXAnimationBean animationBean=createAnimationBean(ref, animation); if(animationBean!=null) { mNormalTasks.add(new IWXRenderTask() { @Override public void execute() { mWXRenderManager.startAnimation(mInstanceId, ref, animationBean, callBack); } @Override public String toString() { return "startAnimationByCall"; } }); mDirty=true; } } }
WXDomStatement { void startAnimation(@NonNull final String ref, @NonNull String animation, @Nullable final String callBack){ if (mDestroy) { return; } WXDomObject domObject = mRegistry.get(ref); if (domObject == null) { return; } final WXAnimationBean animationBean=createAnimationBean(ref, animation); if(animationBean!=null) { mNormalTasks.add(new IWXRenderTask() { @Override public void execute() { mWXRenderManager.startAnimation(mInstanceId, ref, animationBean, callBack); } @Override public String toString() { return "startAnimationByCall"; } }); mDirty=true; } } WXDomStatement(String instanceId, WXRenderManager renderManager); }
WXDomStatement { void startAnimation(@NonNull final String ref, @NonNull String animation, @Nullable final String callBack){ if (mDestroy) { return; } WXDomObject domObject = mRegistry.get(ref); if (domObject == null) { return; } final WXAnimationBean animationBean=createAnimationBean(ref, animation); if(animationBean!=null) { mNormalTasks.add(new IWXRenderTask() { @Override public void execute() { mWXRenderManager.startAnimation(mInstanceId, ref, animationBean, callBack); } @Override public String toString() { return "startAnimationByCall"; } }); mDirty=true; } } WXDomStatement(String instanceId, WXRenderManager renderManager); void destroy(); void getComponentSize(final String ref, final JSCallback callback); }
WXDomStatement { void startAnimation(@NonNull final String ref, @NonNull String animation, @Nullable final String callBack){ if (mDestroy) { return; } WXDomObject domObject = mRegistry.get(ref); if (domObject == null) { return; } final WXAnimationBean animationBean=createAnimationBean(ref, animation); if(animationBean!=null) { mNormalTasks.add(new IWXRenderTask() { @Override public void execute() { mWXRenderManager.startAnimation(mInstanceId, ref, animationBean, callBack); } @Override public String toString() { return "startAnimationByCall"; } }); mDirty=true; } } WXDomStatement(String instanceId, WXRenderManager renderManager); void destroy(); void getComponentSize(final String ref, final JSCallback callback);  }