Подскажите, как передавать несколько строк в другой экран.
Я смог передать только одну строку в другой экран:
Сведения
@Subscribe(“punishmentsTable.myAction”)
public void onOrdersTableMyAction(Action.ActionPerformedEvent event) {
Punishment punishment = punishmentsTable.getSingleSelected();
Page2 myViewScreen = screenBuilders.screen(this)
.withScreenClass(Page2.class)
.build();
myViewScreen.setPunishment(punishment);
myViewScreen.show();
}
Сведения
@Inject
private InstanceContainer punishmentsDc;
public void setPunishment(Set<Punishment> punishment1) {
punishmentsDc.setItem((Punishment) punishment1);
}
Я заменил getSingleSelected() на getSelected(), но у меня не получилось