本文整理汇总了Java中com.pedrogomez.renderers.ListAdapteeCollection类的典型用法代码示例。如果您正苦于以下问题:Java ListAdapteeCollection类的具体用法?Java ListAdapteeCollection怎么用?Java ListAdapteeCollection使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ListAdapteeCollection类属于com.pedrogomez.renderers包,在下文中一共展示了ListAdapteeCollection类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreate
import com.pedrogomez.renderers.ListAdapteeCollection; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
component().inject(this);
adapter = new RVRendererAdapter<User>(
LayoutInflater.from(this),
new UserRendererBuilder(this, mUserClickListener),
new ListAdapteeCollection<User>(new ArrayList<User>())
);
presenter = new UserListPresenter(this, getUsersInteractor);
presenter.setView(this);
presenter.initialize();
initializeRecyclerView();
}
示例2: CartChooserFragmentViewModel
import com.pedrogomez.renderers.ListAdapteeCollection; //导入依赖的package包/类
@Inject
CartChooserFragmentViewModel(CartModel model)
{
mModel = model;
mCartViewModelCollection = new ListAdapteeCollection<>();
update();
}
示例3: ProjectFragmentViewModel
import com.pedrogomez.renderers.ListAdapteeCollection; //导入依赖的package包/类
@Inject
ProjectFragmentViewModel(ProjectModel model, CartModel cartModel)
{
mModel = model;
mCartModel = cartModel;
mProjectViewModelCollection = new ListAdapteeCollection<>();
mEventBus.register(this);
update();
}
示例4: ShowInventoryFragmentViewModel
import com.pedrogomez.renderers.ListAdapteeCollection; //导入依赖的package包/类
@Inject
public ShowInventoryFragmentViewModel(InventoryModel model) {
mModel = model;
mModel.getInventoryItems().setListener(this);
mModel.getInventory();
mEventBus.register(this);
mShowInventoryViewModelCollection = new ListAdapteeCollection<>();
}
示例5: ProductSearchFragmentViewModel
import com.pedrogomez.renderers.ListAdapteeCollection; //导入依赖的package包/类
@Inject
public ProductSearchFragmentViewModel(CategoryModel categoryModel, ProductModel productModel, AutoCompleteModel
autoCompleteModel){
mProductModel = productModel;
mAutoCompleteModel = autoCompleteModel;
mCategoryModel = categoryModel;
mEventBus = EventBus.getDefault();
mProductModel.getProducts().setListener(this);
mCategoryModel.getCategoryProducts().setListener(this);
mProductSearchViewModelCollection = new ListAdapteeCollection<>();
}
示例6: CartSlidingUpPanelViewModel
import com.pedrogomez.renderers.ListAdapteeCollection; //导入依赖的package包/类
@Inject
public CartSlidingUpPanelViewModel(CartModel model) {
mModel = model;
mModel.getCartEntries().setListener(this);
mCartEntryViewModelCollection = new ListAdapteeCollection<>();
}
示例7: generateListAdapteeVideoCollection
import com.pedrogomez.renderers.ListAdapteeCollection; //导入依赖的package包/类
public AdapteeCollection<Video> generateListAdapteeVideoCollection(int videoCount) {
List<Video> videos = new LinkedList<Video>();
for (int i = 0; i < videoCount; i++) {
Video video = generateRandomVideo();
videos.add(video);
}
return new ListAdapteeCollection<Video>(videos);
}
示例8: getProjectViewModelCollection
import com.pedrogomez.renderers.ListAdapteeCollection; //导入依赖的package包/类
public ListAdapteeCollection<ProjectViewModel> getProjectViewModelCollection() {
return mProjectViewModelCollection;
}
示例9: ReservationFragmentViewModel
import com.pedrogomez.renderers.ListAdapteeCollection; //导入依赖的package包/类
public ReservationFragmentViewModel() {
mToolUsageViewModelCollection = new ListAdapteeCollection<>();
}
示例10: NewsFragmentViewModel
import com.pedrogomez.renderers.ListAdapteeCollection; //导入依赖的package包/类
@Inject
public NewsFragmentViewModel(NewsModel model) {
mModel = model;
model.getNews().setListener(this);
mNewsViewModelCollection = new ListAdapteeCollection<>();
}
示例11: ICalFragmentViewModel
import com.pedrogomez.renderers.ListAdapteeCollection; //导入依赖的package包/类
@Inject
public ICalFragmentViewModel(ICalModel model) {
mModel = model;
mModel.getICalsList().setListener(this);
mICalViewModelCollection = new ListAdapteeCollection<>();
}
示例12: CheckoutViewModel
import com.pedrogomez.renderers.ListAdapteeCollection; //导入依赖的package包/类
public CheckoutViewModel() {
mCartEntryViewModelCollection = new ListAdapteeCollection<>();
}