class WXText extends WXComponent<WXTextView> implements FlatComponent<TextWidget> {

    @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.TEXT_ALIGN:
            case Constants.Name.TEXT_OVERFLOW:
            case Constants.Name.LINE_HEIGHT:
            case Constants.Name.VALUE:
                return true;
            case Constants.Name.FONT_FAMILY:
                return true;
            default:
                return super.setProperty(key, param);
        }
    }

    @Deprecated public  WXText(WXSDKInstance instance, WXDomObject dom, WXVContainer parent, String
            instanceId, boolean isLazy);
    public  WXText(WXSDKInstance instance, WXDomObject node,
                  WXVContainer parent);

}