// Path: androidemu/src/main/java/android/database/DataSetObserver.java
// public abstract class DataSetObserver {
// 
// 	public void onChanged() {
// 		// Do nothing
// 	}
// 
// 	public void onInvalidated() {
// 		// Do nothing
// 	}
// }
// 
// Path: androidemu/src/main/java/android/view/ViewGroup.java
// public class ViewGroup extends View {
// 
// 	static final String TAG = "ViewGroup";
// 
// 	ArrayList<View> childViews = new ArrayList<View>();
// 
// 	public ViewGroup(Element element) {
// 		super(element);
// 	}
// 
// 	public void addView(View v) {
// 		element.appendChild(v.getElement());
// 		childViews.add(v);
// 	}
// 
// 	public View getChildAt(int index) {
// 		return childViews.get(index);
// 	}
// 
// 	public int getChildCount() {
// 		return childViews.size();
// 	}
// 
// 	public void removeAllViews() {
// 		element.removeAllChildren();
// 	}
// }


import android.database.DataSetObserver;
import android.view.View;
import android.view.ViewGroup;
/*
 * Copyright (C) 2006 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package android.widget;


/**
 * An Adapter object acts as a bridge between an {@link AdapterView} and the
 * underlying data for that view. The Adapter provides access to the data items.
 * The Adapter is also responsible for making a {@link android.view.View} for
 * each item in the data set.
 *
 * @see android.widget.ArrayAdapter
 * @see android.widget.CursorAdapter
 * @see android.widget.SimpleCursorAdapter
 */
public interface Adapter {
	/**
	 * Register an observer that is called when changes happen to the data used
	 * by this adapter.
	 *
	 * @param observer the object that gets notified when the data set changes.
	 */
	void registerDataSetObserver(DataSetObserver observer);

	/**
	 * Unregister an observer that has previously been registered with this
	 * adapter via {@link #registerDataSetObserver}.
	 *
	 * @param observer the object to unregister.
	 */
	void unregisterDataSetObserver(DataSetObserver observer);

	/**
	 * How many items are in the data set represented by this Adapter.
	 *
	 * @return Count of items.
	 */
// Path: androidemu/src/main/java/android/database/DataSetObserver.java
// public abstract class DataSetObserver {
// 
// 	public void onChanged() {
// 		// Do nothing
// 	}
// 
// 	public void onInvalidated() {
// 		// Do nothing
// 	}
// }
// 
// Path: androidemu/src/main/java/android/view/ViewGroup.java
// public class ViewGroup extends View {
// 
// 	static final String TAG = "ViewGroup";
// 
// 	ArrayList<View> childViews = new ArrayList<View>();
// 
// 	public ViewGroup(Element element) {
// 		super(element);
// 	}
// 
// 	public void addView(View v) {
// 		element.appendChild(v.getElement());
// 		childViews.add(v);
// 	}
// 
// 	public View getChildAt(int index) {
// 		return childViews.get(index);
// 	}
// 
// 	public int getChildCount() {
// 		return childViews.size();
// 	}
// 
// 	public void removeAllViews() {
// 		element.removeAllChildren();
// 	}
// }


// Path: androidemu/src/main/java/android/widget/Adapter.java
import android.database.DataSetObserver;
import android.view.View;
import android.view.ViewGroup;

/*
 * Copyright (C) 2006 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package android.widget;


/**
 * An Adapter object acts as a bridge between an {@link AdapterView} and the
 * underlying data for that view. The Adapter provides access to the data items.
 * The Adapter is also responsible for making a {@link android.view.View} for
 * each item in the data set.
 *
 * @see android.widget.ArrayAdapter
 * @see android.widget.CursorAdapter
 * @see android.widget.SimpleCursorAdapter
 */
public interface Adapter {
	/**
	 * Register an observer that is called when changes happen to the data used
	 * by this adapter.
	 *
	 * @param observer the object that gets notified when the data set changes.
	 */
	void registerDataSetObserver(DataSetObserver observer);

	/**
	 * Unregister an observer that has previously been registered with this
	 * adapter via {@link #registerDataSetObserver}.
	 *
	 * @param observer the object to unregister.
	 */
	void unregisterDataSetObserver(DataSetObserver observer);

	/**
	 * How many items are in the data set represented by this Adapter.
	 *
	 * @return Count of items.
	 */
	int getCount();