@Test public void testSetProperty() throws Exception { component.setProperty(Constants.Name.SHOW_LOADING,true); component.setProperty(Constants.Name.SRC,"http: }
@Override protected boolean setProperty(String key, Object param) { switch (key) { case Constants.Name.SHOW_LOADING: Boolean result = WXUtils.getBoolean(param,null); if (result != null) setShowLoading(result); return true; case Constants.Name.SRC: String src = WXUtils.getString(param,null); if (src != null) setUrl(src); return true; } return super.setProperty(key,param); }
WXWeb extends WXComponent { @Override protected boolean setProperty(String key, Object param) { switch (key) { case Constants.Name.SHOW_LOADING: Boolean result = WXUtils.getBoolean(param,null); if (result != null) setShowLoading(result); return true; case Constants.Name.SRC: String src = WXUtils.getString(param,null); if (src != null) setUrl(src); return true; } return super.setProperty(key,param); } }
WXWeb extends WXComponent { @Override protected boolean setProperty(String key, Object param) { switch (key) { case Constants.Name.SHOW_LOADING: Boolean result = WXUtils.getBoolean(param,null); if (result != null) setShowLoading(result); return true; case Constants.Name.SRC: String src = WXUtils.getString(param,null); if (src != null) setUrl(src); return true; } return super.setProperty(key,param); } @Deprecated  WXWeb(WXSDKInstance instance, WXDomObject dom, WXVContainer parent, String instanceId, boolean isLazy);  WXWeb(WXSDKInstance instance, WXDomObject dom, WXVContainer parent, boolean isLazy); }
WXWeb extends WXComponent { @Override protected boolean setProperty(String key, Object param) { switch (key) { case Constants.Name.SHOW_LOADING: Boolean result = WXUtils.getBoolean(param,null); if (result != null) setShowLoading(result); return true; case Constants.Name.SRC: String src = WXUtils.getString(param,null); if (src != null) setUrl(src); return true; } return super.setProperty(key,param); } @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 { @Override protected boolean setProperty(String key, Object param) { switch (key) { case Constants.Name.SHOW_LOADING: Boolean result = WXUtils.getBoolean(param,null); if (result != null) setShowLoading(result); return true; case Constants.Name.SRC: String src = WXUtils.getString(param,null); if (src != null) setUrl(src); return true; } return super.setProperty(key,param); } @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; }