Java Code Examples for android.database.DataSetObserver#onChanged()
The following examples show how to use
android.database.DataSetObserver#onChanged() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: IncompleteFormListAdapter.java From commcare-android with Apache License 2.0 | 6 votes |
/** * Re-filter form listing based on query parameter. * * @param newQuery set the current query to this value. */ public void applyTextFilter(String newQuery) { if (this.query.trim().equals(newQuery.trim())) { // don't perform filtering if old and new queries are same, modulo // whitespace return; } this.query = newQuery; // split the query up into segments, by whitespace. if ("".equals(this.query)) { this.queryPieces = new String[0]; } else { this.queryPieces = newQuery.toLowerCase().split(" "); } filterValues(); for (DataSetObserver o : observers) { o.onChanged(); } }
Example 2
Source File: AbstractWheelAdapter.java From bither-android with Apache License 2.0 | 5 votes |
/** * Notifies observers about data changing */ protected void notifyDataChangedEvent() { if (datasetObservers != null) { for (DataSetObserver observer : datasetObservers) { observer.onChanged(); } } }
Example 3
Source File: BoundCollectionAdapter.java From bindroid with MIT License | 5 votes |
private void notifyCollectionChanged() { // Dispatch notifications to the main thread. final List<DataSetObserver> observers = new ArrayList<DataSetObserver>(this.observers); Runnable toRun = new Runnable() { @Override public void run() { BoundCollectionAdapter.this.presentedData = new TrackableCollection<T>( BoundCollectionAdapter.this.data); if (BoundCollectionAdapter.this.cachedViews != null) { Map<T, View> newCache = new HashMap<T, View>(); for (T item : BoundCollectionAdapter.this.presentedData) { if (BoundCollectionAdapter.this.cachedViews.containsKey(item)) { newCache.put(item, BoundCollectionAdapter.this.cachedViews.get(item)); } } BoundCollectionAdapter.this.cachedViews = newCache; } for (DataSetObserver obs : observers) { obs.onChanged(); } } }; if (Looper.myLooper() == Looper.getMainLooper()) { toRun.run(); } else { new Handler(Looper.getMainLooper()).post(toRun); } }
Example 4
Source File: AbstractWheelAdapter.java From Mupdf with Apache License 2.0 | 5 votes |
/** * Notifies observers about data changing */ protected void notifyDataChangedEvent() { if (datasetObservers != null) { for (DataSetObserver observer : datasetObservers) { observer.onChanged(); } } }
Example 5
Source File: BooksAdapter.java From document-viewer with GNU General Public License v3.0 | 5 votes |
@Override public void notifyDataSetChanged() { super.notifyDataSetChanged(); for (final DataSetObserver dso : _dsoList) { dso.onChanged(); } }
Example 6
Source File: InMemoryTreeStateManager.java From satstat with GNU General Public License v3.0 | 5 votes |
private synchronized void internalDataSetChanged() { visibleListCache = null; unmodifiableVisibleList = null; if (observers != null) for (final DataSetObserver observer : observers) { observer.onChanged(); } }
Example 7
Source File: AbstractWheelAdapter.java From iSCAU-Android with GNU General Public License v3.0 | 5 votes |
/** * Notifies observers about data changing */ protected void notifyDataChangedEvent() { if (datasetObservers != null) { for (DataSetObserver observer : datasetObservers) { observer.onChanged(); } } }
Example 8
Source File: IncompleteFormListAdapter.java From commcare-android with Apache License 2.0 | 5 votes |
@Override public void notifyDataSetInvalidated() { super.notifyDataSetInvalidated(); resetRecords(); for (DataSetObserver observer : observers) { observer.onChanged(); } }
Example 9
Source File: IncompleteFormListAdapter.java From commcare-android with Apache License 2.0 | 5 votes |
@Override public void notifyDataSetChanged() { super.notifyDataSetChanged(); for (DataSetObserver observer : observers) { observer.onChanged(); } }
Example 10
Source File: AbstractWheelAdapter.java From RxTools-master with Apache License 2.0 | 5 votes |
/** * Notifies observers about data changing */ protected void notifyDataChangedEvent() { if (datasetObservers != null) { for (DataSetObserver observer : datasetObservers) { observer.onChanged(); } } }
Example 11
Source File: AbstractWheelAdapter.java From TimePickerDialog with Apache License 2.0 | 5 votes |
/** * Notifies observers about data changing */ protected void notifyDataChangedEvent() { if (datasetObservers != null) { for (DataSetObserver observer : datasetObservers) { observer.onChanged(); } } }
Example 12
Source File: AbstractWheelAdapter.java From BigApp_Discuz_Android with Apache License 2.0 | 5 votes |
/** * Notifies observers about data changing */ protected void notifyDataChangedEvent() { if (datasetObservers != null) { for (DataSetObserver observer : datasetObservers) { observer.onChanged(); } } }
Example 13
Source File: AbstractWheelAdapter.java From myapplication with Apache License 2.0 | 5 votes |
/** * Notifies observers about data changing */ protected void notifyDataChangedEvent() { if (datasetObservers != null) { for (DataSetObserver observer : datasetObservers) { observer.onChanged(); } } }
Example 14
Source File: CompoundAdapter.java From J2ME-Loader with Apache License 2.0 | 5 votes |
@Override public void process() { for (DataSetObserver observer : observers) { try { observer.onChanged(); } catch (Exception e) { e.printStackTrace(); } } }
Example 15
Source File: AbstractWheelAdapter.java From CoolClock with GNU General Public License v3.0 | 5 votes |
/** * Notifies observers about data changing */ protected void notifyDataChangedEvent() { if (datasetObservers != null) { for (DataSetObserver observer : datasetObservers) { observer.onChanged(); } } }
Example 16
Source File: AbstractWheelAdapter.java From o2oa with GNU Affero General Public License v3.0 | 5 votes |
/** * Notifies observers about data changing */ protected void notifyDataChangedEvent() { if (datasetObservers != null) { for (DataSetObserver observer : datasetObservers) { observer.onChanged(); } } }
Example 17
Source File: AbstractWheelAdapter.java From AssistantBySDK with Apache License 2.0 | 5 votes |
/** * Notifies observers about data changing */ protected void notifyDataChangedEvent() { if (datasetObservers != null) { for (DataSetObserver observer : datasetObservers) { observer.onChanged(); } } }
Example 18
Source File: AbstractWheelAdapter.java From RxTools-master with Apache License 2.0 | 5 votes |
/** * Notifies observers about data changing */ protected void notifyDataChangedEvent() { if (datasetObservers != null) { for (DataSetObserver observer : datasetObservers) { observer.onChanged(); } } }
Example 19
Source File: LocationHolder.java From PokeFaker with MIT License | 4 votes |
private void notifyDataObserver() { Log.v(TAG, "posting data:" + mCacheLatLng.toString()); for (DataSetObserver o : mObervers) { o.onChanged(); } }
Example 20
Source File: EntityListAdapter.java From commcare-android with Apache License 2.0 | 4 votes |
void update() { for (DataSetObserver o : observers) { o.onChanged(); } }