Java Code Examples for com.taobao.weex.ui.component.WXComponent#bindHolder()
The following examples show how to use
com.taobao.weex.ui.component.WXComponent#bindHolder() .
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: SimpleComponentHolder.java From ucar-weex-core with Apache License 2.0 | 5 votes |
@Override public synchronized WXComponent createInstance(WXSDKInstance instance, WXDomObject node, WXVContainer parent) throws IllegalAccessException, InvocationTargetException, InstantiationException { WXComponent component = mCreator.createInstance(instance,node,parent); component.bindHolder(this); return component; }
Example 2
Source File: ExternalLoaderComponentHolder.java From ucar-weex-core with Apache License 2.0 | 5 votes |
@Override public synchronized WXComponent createInstance(WXSDKInstance instance, WXDomObject node, WXVContainer parent) throws IllegalAccessException, InvocationTargetException, InstantiationException { if(mClass == null){ mClass = mClzGetter.getExternalComponentClass(mType,instance); } ComponentCreator creator = new SimpleComponentHolder.ClazzComponentCreator(mClass); WXComponent component = creator.createInstance(instance,node,parent); component.bindHolder(this); return component; }
Example 3
Source File: SimpleComponentHolder.java From weex-uikit with MIT License | 5 votes |
@Override public synchronized WXComponent createInstance(WXSDKInstance instance, WXDomObject node, WXVContainer parent) throws IllegalAccessException, InvocationTargetException, InstantiationException { WXComponent component = mCreator.createInstance(instance,node,parent); component.bindHolder(this); return component; }
Example 4
Source File: ExternalLoaderComponentHolder.java From weex-uikit with MIT License | 5 votes |
@Override public synchronized WXComponent createInstance(WXSDKInstance instance, WXDomObject node, WXVContainer parent) throws IllegalAccessException, InvocationTargetException, InstantiationException { if(mClass == null){ mClass = mClzGetter.getExternalComponentClass(mType,instance); } ComponentCreator creator = new SimpleComponentHolder.ClazzComponentCreator(mClass); WXComponent component = creator.createInstance(instance,node,parent); component.bindHolder(this); return component; }