org.pentaho.di.ui.core.dialog
Class ShowMessageDialog

java.lang.Object
  extended by Dialog
      extended by org.pentaho.di.ui.core.dialog.ShowMessageDialog

public class ShowMessageDialog
extends Dialog

Dialog to enter a text. (descriptions etc.)

Since:
19-06-2003
Author:
Matt

Constructor Summary
ShowMessageDialog(Shell parent, int flags, String title, String message)
          Dialog to allow someone to show a text with an icon in front
ShowMessageDialog(Shell parent, int flags, String title, String message, boolean scroll)
          Dialog to allow someone to show a text with an icon in front
 
Method Summary
 void dispose()
           
 int getTimeOut()
           
 int open()
           
 void setTimeOut(int timeOut)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShowMessageDialog

public ShowMessageDialog(Shell parent,
                         int flags,
                         String title,
                         String message)
Dialog to allow someone to show a text with an icon in front

Parameters:
parent - The parent shell to use
flags - the icon to show using SWT flags: SWT.ICON_WARNING, SWT.ICON_ERROR, ... Also SWT.OK, SWT.CANCEL is allowed.
title - The dialog title
message - The message to display
text - The text to display or edit

ShowMessageDialog

public ShowMessageDialog(Shell parent,
                         int flags,
                         String title,
                         String message,
                         boolean scroll)
Dialog to allow someone to show a text with an icon in front

Parameters:
parent - The parent shell to use
flags - the icon to show using SWT flags: SWT.ICON_WARNING, SWT.ICON_ERROR, ... Also SWT.OK, SWT.CANCEL is allowed.
title - The dialog title
message - The message to display
text - The text to display or edit
scroll - Set the dialog to a default size and enable scrolling
Method Detail

open

public int open()

dispose

public void dispose()

getTimeOut

public int getTimeOut()
Returns:
the timeOut

setTimeOut

public void setTimeOut(int timeOut)
Parameters:
timeOut - the timeOut to set