Java Code Examples for com.taobao.weex.ui.component.WXComponent#updateProperties()
The following examples show how to use
com.taobao.weex.ui.component.WXComponent#updateProperties() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: UpdateStyleAction.java From ucar-weex-core with Apache License 2.0 | 6 votes |
@Override public void executeRender(RenderActionContext context) { WXComponent component = context.getComponent(mRef); if (component == null) { return; } component.updateProperties(mData); if (mData.containsKey(Constants.Name.PADDING) || mData.containsKey(Constants.Name.PADDING_TOP) || mData.containsKey(Constants.Name.PADDING_LEFT) || mData.containsKey(Constants.Name.PADDING_RIGHT) || mData.containsKey(Constants.Name.PADDING_BOTTOM) || mData.containsKey(Constants.Name.BORDER_WIDTH)) { Spacing padding = mPadding; Spacing border = mBorder; component.setPadding(padding, border); } }
Example 2
Source File: UpdateAttributeAction.java From ucar-weex-core with Apache License 2.0 | 5 votes |
@Override public void executeRender(RenderActionContext context) { WXComponent comp = context.getComponent(mRef); if (comp == null) { return; } comp.updateProperties(mData); }
Example 3
Source File: WXRenderStatement.java From weex-uikit with MIT License | 5 votes |
/** * @see com.taobao.weex.dom.WXDomStatement#updateAttrs(String, JSONObject) */ void updateAttrs(String ref, Map<String, Object> attrs) { WXComponent component = mRegistry.get(ref); if (component == null) { return; } component.updateProperties(attrs); }
Example 4
Source File: WXRenderStatement.java From weex-uikit with MIT License | 5 votes |
/** * @see com.taobao.weex.dom.WXDomStatement#updateStyle(String, JSONObject) */ void updateStyle(String ref, Map<String, Object> style) { WXComponent component = mRegistry.get(ref); if (component == null) { return; } component.updateProperties(style); }
Example 5
Source File: WXRenderStatement.java From weex with Apache License 2.0 | 5 votes |
/** * @see com.taobao.weex.dom.WXDomStatement#updateAttrs(String, JSONObject) */ void updateAttrs(String ref, Map<String, Object> attrs) { WXComponent component = mRegistry.get(ref); if (component == null) { return; } component.updateProperties(attrs); }
Example 6
Source File: WXRenderStatement.java From weex with Apache License 2.0 | 5 votes |
/** * @see com.taobao.weex.dom.WXDomStatement#updateStyle(String, JSONObject) */ void updateStyle(String ref, Map<String, Object> style) { WXComponent component = mRegistry.get(ref); if (component == null) { return; } component.updateProperties(style); WXAnimationModule.applyTransformStyle(style, component); }