예제 #1
0
 private void model2Container(
     final PhaseDataCompetition phaseData, final BeanItemContainer<TimeEntry> itemContainer) {
   itemContainer.removeAllItems();
   itemContainer.addAll(phaseData.getEntries());
 }
예제 #2
0
 private void container2Model(
     final BeanItemContainer<TimeEntry> itemContainer, final PhaseDataCompetition phaseData) {
   final List<TimeEntry> entries = phaseData.getEntries();
   entries.clear();
   entries.addAll(itemContainer.getItemIds());
 }