at.spardat.xma.page
Class NotificationBox

java.lang.Object
  extended byat.spardat.xma.page.NotificationBox

public class NotificationBox
extends java.lang.Object

Utility methods to display INotification- or Throwable-objects in a modal message box.


Constructor Summary
NotificationBox()
           
 
Method Summary
static int show(java.lang.Object o, org.eclipse.swt.widgets.Shell parent, XMAContext ctx, XMASessionClient session)
          Shows an INotification or a java.lang.Throwable in a modal message box.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationBox

public NotificationBox()
Method Detail

show

public static int show(java.lang.Object o,
                       org.eclipse.swt.widgets.Shell parent,
                       XMAContext ctx,
                       XMASessionClient session)
Shows an INotification or a java.lang.Throwable in a modal message box.

Parameters:
o - the object to show, either a INotification or a Throwable.
parent - the parent shell. This parameter should not be null as this might not be supported in future versions of SWT.
ctx - XMAContext to provide environmental information
session - the client session or null if not known.
Returns:
A reaction constant of the class INotification, this is one of the constants starting with praefix R_ and indicates the pressed push button on the message dialogue.