@Override
    public Object getValueAt(int i, int i1) {
        Carpart carpart = carparts.get(i);
        switch (i1) {
            case 0:
                return carpart.getId();
            case 1:
                return carpart.getName();
            case 2:
                return carpart.getPrice();
            case 3:
                return carpart.getNumber();
            default:
                return null;
        }
    }