1 package pl.edu.agh.cast.ui.util;
2
3
4 /**
5 * An interface for utility class which shows dialogs of different types. It is introduce to avoid straight connection
6 * between logic and GUI classes.
7 *
8 * @author AGH CAST Team
9 */
10 public interface IMsgBoxHelper {
11
12 /**
13 * Shows Y/N question box.
14 *
15 * @param title
16 * message box title
17 * @param msg
18 * question message
19 * @return message box result
20 */
21 public int showQuestionBox(String title, String msg);
22
23 /**
24 * Shows warning box.
25 *
26 * @param title
27 * message box title
28 * @param msg
29 * warning message
30 * @return message box result
31 */
32 public int showWarningBox(String title, String msg);
33
34 /**
35 * Shows warning Y/N question box.
36 *
37 * @param title
38 * message box title
39 * @param msg
40 * question message
41 * @return message box result
42 */
43 public int showWarningQuestionBox(String title, String msg);
44
45 /**
46 * Shows error box.
47 *
48 * @param title
49 * message box title
50 * @param msg
51 * error message
52 * @return message box result
53 */
54 public int showErrorBox(String title, String msg);
55
56 /**
57 * Shows information box.
58 *
59 * @param title
60 * message box title
61 * @param msg
62 * info message
63 * @return message box result
64 */
65 public int showInfoBox(String title, String msg);
66 }