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