@Override
    public void setValueAt(Object value, int rowIndex, int columnIndex) {
        Element element = elements.get(rowIndex);
        switch (columnIndex) {
            case NAME_COLUMN:
                element.setName((String)value);
                break;
            case PRICE_COLUMN:
                int response;
                response = JOptionPane.showConfirmDialog(null, "   !");
                if (response == 0) {
                    element.setPrice((Double)value);
                }
                break;
            case COUNT_COLUMN:
                element.setCount((Integer)value);
                break;
        }
        // "elements"  .
        WriteBaseFileTXT writeBaseFileTXT = new WriteBaseFileTXT();
        try {
            writeBaseFileTXT.WriteFileBase(elements);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }