當前位置: 首頁>>代碼示例>>Java>>正文


Java DataSetObservable類代碼示例

本文整理匯總了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;
    }
}
 
開發者ID:twitter,項目名稱:twitter-kit-android,代碼行數:19,代碼來源:TimelineDelegate.java

示例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;
}
 
開發者ID:ChiangC,項目名稱:FMTech,代碼行數:9,代碼來源:ImageStripAdapter.java

示例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);
}
 
開發者ID:twitter,項目名稱:twitter-kit-android,代碼行數:13,代碼來源:TimelineDelegateTest.java

示例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;
}
 
開發者ID:itkach,項目名稱:aard2-android,代碼行數:8,代碼來源:BaseDescriptorList.java

示例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();
}
 
開發者ID:mcxtzhang,項目名稱:all-base-adapter,代碼行數:7,代碼來源:BaseAdapter.java

示例6: PagerAdapter

import android.database.DataSetObservable; //導入依賴的package包/類
public PagerAdapter()
{
    a = new DataSetObservable();
}
 
開發者ID:vishnudevk,項目名稱:MiBandDecompiled,代碼行數:5,代碼來源:PagerAdapter.java

示例7: PagerAdapter

import android.database.DataSetObservable; //導入依賴的package包/類
public PagerAdapter()
{
    mObservable = new DataSetObservable();
}
 
開發者ID:Hamz-a,項目名稱:MyCTFWriteUps,代碼行數:5,代碼來源:PagerAdapter.java

示例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());
}
 
開發者ID:itkach,項目名稱:aard2-android,代碼行數:49,代碼來源:BlobDescriptorList.java

示例9: getAccountObservable

import android.database.DataSetObservable; //導入依賴的package包/類
@Override
public DataSetObservable getAccountObservable() {
    return mAccountObservable;
}
 
開發者ID:george-zhang-work,項目名稱:dove,代碼行數:5,代碼來源:ReaderActivity.java

示例10: getDrawerObservable

import android.database.DataSetObservable; //導入依賴的package包/類
@Override
public DataSetObservable getDrawerObservable() {
    return mDrawerObservable;
}
 
開發者ID:george-zhang-work,項目名稱:dove,代碼行數:5,代碼來源:ReaderActivity.java

示例11: getDrawerObserverable

import android.database.DataSetObservable; //導入依賴的package包/類
@Override
public DataSetObservable getDrawerObserverable() {
    return mDrawerObservable;
}
 
開發者ID:george-zhang-work,項目名稱:dove,代碼行數:5,代碼來源:AbstractActivityController.java

示例12: getFolderObserverable

import android.database.DataSetObservable; //導入依賴的package包/類
@Override
public DataSetObservable getFolderObserverable() {
    return mFolderObservable;
}
 
開發者ID:george-zhang-work,項目名稱:dove,代碼行數:5,代碼來源:AbstractActivityController.java

示例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;
    
}
 
開發者ID:itsmechlark,項目名稱:greendao-cipher,代碼行數:9,代碼來源:AbstractCursor.java

示例14: ObservableSparseArrayCompat

import android.database.DataSetObservable; //導入依賴的package包/類
public ObservableSparseArrayCompat()
{
    super();
    mDataSetObservable = new DataSetObservable();
}
 
開發者ID:dmfs,項目名稱:opentasks,代碼行數:6,代碼來源:ObservableSparseArrayCompat.java

示例15: getDataSetObservable

import android.database.DataSetObservable; //導入依賴的package包/類
public DataSetObservable getDataSetObservable()
{
    return mDataSetObservable;
}
 
開發者ID:dmfs,項目名稱:opentasks,代碼行數:5,代碼來源:ObservableSparseArrayCompat.java


注:本文中的android.database.DataSetObservable類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。