View Javadoc

1   /*
2    *  soapUI, copyright (C) 2004-2007 eviware.com 
3    *
4    *  soapUI is free software; you can redistribute it and/or modify it under the 
5    *  terms of version 2.1 of the GNU Lesser General Public License as published by 
6    *  the Free Software Foundation.
7    *
8    *  soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without 
9    *  even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
10   *  See the GNU Lesser General Public License for more details at gnu.org.
11   */
12  
13  package com.eviware.soapui.support;
14  
15  import java.awt.Dimension;
16  
17  import com.eviware.x.dialogs.XDialogs;
18  import com.eviware.x.dialogs.XProgressDialog;
19  
20  public class ConsoleDialogs implements XDialogs
21  {
22  	public boolean confirm(String question, String title)
23  	{
24  		return false;
25  	}
26  
27  	public Boolean confirmOrCancel(String question, String title)
28  	{
29  		return null;
30  	}
31  
32  	public String prompt(String question, String title, String value)
33  	{
34  		return null;
35  	}
36  
37  	public String prompt(String question, String title)
38  	{
39  		return null;
40  	}
41  
42  	public String prompt(String question, String title, Object[] objects)
43  	{
44  		return null;
45  	}
46  
47  	public String prompt(String question, String title, Object[] objects, String value)
48  	{
49  		return null;
50  	}
51  
52  	public void showErrorMessage(String message)
53  	{
54  		System.err.println( message );
55  	}
56  
57  	public void showInfoMessage(String message)
58  	{
59  		System.out.println( message );
60  	}
61  
62  	public void showInfoMessage(String message, String title)
63  	{
64  		System.out.println( title + ": " + message );
65  	}
66  
67  	public XProgressDialog createProgressDialog(String label, int length, String initialValue, boolean canCancel)
68  	{
69  		return new NullProgressDialog();
70  	}
71  
72  	public void showExtendedInfo( String title, String description, String content, Dimension size )
73  	{
74  	}
75  
76  	public boolean confirmExtendedInfo( String title, String description, String content, Dimension size )
77  	{
78  		return false;
79  	}
80  
81  	public Boolean confirmOrCancleExtendedInfo( String title, String description, String content, Dimension size )
82  	{
83  		return null;
84  	}
85  }