net.sourceforge.rssowl.controller
Class MessageBoxFactory

java.lang.Object
  extended bynet.sourceforge.rssowl.controller.MessageBoxFactory

public class MessageBoxFactory
extends Object

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

Version:
1.1.3
Author:
Benjamin Pasero

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

Constructor Detail

MessageBoxFactory

private MessageBoxFactory()
This utility class constructor is hidden

Method Detail

showError

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

Parameters:
shell - The shell
e - The exception

showError

public static void showError(org.eclipse.swt.widgets.Shell shell,
                             String errorMsg)
Show an error message dialog

Parameters:
shell - The shell
errorMsg - The error message

showMessage

public static int showMessage(org.eclipse.swt.widgets.Shell shell,
                              int style,
                              String title,
                              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


RSSOwl - RSS / RDF / Atom Newsreader

SourceForge.net Logo