net.xoetrope.swt
Class XMessageBox

java.lang.Object
  extended by org.eclipse.swt.widgets.Dialog
      extended by org.eclipse.swt.widgets.MessageBox
          extended by net.xoetrope.swt.XMessageBox
All Implemented Interfaces:
XMessageBoxSetup

public class XMessageBox
extends org.eclipse.swt.widgets.MessageBox
implements XMessageBoxSetup

Creates a simple modal MessageBox with a label for the text and a close button

Copyright (c) Xoetrope Ltd., 2001-2006
License: see license.txt $Revision: 2.7 $


Constructor Summary
XMessageBox(java.lang.Object parent)
          Create a new checkbox
 
Method Summary
protected  void checkSubclass()
          Suppress the subclassing exception
 void setup(java.lang.String title, java.lang.String msg, java.lang.Object size, java.lang.Object page)
          Setup the content of the message box
 
Methods inherited from class org.eclipse.swt.widgets.MessageBox
getMessage, open, setMessage
 
Methods inherited from class org.eclipse.swt.widgets.Dialog
getParent, getStyle, getText, setText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMessageBox

public XMessageBox(java.lang.Object parent)
Create a new checkbox

Parameters:
parent - the message box parent, normally the shell
Method Detail

checkSubclass

protected void checkSubclass()
Suppress the subclassing exception

Overrides:
checkSubclass in class org.eclipse.swt.widgets.Dialog

setup

public void setup(java.lang.String title,
                  java.lang.String msg,
                  java.lang.Object size,
                  java.lang.Object page)
Setup the content of the message box

Specified by:
setup in interface XMessageBoxSetup
Parameters:
title - the message box title or caption
msg - the text of the message
size - the size of the owner page
page - the content page