@Test public void testSetAction() throws Exception { component.setAction(WXWeb.GO_BACK); component.setAction(WXWeb.GO_FORWARD); component.setAction(WXWeb.RELOAD); }
public void setAction(String action) { if (!TextUtils.isEmpty(action)) { if (action.equals(GO_BACK)) { goBack(); } else if (action.equals(GO_FORWARD)) { goForward(); } else if (action.equals(RELOAD)) { reload(); } } }
WXWeb extends WXComponent { public void setAction(String action) { if (!TextUtils.isEmpty(action)) { if (action.equals(GO_BACK)) { goBack(); } else if (action.equals(GO_FORWARD)) { goForward(); } else if (action.equals(RELOAD)) { reload(); } } } }
WXWeb extends WXComponent { public void setAction(String action) { if (!TextUtils.isEmpty(action)) { if (action.equals(GO_BACK)) { goBack(); } else if (action.equals(GO_FORWARD)) { goForward(); } else if (action.equals(RELOAD)) { reload(); } } } @Deprecated  WXWeb(WXSDKInstance instance, WXDomObject dom, WXVContainer parent, String instanceId, boolean isLazy);  WXWeb(WXSDKInstance instance, WXDomObject dom, WXVContainer parent, boolean isLazy); }
WXWeb extends WXComponent { public void setAction(String action) { if (!TextUtils.isEmpty(action)) { if (action.equals(GO_BACK)) { goBack(); } else if (action.equals(GO_FORWARD)) { goForward(); } else if (action.equals(RELOAD)) { reload(); } } } @Deprecated  WXWeb(WXSDKInstance instance, WXDomObject dom, WXVContainer parent, String instanceId, boolean isLazy);  WXWeb(WXSDKInstance instance, WXDomObject dom, WXVContainer parent, boolean isLazy); @Override void destroy(); @WXComponentProp(name = Constants.Name.SHOW_LOADING) void setShowLoading(boolean showLoading); @WXComponentProp(name = Constants.Name.SRC) void setUrl(String url); void setAction(String action); }
WXWeb extends WXComponent { public void setAction(String action) { if (!TextUtils.isEmpty(action)) { if (action.equals(GO_BACK)) { goBack(); } else if (action.equals(GO_FORWARD)) { goForward(); } else if (action.equals(RELOAD)) { reload(); } } } @Deprecated  WXWeb(WXSDKInstance instance, WXDomObject dom, WXVContainer parent, String instanceId, boolean isLazy);  WXWeb(WXSDKInstance instance, WXDomObject dom, WXVContainer parent, boolean isLazy); @Override void destroy(); @WXComponentProp(name = Constants.Name.SHOW_LOADING) void setShowLoading(boolean showLoading); @WXComponentProp(name = Constants.Name.SRC) void setUrl(String url); void setAction(String action); static final String GO_BACK; static final String GO_FORWARD; static final String RELOAD; }