}
@Override
public Object getValueAt(int row, int col) {
try {
SheduleHolidayData holiday = shl.iterator().get(row);
if (col == COL_DATE) {
Calendar cal = GregorianCalendar.getInstance();
cal.set(Calendar.MONTH, holiday.getMonth() - 1);
return String.format("%02d %s", holiday.getDay(),
cal.getDisplayName(Calendar.MONTH, Calendar.SHORT, new Locale("RU")));
} else if (col == COL_DESC) {
return holiday.getDescription();
}
} catch (ClipsException e) {
return new ErrorValue(e);
}
return null;