public int getRowCount() {
return tarifCourse.size();
}
public Object getValueAt(int rowIndex, int columnIndex) {
TarifCourse tarifCourseAtRow = tarifCourse.get(rowIndex);
switch (columnIndex) {
case 0:
return tarifCourseAtRow.getId();
case 1:
return new SimpleDateFormat(MotsCleProjet.DATE_FORMAT).format(tarifCourseAtRow.getDateVigueur());
case 2:
return tarifCourseAtRow.getPrixTarif1();
case 3:
return tarifCourseAtRow.getPrixTarif2();
case 4:
return tarifCourseAtRow.getPrixPriseCharge();
case 5:
return tarifCourseAtRow.getPrixHeureAttente();
case 6:
return tarifCourseAtRow.getPrixForfaitNuit();
default:
throw new IllegalStateException("Le nombre de colonne ne peut pas d�passer " + NOMBRE_COLONNE + ". index demand� " + columnIndex);
}
}