本文整理汇总了Java中android.database.DataSetObservable类的典型用法代码示例。如果您正苦于以下问题:Java DataSetObservable类的具体用法?Java DataSetObservable怎么用?Java DataSetObservable使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DataSetObservable类属于android.database包,在下文中一共展示了DataSetObservable类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: TimelineDelegate
import android.database.DataSetObservable; //导入依赖的package包/类
TimelineDelegate(Timeline<T> timeline, DataSetObservable observable, List<T> items) {
if (timeline == null) {
throw new IllegalArgumentException("Timeline must not be null");
}
this.timeline = timeline;
this.timelineStateHolder = new TimelineStateHolder();
if (observable == null) {
listAdapterObservable = new DataSetObservable();
} else {
listAdapterObservable = observable;
}
if (items == null) {
itemList = new ArrayList<>();
} else {
itemList = items;
}
}
示例2: ImageStripAdapter
import android.database.DataSetObservable; //导入依赖的package包/类
public ImageStripAdapter(int paramInt, OnImageChildViewTapListener paramOnImageChildViewTapListener)
{
this.mImageCount = paramInt;
this.mImages = new Drawable[this.mImageCount];
this.mImageDimensions = new Common.Image.Dimension[this.mImageCount];
this.mDataSetObservable = new DataSetObservable();
this.mImageChildTappedListener = paramOnImageChildViewTapListener;
}
示例3: setUp
import android.database.DataSetObservable; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
mockTimeline = mock(Timeline.class);
mockObservable = mock(DataSetObservable.class);
// lists of items ordered from larger id to smaller
testItems.add(TEST_ITEM_2);
testItems.add(TEST_ITEM_1);
// extra result items ordered from larger id to smaller
testExtraItems.add(TEST_ITEM_4);
testExtraItems.add(TEST_ITEM_3);
testResult = new Result<>(new TimelineResult<>(TEST_TIMELINE_CURSOR, testItems), null);
}
示例4: BaseDescriptorList
import android.database.DataSetObservable; //导入依赖的package包/类
BaseDescriptorList(Class<T> typeParameterClass, DescriptorStore<T> store) {
this.typeParameterClass = typeParameterClass;
this.store = store;
this.dataSetObservable = new DataSetObservable();
this.list = new ArrayList<T>();
this.updating = 0;
}
示例5: BaseAdapter
import android.database.DataSetObservable; //导入依赖的package包/类
public BaseAdapter(Context context, List<T> datas) {
mDatas = datas;
mContext = context;
mInflater = LayoutInflater.from(mContext);
mDataSetObservable = new DataSetObservable();
}
示例6: PagerAdapter
import android.database.DataSetObservable; //导入依赖的package包/类
public PagerAdapter()
{
a = new DataSetObservable();
}
示例7: PagerAdapter
import android.database.DataSetObservable; //导入依赖的package包/类
public PagerAdapter()
{
mObservable = new DataSetObservable();
}
示例8: BlobDescriptorList
import android.database.DataSetObservable; //导入依赖的package包/类
BlobDescriptorList(Application app, DescriptorStore<BlobDescriptor> store, int maxSize) {
this.app = app;
this.store = store;
this.maxSize = maxSize;
this.list = new ArrayList<BlobDescriptor>();
this.filteredList = new ArrayList<BlobDescriptor>();
this.dataSetObservable = new DataSetObservable();
this.filter = "";
keyComparator = Slob.Strength.QUATERNARY.comparator;
nameComparatorAsc = new Comparator<BlobDescriptor>() {
@Override
public int compare(BlobDescriptor b1, BlobDescriptor b2) {
return keyComparator.compare(b1.key, b2.key);
}
};
nameComparatorDesc = Collections.reverseOrder(nameComparatorAsc);
timeComparatorAsc = new Comparator<BlobDescriptor>() {
@Override
public int compare(BlobDescriptor b1, BlobDescriptor b2) {
return Util.compare(b1.createdAt, b2.createdAt);
}
};
timeComparatorDesc = Collections.reverseOrder(timeComparatorAsc);
lastAccessComparator = new Comparator<BlobDescriptor>() {
@Override
public int compare(BlobDescriptor b1, BlobDescriptor b2) {
return Util.compare(b2.lastAccess, b1.lastAccess);
}
};
order = SortOrder.TIME;
ascending = false;
setSort(order, ascending);
try {
filterCollator = (RuleBasedCollator) Collator.getInstance(Locale.ROOT).clone();
} catch (CloneNotSupportedException e) {
throw new RuntimeException(e);
}
filterCollator.setStrength(Collator.PRIMARY);
filterCollator.setAlternateHandlingShifted(true);
handler = new Handler(Looper.getMainLooper());
}
示例9: getAccountObservable
import android.database.DataSetObservable; //导入依赖的package包/类
@Override
public DataSetObservable getAccountObservable() {
return mAccountObservable;
}
示例10: getDrawerObservable
import android.database.DataSetObservable; //导入依赖的package包/类
@Override
public DataSetObservable getDrawerObservable() {
return mDrawerObservable;
}
示例11: getDrawerObserverable
import android.database.DataSetObservable; //导入依赖的package包/类
@Override
public DataSetObservable getDrawerObserverable() {
return mDrawerObservable;
}
示例12: getFolderObserverable
import android.database.DataSetObservable; //导入依赖的package包/类
@Override
public DataSetObservable getFolderObserverable() {
return mFolderObservable;
}
示例13: getDataSetObservable
import android.database.DataSetObservable; //导入依赖的package包/类
/**
* This is hidden until the data set change model has been re-evaluated.
* @hide
*/
protected DataSetObservable getDataSetObservable() {
return mDataSetObservable;
}
示例14: ObservableSparseArrayCompat
import android.database.DataSetObservable; //导入依赖的package包/类
public ObservableSparseArrayCompat()
{
super();
mDataSetObservable = new DataSetObservable();
}
示例15: getDataSetObservable
import android.database.DataSetObservable; //导入依赖的package包/类
public DataSetObservable getDataSetObservable()
{
return mDataSetObservable;
}