////////////////////////////////////////
// Programming project code
// UniBw M, 2022, 2023, 2024
// www.unibw.de/inf2
// (c) Mark Minas (mark.minas@unibw.de)
////////////////////////////////////////

package pp.dialog;

import com.simsilica.lemur.Button;

/**
 * Represents a simple dialog with OK and Cancel buttons.
 * It extends the Dialog class and provides methods to get and set these buttons.
 */
public class SimpleDialog extends Dialog {
    private Button okButton;
    private Button cancelButton;

    /**
     * Constructs a SimpleDialog with the specified DialogManager.
     *
     * @param manager the DialogManager to manage this dialog
     */
    public SimpleDialog(DialogManager manager) {
        super(manager);
    }

    /**
     * Returns the OK button of this dialog.
     *
     * @return the OK button
     */
    public Button getOkButton() {
        return okButton;
    }

    /**
     * Sets the OK button of this dialog.
     *
     * @param okButton the OK button to set
     */
    void setOkButton(Button okButton) {
        this.okButton = okButton;
    }

    /**
     * Returns the Cancel button of this dialog.
     *
     * @return the Cancel button
     */
    public Button getCancelButton() {
        return cancelButton;
    }

    /**
     * Sets the Cancel button of this dialog.
     *
     * @param cancelButton the Cancel button to set
     */
    void setCancelButton(Button cancelButton) {
        this.cancelButton = cancelButton;
    }
}
