I started to use GWTP for my project and I'm currently re-writing all my code to let it work with this library.
However, I struggle to understand how I use GWTP if I want e.g. a ListView
with ListItemView
items.
@Inject
public ToolsPresenter(PlaceManager placeManager, EventBus eventBus, MyView view, MyProxy proxy) {
super(eventBus, view, proxy, AdminToolPresenter.SLOT_AdminToolMainContent);
this.placeManager = placeManager;
ToolListView toolListView = new ToolListView(...)
ToolListPresenter toolListPresenter = new ToolListPresenter(....);
this.setInSlot(SLOT_ToolList, toolListPresenter);
}
What I want is to place my ListView
inside a slot. I am very certain that I can't do what is shown up there but I just don't get how I use just simple Widgets with GWTP.
Or am I doing this completely wrong and I should just extend a Composite
for ListView
and not use GWTP stuff here at all?
ListViewItem
e.g.? If I have many items that I want to add.. do I still use GWTPPresenter
andView
? I don't think each list item would have a slot, right? Unfortunately I can't any good examples or code where something like this is done. I only find code with navigation examples but nothing where I can see how "normal" widgets are treated :/ – Sectionalism