View Javadoc
1 package org.neuclear.commons.swing; 2 3 4 /* 5 * The NeuClear Project and it's libraries are 6 * (c) 2002-2004 Antilles Software Ventures SA 7 * For more information see: http://neuclear.org 8 * 9 * This library is free software; you can redistribute it and/or 10 * modify it under the terms of the GNU Lesser General Public 11 * License as published by the Free Software Foundation; either 12 * version 2.1 of the License, or (at your option) any later version. 13 * 14 * This library is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 * Lesser General Public License for more details. 18 * 19 * You should have received a copy of the GNU Lesser General Public 20 * License along with this library; if not, write to the Free Software 21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22 */ 23 24 /*** 25 * User: pelleb 26 * Date: May 18, 2004 27 * Time: 11:51:34 AM 28 */ 29 public abstract class AbstractDialogRunner extends WaitForInput { 30 31 public AbstractDialogRunner(NeuClearDialog dia) { 32 this.dia = dia; 33 } 34 35 public void run() { 36 dia.open(); 37 dia.toFront(); 38 } 39 40 public void info(String error) { 41 dia.switchToMain(); 42 dia.message.error(error); 43 } 44 45 public void error(String error) { 46 dia.switchToMain(); 47 dia.message.error(error); 48 } 49 50 public void error(Exception error) { 51 dia.switchToMain(); 52 dia.message.error(error); 53 } 54 55 private final NeuClearDialog dia; 56 }

This page was automatically generated by Maven