Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.barteo.emulator.app.ui.swt
Class SwtMessageDialog  view SwtMessageDialog download SwtMessageDialog.java

java.lang.Object
  extended bycom.barteo.emulator.app.ui.swt.SwtDialog
      extended bycom.barteo.emulator.app.ui.swt.SwtMessageDialog

public class SwtMessageDialog
extends SwtDialog


Field Summary
private  java.lang.String[] buttonLabels
           
private  int defaultIndex
           
static int ERROR
           
static int INFORMATION
           
private  java.lang.String message
           
static int QUESTION
           
private  java.lang.String title
           
 
Fields inherited from class com.barteo.emulator.app.ui.swt.SwtDialog
btCancel, btOk, buttonBar, CANCEL, dialogArea, OK
 
Constructor Summary
SwtMessageDialog(org.eclipse.swt.widgets.Shell parentShell, java.lang.String title, java.lang.String message, int imageType, java.lang.String[] buttonLabels, int defaultIndex)
           
 
Method Summary
protected  void buttonPressed(int buttonId)
           
protected  void configureShell(org.eclipse.swt.widgets.Shell shell)
           
protected  org.eclipse.swt.widgets.Control createButtonBar(org.eclipse.swt.widgets.Composite parent)
           
protected  org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite composite)
           
static void openError(org.eclipse.swt.widgets.Shell parent, java.lang.String title, java.lang.String message)
           
static void openInformation(org.eclipse.swt.widgets.Shell parent, java.lang.String title, java.lang.String message)
           
static boolean openQuestion(org.eclipse.swt.widgets.Shell parent, java.lang.String title, java.lang.String message)
           
 
Methods inherited from class com.barteo.emulator.app.ui.swt.SwtDialog
cancelPressed, close, create, createContents, createShell, getInitialLocation, getInitialSize, getReturnCode, getShell, getShellListener, initializeBounds, okPressed, open, setReturnCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERROR

public static final int ERROR
See Also:
Constant Field Values

INFORMATION

public static final int INFORMATION
See Also:
Constant Field Values

QUESTION

public static final int QUESTION
See Also:
Constant Field Values

title

private java.lang.String title

message

private java.lang.String message

buttonLabels

private java.lang.String[] buttonLabels

defaultIndex

private int defaultIndex
Constructor Detail

SwtMessageDialog

public SwtMessageDialog(org.eclipse.swt.widgets.Shell parentShell,
                        java.lang.String title,
                        java.lang.String message,
                        int imageType,
                        java.lang.String[] buttonLabels,
                        int defaultIndex)
Method Detail

openError

public static void openError(org.eclipse.swt.widgets.Shell parent,
                             java.lang.String title,
                             java.lang.String message)

openInformation

public static void openInformation(org.eclipse.swt.widgets.Shell parent,
                                   java.lang.String title,
                                   java.lang.String message)

openQuestion

public static boolean openQuestion(org.eclipse.swt.widgets.Shell parent,
                                   java.lang.String title,
                                   java.lang.String message)

configureShell

protected void configureShell(org.eclipse.swt.widgets.Shell shell)
Overrides:
configureShell in class SwtDialog

createDialogArea

protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite composite)
Overrides:
createDialogArea in class SwtDialog

createButtonBar

protected org.eclipse.swt.widgets.Control createButtonBar(org.eclipse.swt.widgets.Composite parent)
Overrides:
createButtonBar in class SwtDialog

buttonPressed

protected void buttonPressed(int buttonId)
Overrides:
buttonPressed in class SwtDialog