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


Java CategorysEntity類代碼示例

本文整理匯總了Java中cn.eoe.app.entity.CategorysEntity的典型用法代碼示例。如果您正苦於以下問題:Java CategorysEntity類的具體用法?Java CategorysEntity怎麽用?Java CategorysEntity使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


CategorysEntity類屬於cn.eoe.app.entity包,在下文中一共展示了CategorysEntity類的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: addFragment

import cn.eoe.app.entity.CategorysEntity; //導入依賴的package包/類
public void addFragment(List<CategorysEntity> mList, List<Object> listObject) {
	tabs.addAll(mList);
	for (int i = 0; i < listObject.size(); i++) {
		Object object = listObject.get(i);
		if (object instanceof NewsCategoryListEntity) {
			addTab(new NewsFragment(mActivity,
					((NewsCategoryListEntity) listObject.get(i))));
		} else if (object instanceof BlogsCategoryListEntity) {
			addTab(new BlogFragment(mActivity,
					((BlogsCategoryListEntity) listObject.get(i))));
		} else if (object instanceof WikiCategoryListEntity) {
			addTab(new WikiFragment(mActivity,
					((WikiCategoryListEntity) listObject.get(i))));
		}
	}
}
 
開發者ID:shengge,項目名稱:eoe-android-app,代碼行數:17,代碼來源:BasePageAdapter.java

示例2: doInBackground

import cn.eoe.app.entity.CategorysEntity; //導入依賴的package包/類
@Override
		protected Map<String, Object> doInBackground(BaseDao... params) {
			BaseDao dao = params[0];
			List<CategorysEntity> categorys = new ArrayList<CategorysEntity>();
			Map<String, Object> map = new HashMap<String, Object>();
			if ((categoryList = searchDao.mapperJson()) != null) {
				categorys = searchDao.getCategorys();
//				map.put("tabs", categorys);
				map.put("list", categoryList);
				return map;
			} else {
				return null;
			}

		}
 
開發者ID:shengge,項目名稱:eoe-android-app,代碼行數:16,代碼來源:SearchActivity.java

示例3: getCategorys

import cn.eoe.app.entity.CategorysEntity; //導入依賴的package包/類
public List<CategorysEntity> getCategorys() {
	CategorysEntity cate1 = new CategorysEntity();

	cate1.setName(cate_name);

	tabs.add(cate1);
	return tabs;
}
 
開發者ID:shengge,項目名稱:eoe-android-app,代碼行數:9,代碼來源:SearchDao.java

示例4: getCategorys

import cn.eoe.app.entity.CategorysEntity; //導入依賴的package包/類
public List<CategorysEntity> getCategorys() {
	CategorysEntity cate1 = new CategorysEntity();
	CategorysEntity cate2 = new CategorysEntity();
	CategorysEntity cate3 = new CategorysEntity();
	cate1.setName("精選資訊");
	cate2.setName("精選博客");
	cate3.setName("精選教程");
	tabs.add(cate1);
	tabs.add(cate2);
	tabs.add(cate3);
	return tabs;
}
 
開發者ID:shengge,項目名稱:eoe-android-app,代碼行數:13,代碼來源:TopDao.java

示例5: getCategorys

import cn.eoe.app.entity.CategorysEntity; //導入依賴的package包/類
public List<CategorysEntity> getCategorys() {
	return categorys;
}
 
開發者ID:shengge,項目名稱:eoe-android-app,代碼行數:4,代碼來源:BaseResponseData.java

示例6: setCategorys

import cn.eoe.app.entity.CategorysEntity; //導入依賴的package包/類
public void setCategorys(List<CategorysEntity> categorys) {
	this.categorys = categorys;
}
 
開發者ID:shengge,項目名稱:eoe-android-app,代碼行數:4,代碼來源:BaseResponseData.java

示例7: addNullFragment

import cn.eoe.app.entity.CategorysEntity; //導入依賴的package包/類
public void addNullFragment() {
	CategorysEntity cate = new CategorysEntity();
	cate.setName("連接錯誤");
	tabs.add(cate);
	addTab(new HttpErrorFragment());
}
 
開發者ID:shengge,項目名稱:eoe-android-app,代碼行數:7,代碼來源:BasePageAdapter.java

示例8: doInBackground

import cn.eoe.app.entity.CategorysEntity; //導入依賴的package包/類
@Override
protected Map<String, Object> doInBackground(BaseDao... params) {
    BaseDao dao = params[0];
    List<CategorysEntity> categorys = new ArrayList<CategorysEntity>();
    Map<String, Object> map = new HashMap<String, Object>();
    if (dao instanceof TopDao) {
        mTag = 0;
        if ((categoryList = topDao.mapperJson(mUseCache)) != null) {

            categorys = topDao.getCategorys();
            map.put("tabs", categorys);
            map.put("list", categoryList);
        }
    } else if (dao instanceof BlogsDao) {
        mTag = 3;
        if ((responseData = blogsDao.mapperJson(mUseCache)) != null) {
            categoryList = (List) responseData.getList();
            categorys = responseData.getCategorys();
            map.put("tabs", categorys);
            map.put("list", categoryList);
        }
    } else if (dao instanceof NewsDao) {
        mTag = 1;
        if ((newsResponseData = newsDao.mapperJson(mUseCache)) != null) {
            categoryList = (List) newsResponseData.getList();
            categorys = newsResponseData.getCategorys();
            map.put("tabs", categorys);
            map.put("list", categoryList);
        }
    } else if (dao instanceof WikiDao) {
        mTag = 2;
        if ((wikiResponseData = wikiDao.mapperJson(mUseCache)) != null) {
            categoryList = (List) wikiResponseData.getList();
            categorys = wikiResponseData.getCategorys();
            map.put("tabs", categorys);
            map.put("list", categoryList);
        }
    } else {
        return null;
    }
    return map;
}
 
開發者ID:shengge,項目名稱:eoe-android-app,代碼行數:43,代碼來源:MainActivity.java

示例9: doInBackground

import cn.eoe.app.entity.CategorysEntity; //導入依賴的package包/類
@Override
protected Map<String, Object> doInBackground(BaseDao... params) {
	BaseDao dao = params[0];
	List<CategorysEntity> categorys = new ArrayList<CategorysEntity>();
	Map<String, Object> map = new HashMap<String, Object>();
	if (dao instanceof TopDao) {
		mTag = 0;
		if ((categoryList = topDao.mapperJson(mUseCache)) != null) {

			categorys = topDao.getCategorys();
			map.put("tabs", categorys);
			map.put("list", categoryList);
		}
	} else if (dao instanceof BlogsDao) {
		mTag = 3;
		if ((responseData = blogsDao.mapperJson(mUseCache)) != null) {
			categoryList = (List) responseData.getList();
			categorys = responseData.getCategorys();
			map.put("tabs", categorys);
			map.put("list", categoryList);
		}
	} else if (dao instanceof NewsDao) {
		mTag = 1;
		if ((newsResponseData = newsDao.mapperJson(mUseCache)) != null) {
			categoryList = (List) newsResponseData.getList();
			categorys = newsResponseData.getCategorys();
			map.put("tabs", categorys);
			map.put("list", categoryList);
		}
	} else if (dao instanceof WikiDao) {
		mTag = 2;
		if ((wikiResponseData = wikiDao.mapperJson(mUseCache)) != null) {
			categoryList = (List) wikiResponseData.getList();
			categorys = wikiResponseData.getCategorys();
			map.put("tabs", categorys);
			map.put("list", categoryList);
		}
	} else {
		return null;
	}
	return map;
}
 
開發者ID:RyanLee7,項目名稱:eoe_android,代碼行數:43,代碼來源:MainActivity.java


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