New Features
- support bind property chain . like below:
@@BindBackground("viewBind.background")
View mV_bg;
@@BindBackgroundColor("viewBindList[0].backgroundColor")
View mV_bg_color;
- add useful methods for property chain . like
// this is used for attach inflate callbacks from property chain.
static <T> DataMediator<T> createDataMediator(DataMediator<?> root, T t)
//inflate callbacks from property chain.
void inflatePropertyChain(String propertyChain)
//re inflate callbacks from property chain.(which was already failed previous)
boolean reinflatePropertyChains()
// should reinflate property chain. if any was failed previous
boolean shouldReinflatePropertyChains()
- if you want see some demos about above. please click here
Optimise
- fix issue #3 .
- for use convenient, make default flags of @field to 'FieldFlags.FLAGS_MAIN_SCOPES_3'
which not contains hash.
- optimise 'Collector' add/change method for BaseDataMediator. see below.
void beginBatchedDispatches(int collectorFlags)
void dropBatchedDispatches()
void endBatchedDispatches(final @Nullable PropertyEventReceiver receiver)
Release libs
compile 'com.heaven7.java.data.mediator.annotation:data-mediator-annotations:1.2.2'
compile 'com.heaven7.java.data.mediator:data-mediator:1.4.4'
annotationProcessor 'com.heaven7.java.data.mediator.compiler:data-mediator-compiler:1.4.4'
//not changed libs
compile 'com.heaven7.java.data.mediator.support.gson:data-mediator-support-gson:1.0.5'
compile 'com.heaven7.android.data.mediator:data-mediator-android:1.1.4'