org.formaria.swt
Class MessageBox

java.lang.Object
  extended by org.eclipse.swt.widgets.MessageBox
      extended by org.formaria.swt.MessageBox
All Implemented Interfaces:
MessageBoxSetup

public class MessageBox
extends org.eclipse.swt.widgets.MessageBox
implements MessageBoxSetup

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

Copyright (c) Formaria Ltd., 2008
License: see license.txt $Revision: 2.7 $


Constructor Summary
MessageBox(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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageBox

public MessageBox(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


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 MessageBoxSetup
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