Code example for DataSetObservable

Methods: registerObserver

0
    protected DataSetObservable getDataSetObservable() {
        return mDataSetObservable;
         
    } 
    public void registerDataSetObserver(DataSetObserver observer) {
        mDataSetObservable.registerObserver(observer);
         
    } 
 
    public void unregisterDataSetObserver(DataSetObserver observer) {
        mDataSetObservable.unregisterObserver(observer);
    } 
 
    /** 
     * Subclasses must call this method when they finish committing updates to notify all 
     * observers. 
     * 
     * @param selfChange 
     */ 
    protected void onChange(boolean selfChange) {
        synchronized (mSelfObserverLock) {