}
return model;
}
private KongaList createList(ListModel model, int visibleRows) {
KongaListFactory factory = ComponentFactories.newKongaListFactory();
factory.setVisibleRowCount(visibleRows);
factory.setPrototypeValue("XXXXXXXXXXXXXXXXXXXXXXXXX");
factory.setTransferHandler(new DropHandler());
KongaList list = factory.newList(model);
list.setSelectionConverter(new SelectionConverter() {
@Override
public Object fromSelection(Object listObject) {
return ((UserListUi) listObject).getUser();