net.sourceforge.geeboss.view
Class MessageBoxFactory

java.lang.Object
  extended by net.sourceforge.geeboss.view.MessageBoxFactory

public class MessageBoxFactory
extends java.lang.Object

Class for displaying a MessageBox in an easy way in just one method call.


Method Summary
static void showError(org.eclipse.swt.widgets.Shell shell, java.lang.Exception e)
          Show an error dialog
static int showMessage(org.eclipse.swt.widgets.Shell shell, int style, java.lang.String title, java.lang.String message)
          Show a message box
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

showError

public static void showError(org.eclipse.swt.widgets.Shell shell,
                             java.lang.Exception e)
Show an error dialog

Parameters:
shell - The shell
e - The exception

showMessage

public static int showMessage(org.eclipse.swt.widgets.Shell shell,
                              int style,
                              java.lang.String title,
                              java.lang.String message)
Show a message box

Parameters:
shell - The shell
style - Style of the message box
title - Title of the message box
message - Message of the message box
Returns:
int Key that the user has clicked


Copyright (c) 2005 The Geeboss team (http://geeboss.sourceforge.net). All Rights Reserved.