OSDN Git Service

ADWLauncher for IS01
[gb-231r1-is01/GB_2.3_IS01.git] / packages / apps / ADWLauncher / src / mobi / intuitit / android / widget / ScrollableBaseAdapter.java
diff --git a/packages/apps/ADWLauncher/src/mobi/intuitit/android/widget/ScrollableBaseAdapter.java b/packages/apps/ADWLauncher/src/mobi/intuitit/android/widget/ScrollableBaseAdapter.java
new file mode 100644 (file)
index 0000000..99a61d1
--- /dev/null
@@ -0,0 +1,22 @@
+package mobi.intuitit.android.widget;
+
+import android.content.Context;
+import android.widget.BaseAdapter;
+
+/*
+ * Base Adapter class that brings a common interface for WidgetRemoteViewsListAdapter and
+ * WidgetListAdapter.
+ */
+public abstract class ScrollableBaseAdapter extends BaseAdapter {
+
+       /*
+        * Tell the adapter to regenerate the data cache
+        */
+       public abstract void notifyToRegenerate();
+
+       /*
+        * Tell the adapter to drop the cache
+        */
+       public abstract void dropCache(Context context);
+
+}