Let's assume I have an ArrayListObservable<CustomVM>, and I want to sign up for every CustomVM's IsSelected field's changed event.
So I have something like this:
_isSelectedChange= new Observer() {
@Override
public void onPropertyChanged(IObservable<?> prop, Collection<Object> initiators) {
}
};
for(CustomVM actVM : viewModels)
{
actVM.IsSelected.subscribe(_isSelectedChange);
}
In the "onPropertyChanged" how is it possible to access the viewmodel whose property fired the event? Neither the prop nor the initiator helps :(