/** * bind the property callback for target property. * @param property the property. it often auto generate by 'data-mediator-compiler' lib. * @param callback the property callback of binder * @return this. * @since 1.1.3 */ public Binder<T> bind(Property property, BinderCallback<? super T> callback){ return bind(property.getName(), callback); } /**
/** * bind the property callback for target property. * @param property the property. it often auto generate by 'data-mediator-compiler' lib. * @param callback the property callback of binder * @return this. * @since 1.1.3 */ public Binder<T> bind(Property property, BinderCallback<? super T> callback){ return bind(property.getName(), callback); } /**
/** * bind the property callback as Sparse({@linkplain com.heaven7.java.base.util.SparseArray}) * for target property. * @param property the property. * @param callback the property callback of sparse array. * @return this. * @see com.heaven7.java.base.util.SparseArray * @since 1.1.3 */ public Binder<T> bind(Property property, SparseArrayPropertyCallback<? super T> callback){ return bind(property.getName(), callback); } /**
/** * bind list data for any view which support {@linkplain com.heaven7.java.data.mediator.BaseListPropertyCallback.IItemManager}. * the item manager can be used by {@linkplain BaseListPropertyCallback}. * @param <E> the item type of ItemManager. * @param property the property of data * @param itm the item manager of list. * @return this. * @see #bindList(Property, BaseListPropertyCallback.IItemManager) * @since 1.4.1 */ public final <E> Binder<T> bindList(String property, BaseListPropertyCallback.IItemManager<E> itm){ return bind(property, new BaseListPropertyCallback<E>(itm)); } /**
/** * bind the property callback as Sparse({@linkplain com.heaven7.java.base.util.SparseArray}) * for target property. * @param property the property. * @param callback the property callback of sparse array. * @return this. * @see com.heaven7.java.base.util.SparseArray * @since 1.1.3 */ public Binder<T> bind(Property property, SparseArrayPropertyCallback<? super T> callback){ return bind(property.getName(), callback); } /**
/** * bind list data for any view which support {@linkplain com.heaven7.java.data.mediator.BaseListPropertyCallback.IItemManager}. * the item manager can be used by {@linkplain BaseListPropertyCallback}. * @param <E> the item type of ItemManager. * @param property the property of data * @param itm the item manager of list. * @return this. * @see #bindList(Property, BaseListPropertyCallback.IItemManager) * @since 1.4.1 */ public final <E> Binder<T> bindList(String property, BaseListPropertyCallback.IItemManager<E> itm){ return bind(property, new BaseListPropertyCallback<E>(itm)); } /**
/** * bind list data for any view which support {@linkplain com.heaven7.java.data.mediator.BaseListPropertyCallback.IItemManager}. * the item manager can be used by {@linkplain BaseListPropertyCallback}. * @param <E> the item type of ItemManager. * @param property the property of data * @param itm the item manager of list. * @return this. * @see #bindList(String, BaseListPropertyCallback.IItemManager) * @since 1.4.1 */ public final <E> Binder<T> bindList(Property property, BaseListPropertyCallback.IItemManager<E> itm){ return bind(property.getName(), new BaseListPropertyCallback<E>(itm)); } /**
/** * bind list data for any view which support {@linkplain com.heaven7.java.data.mediator.BaseListPropertyCallback.IItemManager}. * the item manager can be used by {@linkplain BaseListPropertyCallback}. * @param <E> the item type of ItemManager. * @param property the property of data * @param itm the item manager of list. * @return this. * @see #bindList(String, BaseListPropertyCallback.IItemManager) * @since 1.4.1 */ public final <E> Binder<T> bindList(Property property, BaseListPropertyCallback.IItemManager<E> itm){ return bind(property.getName(), new BaseListPropertyCallback<E>(itm)); } /**