@Test public void testSetProperty() throws Exception { component.setProperty(Constants.Name.SRC,"http: }
@Override protected boolean setProperty(String key, Object param) { switch (key) { case Constants.Name.SRC: String src = WXUtils.getString(param, null); if (src != null) setSrc(src); return true; case Constants.Name.PRIORITY: String priority = WXUtils.getString(param, null); if (priority != null) { setPriority(priority); } return true; } return super.setProperty(key, param); }
WXEmbed extends WXDiv implements WXSDKInstance.OnInstanceVisibleListener,NestedContainer { @Override protected boolean setProperty(String key, Object param) { switch (key) { case Constants.Name.SRC: String src = WXUtils.getString(param, null); if (src != null) setSrc(src); return true; case Constants.Name.PRIORITY: String priority = WXUtils.getString(param, null); if (priority != null) { setPriority(priority); } return true; } return super.setProperty(key, param); } }
WXEmbed extends WXDiv implements WXSDKInstance.OnInstanceVisibleListener,NestedContainer { @Override protected boolean setProperty(String key, Object param) { switch (key) { case Constants.Name.SRC: String src = WXUtils.getString(param, null); if (src != null) setSrc(src); return true; case Constants.Name.PRIORITY: String priority = WXUtils.getString(param, null); if (priority != null) { setPriority(priority); } return true; } return super.setProperty(key, param); } @Deprecated  WXEmbed(WXSDKInstance instance, WXVContainer parent, String instanceId, boolean isLazy, BasicComponentData basicComponentData);  WXEmbed(WXSDKInstance instance, WXVContainer parent, BasicComponentData basicComponentData); }
WXEmbed extends WXDiv implements WXSDKInstance.OnInstanceVisibleListener,NestedContainer { @Override protected boolean setProperty(String key, Object param) { switch (key) { case Constants.Name.SRC: String src = WXUtils.getString(param, null); if (src != null) setSrc(src); return true; case Constants.Name.PRIORITY: String priority = WXUtils.getString(param, null); if (priority != null) { setPriority(priority); } return true; } return super.setProperty(key, param); } @Deprecated  WXEmbed(WXSDKInstance instance, WXVContainer parent, String instanceId, boolean isLazy, BasicComponentData basicComponentData);  WXEmbed(WXSDKInstance instance, WXVContainer parent, BasicComponentData basicComponentData); @Override void setOnNestEventListener(OnNestedInstanceEventListener listener); @Override ViewGroup getViewContainer(); @Override void renderNewURL(String url); @Override void reload(); String getOriginUrl(); void setOriginUrl(String originUrl); @WXComponentProp(name = Constants.Name.SRC) void setSrc(String src); String getSrc(); @WXComponentProp(name = Constants.Name.PRIORITY) void setPriority(String priority); @Override void setVisibility(String visibility); @Override void destroy(); @Override void onAppear(); @Override void onDisappear(); @Override void onActivityStart(); @Override void onActivityResume(); @Override void onActivityPause(); @Override void onActivityStop(); @Override void onActivityDestroy(); void setStrategy(String strategy); @Override void addLayerOverFlowListener(String ref); @Override void removeLayerOverFlowListener(String ref); }
WXEmbed extends WXDiv implements WXSDKInstance.OnInstanceVisibleListener,NestedContainer { @Override protected boolean setProperty(String key, Object param) { switch (key) { case Constants.Name.SRC: String src = WXUtils.getString(param, null); if (src != null) setSrc(src); return true; case Constants.Name.PRIORITY: String priority = WXUtils.getString(param, null); if (priority != null) { setPriority(priority); } return true; } return super.setProperty(key, param); } @Deprecated  WXEmbed(WXSDKInstance instance, WXVContainer parent, String instanceId, boolean isLazy, BasicComponentData basicComponentData);  WXEmbed(WXSDKInstance instance, WXVContainer parent, BasicComponentData basicComponentData); @Override void setOnNestEventListener(OnNestedInstanceEventListener listener); @Override ViewGroup getViewContainer(); @Override void renderNewURL(String url); @Override void reload(); String getOriginUrl(); void setOriginUrl(String originUrl); @WXComponentProp(name = Constants.Name.SRC) void setSrc(String src); String getSrc(); @WXComponentProp(name = Constants.Name.PRIORITY) void setPriority(String priority); @Override void setVisibility(String visibility); @Override void destroy(); @Override void onAppear(); @Override void onDisappear(); @Override void onActivityStart(); @Override void onActivityResume(); @Override void onActivityPause(); @Override void onActivityStop(); @Override void onActivityDestroy(); void setStrategy(String strategy); @Override void addLayerOverFlowListener(String ref); @Override void removeLayerOverFlowListener(String ref); static final String STRATEGY_NONE; static final String STRATEGY_NORMAL; static final String STRATEGY_HIGH; static final String PRIORITY_LOW; static final String PRIORITY_NORMAL; static final String PRIORITY_HIGH; static final String ITEM_ID; }