return true;
}
@Override
public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
CustomerService customerService = (CustomerService) dbObjects
.get(rowIndex);
switch (columnIndex) {
case 4:
Service service = (Service) aValue;
customerService.setService(service);
fireTableDataChanged();
break;
case 5 : customerService.setServiceDate((Date)aValue);
break;
case 6:
customerService.setPrice(Double.parseDouble(aValue.toString()));
break;
case 7:
customerService.setCharge(Double.parseDouble(aValue.toString()));
break;
case 8:
customerService.setFees(Double.parseDouble(aValue.toString()));
break;
case 9:
customerService.setNotes((String) aValue);
break;
case 0:
if ("Delete".equals(aValue) && rowIndex > 0)
removeDBObject(customerService);
else if ("Add".equals(aValue))
addDBObject(new CustomerService());
default:
break;
}
}