1
2
3
4
5
6
7
8
9
10
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
86 public String selectXPath( String title, String info, String xml, String xpath )
87 {
88
89 return null;
90 }
91
92 public char[] promptPassword( String question, String title )
93 {
94
95 return null;
96 }
97
98 public int yesYesToAllOrNo( String question, String title )
99 {
100
101 return 2;
102 }
103 }