001    /*
002      Copyright (C) 2001-2003 Renaud Pawlak <renaud@aopsys.com>
003                              Laurent Martelli <laurent@aopsys.com>
004      
005      This program is free software; you can redistribute it and/or modify
006      it under the terms of the GNU Lesser General Public License as
007      published by the Free Software Foundation; either version 2 of the
008      License, or (at your option) any later version.
009    
010      This program is distributed in the hope that it will be useful,
011      but WITHOUT ANY WARRANTY; without even the implied warranty of
012      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
013      GNU Lesser General Public License for more details.
014    
015      You should have received a copy of the GNU Lesser General Public License
016      along with this program; if not, write to the Free Software
017      Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
018    
019    package org.objectweb.jac.aspects.gui;
020    
021    /**
022     * A dialog box interface.
023     */
024    public interface DialogView extends WindowView {
025        /**
026         * Waits until the dialog is closed or timeout iccurs.
027         * @return true if the dialog was validated with the OK button by
028         * the user, false otherwise 
029         */
030        boolean waitForClose() throws TimeoutException;
031    
032        /**
033         * Restore context attributes memorized at creation time
034         */
035        void restoreContext();
036    }