@Test public void testSetProperty() throws Exception { component.setProperty(Constants.Name.CHECKED,true); }
@Override protected boolean setProperty(String key, Object param) { switch (key) { case Constants.Name.CHECKED: Boolean result = WXUtils.getBoolean(param, null); if (result != null) { setChecked(result); } return true; } return super.setProperty(key, param); }
WXSwitch extends WXComponent<WXSwitchView> { @Override protected boolean setProperty(String key, Object param) { switch (key) { case Constants.Name.CHECKED: Boolean result = WXUtils.getBoolean(param, null); if (result != null) { setChecked(result); } return true; } return super.setProperty(key, param); } }
WXSwitch extends WXComponent<WXSwitchView> { @Override protected boolean setProperty(String key, Object param) { switch (key) { case Constants.Name.CHECKED: Boolean result = WXUtils.getBoolean(param, null); if (result != null) { setChecked(result); } return true; } return super.setProperty(key, param); } @Deprecated  WXSwitch(WXSDKInstance instance, WXDomObject dom, WXVContainer parent, String instanceId, boolean isLazy);  WXSwitch(WXSDKInstance instance, WXDomObject dom, WXVContainer parent, boolean isLazy); }
WXSwitch extends WXComponent<WXSwitchView> { @Override protected boolean setProperty(String key, Object param) { switch (key) { case Constants.Name.CHECKED: Boolean result = WXUtils.getBoolean(param, null); if (result != null) { setChecked(result); } return true; } return super.setProperty(key, param); } @Deprecated  WXSwitch(WXSDKInstance instance, WXDomObject dom, WXVContainer parent, String instanceId, boolean isLazy);  WXSwitch(WXSDKInstance instance, WXDomObject dom, WXVContainer parent, boolean isLazy); @Override void addEvent(String type); @WXComponentProp(name = Constants.Name.CHECKED) void setChecked(boolean checked); }
WXSwitch extends WXComponent<WXSwitchView> { @Override protected boolean setProperty(String key, Object param) { switch (key) { case Constants.Name.CHECKED: Boolean result = WXUtils.getBoolean(param, null); if (result != null) { setChecked(result); } return true; } return super.setProperty(key, param); } @Deprecated  WXSwitch(WXSDKInstance instance, WXDomObject dom, WXVContainer parent, String instanceId, boolean isLazy);  WXSwitch(WXSDKInstance instance, WXDomObject dom, WXVContainer parent, boolean isLazy); @Override void addEvent(String type); @WXComponentProp(name = Constants.Name.CHECKED) void setChecked(boolean checked);  }