
package uk.co.wingpath.gui;

import javax.swing.*;

/**
* This interface is used by {@link SimpleDialog SimpleDialog} to report
* closing of the dialog by the user.
*/
public interface DialogCloseAction
{
    /**
    * This method is called when the user attempts to close the dialog.
    * The method would normally call {@code dialog.dispose()} or
    * {@code dialog.setVisible(false)}. 
    * @param dialog the window of the dialog being closed.
    */
    void dialogClosing (WWindow dialog);
}

