@Override public void addOnPropertyChangedCallback(OnPropertyChangedCallback callback) { if (propertyChangeRegistry == null) { propertyChangeRegistry = new PropertyChangeRegistry(); } propertyChangeRegistry.add(callback); }
/** * Notifies listeners that all properties of this instance have changed. */ public synchronized void notifyChange() { if (mCallbacks != null) { mCallbacks.notifyCallbacks(this, 0, null); } }
private void notifyChange(int propertyId) { if (propertyChangeRegistry == null) { propertyChangeRegistry = new PropertyChangeRegistry(); } propertyChangeRegistry.notifyChange(this, propertyId); }
@Override public synchronized void removeOnPropertyChangedCallback(OnPropertyChangedCallback onPropertyChangedCallback) { if (mCallbacks != null) { mCallbacks.remove(onPropertyChangedCallback); } }
public synchronized void removeOnPropertyChangedCallback(OnPropertyChangedCallback listener) { if (this.mCallbacks != null) { this.mCallbacks.remove(listener); } }
@Override public synchronized void addOnPropertyChangedCallback(OnPropertyChangedCallback onPropertyChangedCallback) { if (mCallbacks == null) { mCallbacks = new PropertyChangeRegistry(); } mCallbacks.add(onPropertyChangedCallback); }
@Override public void removeOnPropertyChangedCallback(OnPropertyChangedCallback callback) { if (propertyChangeRegistry != null) { propertyChangeRegistry.remove(callback); } } }
public void notifyPropertyChanged(int fieldId) { if (this.mCallbacks != null) { this.mCallbacks.notifyCallbacks(this, fieldId, null); } } }
public synchronized void addOnPropertyChangedCallback(OnPropertyChangedCallback listener) { if (this.mCallbacks == null) { this.mCallbacks = new PropertyChangeRegistry(); } this.mCallbacks.add(listener); }
/** * Notifies listeners that a specific property has changed. The getter for the property * that changes should be marked with {@link Bindable} to generate a field in * <code>BR</code> to be used as <code>fieldId</code>. * * @param fieldId The generated BR id for the Bindable field. */ public void notifyPropertyChanged(int fieldId) { if (mCallbacks != null) { mCallbacks.notifyCallbacks(this, fieldId, null); } } }
public synchronized void notifyChange() { if (this.mCallbacks != null) { this.mCallbacks.notifyCallbacks(this, 0, null); } }