@Test public void testSetProperties() throws Exception { mWXText.setProperty(Constants.Name.LINES,null); mWXText.setProperty(Constants.Name.FONT_SIZE,null); mWXText.setProperty(Constants.Name.FONT_WEIGHT,null); mWXText.setProperty(Constants.Name.FONT_STYLE,null); mWXText.setProperty(Constants.Name.COLOR,null); mWXText.setProperty(Constants.Name.TEXT_DECORATION,null); mWXText.setProperty(Constants.Name.FONT_FAMILY,null); mWXText.setProperty(Constants.Name.TEXT_ALIGN,null); mWXText.setProperty(Constants.Name.TEXT_OVERFLOW,null); mWXText.setProperty(Constants.Name.LINE_HEIGHT,null); }
@Override protected boolean setProperty(String key, Object param) { switch (key) { case Constants.Name.LINES: case Constants.Name.FONT_SIZE: case Constants.Name.FONT_WEIGHT: case Constants.Name.FONT_STYLE: case Constants.Name.COLOR: case Constants.Name.TEXT_DECORATION: case Constants.Name.FONT_FAMILY: case Constants.Name.TEXT_ALIGN: case Constants.Name.TEXT_OVERFLOW: case Constants.Name.LINE_HEIGHT: case Constants.Name.VALUE: return true; default: return super.setProperty(key, param); } }
WXText extends WXComponent<WXTextView> { @Override protected boolean setProperty(String key, Object param) { switch (key) { case Constants.Name.LINES: case Constants.Name.FONT_SIZE: case Constants.Name.FONT_WEIGHT: case Constants.Name.FONT_STYLE: case Constants.Name.COLOR: case Constants.Name.TEXT_DECORATION: case Constants.Name.FONT_FAMILY: case Constants.Name.TEXT_ALIGN: case Constants.Name.TEXT_OVERFLOW: case Constants.Name.LINE_HEIGHT: case Constants.Name.VALUE: return true; default: return super.setProperty(key, param); } } }
WXText extends WXComponent<WXTextView> { @Override protected boolean setProperty(String key, Object param) { switch (key) { case Constants.Name.LINES: case Constants.Name.FONT_SIZE: case Constants.Name.FONT_WEIGHT: case Constants.Name.FONT_STYLE: case Constants.Name.COLOR: case Constants.Name.TEXT_DECORATION: case Constants.Name.FONT_FAMILY: case Constants.Name.TEXT_ALIGN: case Constants.Name.TEXT_OVERFLOW: case Constants.Name.LINE_HEIGHT: case Constants.Name.VALUE: return true; default: return super.setProperty(key, param); } } @Deprecated  WXText(WXSDKInstance instance, WXDomObject dom, WXVContainer parent, String instanceId, boolean isLazy);  WXText(WXSDKInstance instance, WXDomObject node,
                WXVContainer parent); }
WXText extends WXComponent<WXTextView> { @Override protected boolean setProperty(String key, Object param) { switch (key) { case Constants.Name.LINES: case Constants.Name.FONT_SIZE: case Constants.Name.FONT_WEIGHT: case Constants.Name.FONT_STYLE: case Constants.Name.COLOR: case Constants.Name.TEXT_DECORATION: case Constants.Name.FONT_FAMILY: case Constants.Name.TEXT_ALIGN: case Constants.Name.TEXT_OVERFLOW: case Constants.Name.LINE_HEIGHT: case Constants.Name.VALUE: return true; default: return super.setProperty(key, param); } } @Deprecated  WXText(WXSDKInstance instance, WXDomObject dom, WXVContainer parent, String instanceId, boolean isLazy);  WXText(WXSDKInstance instance, WXDomObject node,
                WXVContainer parent); @Override void updateExtra(Object extra); @Override void refreshData(WXComponent component); }
WXText extends WXComponent<WXTextView> { @Override protected boolean setProperty(String key, Object param) { switch (key) { case Constants.Name.LINES: case Constants.Name.FONT_SIZE: case Constants.Name.FONT_WEIGHT: case Constants.Name.FONT_STYLE: case Constants.Name.COLOR: case Constants.Name.TEXT_DECORATION: case Constants.Name.FONT_FAMILY: case Constants.Name.TEXT_ALIGN: case Constants.Name.TEXT_OVERFLOW: case Constants.Name.LINE_HEIGHT: case Constants.Name.VALUE: return true; default: return super.setProperty(key, param); } } @Deprecated  WXText(WXSDKInstance instance, WXDomObject dom, WXVContainer parent, String instanceId, boolean isLazy);  WXText(WXSDKInstance instance, WXDomObject node,
                WXVContainer parent); @Override void updateExtra(Object extra); @Override void refreshData(WXComponent component); static final int sDEFAULT_SIZE; }