package org.jabref.gui.collab;

import javafx.scene.Node;

import org.jabref.gui.undo.NamedCompound;
import org.jabref.model.database.BibDatabaseContext;

abstract class DatabaseChangeViewModel {

    protected String name;
    private boolean accepted = true;

    DatabaseChangeViewModel() {
        name = "";
    }

    DatabaseChangeViewModel(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return name;
    }

    public boolean isAccepted() {
        return accepted;
    }

    public void setAccepted(boolean a) {
        accepted = a;
    }

    /**
     * This method returns a JComponent detailing the nature of the change.
     * @return JComponent
     */
    public abstract Node description();

    /**
     * Performs the change. This method is responsible for adding a proper undo edit to
     * the NamedCompound, so the change can be undone.
     * @param database the database that should be modified accordingly.
     * @param undoEdit NamedCompound The compound to hold the undo edits.
     */
    public abstract void makeChange(BibDatabaseContext database, NamedCompound undoEdit);

}

@@ -635,26 +635,28 @@
 turns a 
-JComponent
+%7B@link Node%7D
  detaili
@@ -669,16 +669,25 @@
  nature 
+and look 
 of the c
@@ -695,35 +695,93 @@
 ange
-.%0A     * @return JComponent
+, e.g. how it is displayed%0A     * @return Node the Node with the layout of the change
 %0A   

fix javadoc