pl.edu.agh.cast.ui.util
Interface IMsgBoxHelper

All Known Implementing Classes:
MsgBoxHelper

public interface IMsgBoxHelper

An interface for utility class which shows dialogs of different types. It is introduce to avoid straight connection between logic and GUI classes.

Author:
AGH CAST Team

Method Summary
 int showErrorBox(String title, String msg)
          Shows error box.
 int showInfoBox(String title, String msg)
          Shows information box.
 int showQuestionBox(String title, String msg)
          Shows Y/N question box.
 int showWarningBox(String title, String msg)
          Shows warning box.
 int showWarningQuestionBox(String title, String msg)
          Shows warning Y/N question box.
 

Method Detail

showQuestionBox

int showQuestionBox(String title,
                    String msg)
Shows Y/N question box.

Parameters:
title - message box title
msg - question message
Returns:
message box result

showWarningBox

int showWarningBox(String title,
                   String msg)
Shows warning box.

Parameters:
title - message box title
msg - warning message
Returns:
message box result

showWarningQuestionBox

int showWarningQuestionBox(String title,
                           String msg)
Shows warning Y/N question box.

Parameters:
title - message box title
msg - question message
Returns:
message box result

showErrorBox

int showErrorBox(String title,
                 String msg)
Shows error box.

Parameters:
title - message box title
msg - error message
Returns:
message box result

showInfoBox

int showInfoBox(String title,
                String msg)
Shows information box.

Parameters:
title - message box title
msg - info message
Returns:
message box result


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.