Rational Developer for i
7.5.0

com.ibm.etools.systems.as400.debug.sep.ui
Class PhantomServiceEntryPointMessagesDialog

java.lang.Object
  extended by MessageDialog
      extended by com.ibm.etools.systems.as400.debug.sep.ui.PhantomServiceEntryPointMessagesDialog

public class PhantomServiceEntryPointMessagesDialog
extends MessageDialog


Nested Class Summary
 class PhantomServiceEntryPointMessagesDialog.MessageTableContentProvider
           
 
Field Summary
static int BUTTON_ID
          button id number for the first button in the button bar.
static String copyright
           
static int MSG_ERROR
           
static int MSG_WARNING
           
 
Constructor Summary
PhantomServiceEntryPointMessagesDialog(Shell parentShell, String title, List<String> messages, List<String> warningMessages, String[] buttons)
          Creates an message dialog.
 
Method Summary
protected  void buttonPressed(int id)
           
protected  Control createButtonBar(Composite parent)
           
protected  void createButtonsForButtonBar(Composite parent)
           
protected  Control createDialogArea(Composite parent)
           
protected  boolean customShouldTakeFocus()
           
 int openWithDetails()
          Opens the message dialog with the details showing to display the message.
 void setButtonIndex(int buttonIndex)
          sets the default button for the message.
 void setButtons(String[] buttonList)
          overrides the default button selection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values

MSG_ERROR

public static final int MSG_ERROR
See Also:
Constant Field Values

MSG_WARNING

public static final int MSG_WARNING
See Also:
Constant Field Values

BUTTON_ID

public static final int BUTTON_ID
button id number for the first button in the button bar.

The second button, would have an id of buttonId+1 etc.

See Also:
Constant Field Values
Constructor Detail

PhantomServiceEntryPointMessagesDialog

public PhantomServiceEntryPointMessagesDialog(Shell parentShell,
                                              String title,
                                              List<String> messages,
                                              List<String> warningMessages,
                                              String[] buttons)
Creates an message dialog. Note that the dialog will have no visual representation (no widgets) until it is told to open.

Parameters:
parentShell - the shell under which to create this dialog
message - the message to display in the dialog
Method Detail

buttonPressed

protected void buttonPressed(int id)

createButtonsForButtonBar

protected void createButtonsForButtonBar(Composite parent)

createDialogArea

protected Control createDialogArea(Composite parent)

openWithDetails

public int openWithDetails()
Opens the message dialog with the details showing to display the message.


setButtons

public void setButtons(String[] buttonList)
overrides the default button selection.

Parameters:
buttonList - an array of buttons for the button bar

setButtonIndex

public void setButtonIndex(int buttonIndex)
sets the default button for the message. Use this method if you wan to override the default button (the first one)

Parameters:
buttonIndex - the 0-based index of the button

createButtonBar

protected Control createButtonBar(Composite parent)

customShouldTakeFocus

protected boolean customShouldTakeFocus()

Rational Developer for i
7.5.0

Copyright 2009 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.