/** * get the family manager which used to manager relationship of module * @return the family manager or null, if you don't define by @FamilyDesc * @since 1.4.5 */ public FamilyManager getFamilyManager(){ return getBaseMediator().getFamilyManager(); }
/** * apply action to the default data consumer. * @see DataConsumer * @see DataMediator#setDataConsumer(DataConsumer) */ public final void applyTo() { mDm.getBaseMediator().applyTo(); } /**
/** * drop the all batch dispatch event * @since 1.4.4 */ public void dropBatchedDispatches(){ getBaseMediator().dropBatchedDispatches(); }
/** * <p>Use {@linkplain #beginBatchedDispatches(int)} instead. this wll be removed in 2.x</p> * @since 1.4.1 */ @Deprecated public void beginBatchedDispatches(){ getBaseMediator().beginBatchedDispatches(); } /**
/** * <p>Use {@linkplain #beginBatchedDispatches(int)} instead. this wll be removed in 2.x</p> * @since 1.4.1 */ @Deprecated public void beginBatchedDispatches(){ getBaseMediator().beginBatchedDispatches(); } /**
/** * apply action to the target data consumer. * @param consumer the data consumer . * @see DataConsumer * @see DataMediator#setDataConsumer(DataConsumer) */ public final void applyTo(DataConsumer<T> consumer) { mDm.getBaseMediator().applyTo(consumer); }
/** * get the exact module data. * @return the module data. */ public final T getData(){ return getBaseMediator()._getTarget(); } /**
/** * apply action to the default data consumer. * @see DataConsumer * @see DataMediator#setDataConsumer(DataConsumer) */ public final void applyTo() { mDm.getBaseMediator().applyTo(); } /**
/** * get the exact module data. * @return the module data. */ public final T getData(){ return getBaseMediator()._getTarget(); } /**
/** * drop the all batch dispatch event * @since 1.4.4 */ public void dropBatchedDispatches(){ getBaseMediator().dropBatchedDispatches(); }
/** * get the family manager which used to manager relationship of module * @return the family manager or null, if you don't define by @FamilyDesc * @since 1.4.5 */ public FamilyManager getFamilyManager(){ return getBaseMediator().getFamilyManager(); }
/** * apply action to the target data consumer. * @param consumer the data consumer . * @see DataConsumer * @see DataMediator#setDataConsumer(DataConsumer) */ public final void applyTo(DataConsumer<T> consumer) { mDm.getBaseMediator().applyTo(consumer); }
/** * <p>Use {@linkplain #endBatchedDispatches(PropertyEventReceiver)} instead. this wll be removed in 2.x</p> * Ends the dispatch transaction and dispatches any remaining event to the callback. * @param receiver the receiver which used to receive batch dispatch events. null means use default receiver. * @since 1.4.1 */ @Deprecated public void endBatchedDispatches(@Nullable PropertyReceiver receiver){ getBaseMediator().endBatchedDispatches(receiver); }
/** * <p>Use {@linkplain #endBatchedDispatches(PropertyEventReceiver)} instead. this wll be removed in 2.x</p> * Ends the dispatch transaction and dispatches any remaining event to the callback. * @param receiver the receiver which used to receive batch dispatch events. null means use default receiver. * @since 1.4.1 */ @Deprecated public void endBatchedDispatches(@Nullable PropertyReceiver receiver){ getBaseMediator().endBatchedDispatches(receiver); }
/** * Ends the dispatch transaction and dispatches any remaining event to the callback. * @param receiver the receiver which used to receive batch dispatch events. null means use default receiver. * @since 1.4.4 */ public void endBatchedDispatches(final @Nullable PropertyEventReceiver receiver){ getBaseMediator().endBatchedDispatches(receiver); } /**
/** * Ends the dispatch transaction and dispatches any remaining event to the callback. * @param receiver the receiver which used to receive batch dispatch events. null means use default receiver. * @since 1.4.4 */ public void endBatchedDispatches(final @Nullable PropertyEventReceiver receiver){ getBaseMediator().endBatchedDispatches(receiver); } /**
@Override public void onPropertyValueChanged(Student data, Property prop, Object oldValue, Object newValue) { if(prop.getName().equals(stuPropName)){ //virtual property dm.getBaseMediator().dispatchValueChanged(prop, oldValue, newValue); } } });
@Override public void onPropertyValueChanged(Student data, Property prop, Object oldValue, Object newValue) { if(prop.getName().equals(stuPropName)){ //virtual property dm.getBaseMediator().dispatchValueChanged(prop, oldValue, newValue); } } });
@Override public void onPropertyValueChanged(Object data, Property prop, Object oldValue, Object newValue) { final DataMediator root = provideRootDataMediator(prop); if(root == null){ return; } params.mOriginalSource = data; params.receiver = root.getBaseMediator()._getInternalDispatcher(); depthReceiver.onPreCallback(params); depthReceiver.dispatchValueChanged(root.getData(), data, prop, oldValue, newValue); depthReceiver.onPostCallback(); } @Override
@Override public void onPropertyApplied(Object data, Property prop, Object value) { final DataMediator root = provideRootDataMediator(prop); if(root == null){ return; } params.mOriginalSource = data; params.receiver = root.getBaseMediator()._getInternalDispatcher(); depthReceiver.onPreCallback(params); depthReceiver.dispatchValueApplied(root.getData(), data, prop, value); depthReceiver.onPostCallback(); } @Override