本文整理匯總了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))));
}
}
}
示例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;
}
}
示例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;
}
示例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;
}
示例5: getCategorys
import cn.eoe.app.entity.CategorysEntity; //導入依賴的package包/類
public List<CategorysEntity> getCategorys() {
return categorys;
}
示例6: setCategorys
import cn.eoe.app.entity.CategorysEntity; //導入依賴的package包/類
public void setCategorys(List<CategorysEntity> categorys) {
this.categorys = categorys;
}
示例7: addNullFragment
import cn.eoe.app.entity.CategorysEntity; //導入依賴的package包/類
public void addNullFragment() {
CategorysEntity cate = new CategorysEntity();
cate.setName("連接錯誤");
tabs.add(cate);
addTab(new HttpErrorFragment());
}
示例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;
}
示例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;
}