org.mockcentral.editor.dialogs
Class MockCentralPluginDialogFactory

java.lang.Object
  extended by org.mockcentral.editor.dialogs.MockCentralPluginDialogFactory
All Implemented Interfaces:
org.mockcentral.editor.dialogs.IMockCentralDialogFactory

public class MockCentralPluginDialogFactory
extends java.lang.Object
implements org.mockcentral.editor.dialogs.IMockCentralDialogFactory

A class that implements IMockCentralUIFactory to provide dialogs for the MockCentral Plug-in.

Author:
David Hutchinson

Field Summary
 
Fields inherited from interface org.mockcentral.editor.dialogs.IMockCentralDialogFactory
CANCEL_OPTION, ERROR_IMAGE, INFO_IMAGE, NO_OPTION, WARNING_IMAGE, YES_OPTION
 
Constructor Summary
MockCentralPluginDialogFactory()
           
 
Method Summary
 void closeDialog()
          Closes the currently open Dialog, if any.
 org.mockcentral.editor.dialogs.IMockCentralDialog getMockCentralDialog(org.mockcentral.editor.dialogs.MockCentralDialogType type, java.lang.Object... args)
           
static void setBlockOnOpen(boolean blockOnOpen)
          Sets the value for whether IDialog instances should block on opening.
 int showConfirmDialog(java.lang.String title, java.lang.String message)
           
 java.lang.String showInputDialog(java.lang.String title, java.lang.String message, java.lang.String defaultValue, org.mockcentral.editor.dialogs.IMockCentralDialogInputValidator validator)
           
 void showMessageDialog(java.lang.String title, java.lang.String message)
           
 void showMessageDialog(java.lang.String title, java.lang.String message, int dialogImageType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockCentralPluginDialogFactory

public MockCentralPluginDialogFactory()
Method Detail

setBlockOnOpen

public static void setBlockOnOpen(boolean blockOnOpen)
Sets the value for whether IDialog instances should block on opening.

Parameters:
blockOnOpen - whether IDialog instances should block on opening.

showMessageDialog

public void showMessageDialog(java.lang.String title,
                              java.lang.String message,
                              int dialogImageType)
Specified by:
showMessageDialog in interface org.mockcentral.editor.dialogs.IMockCentralDialogFactory

showMessageDialog

public void showMessageDialog(java.lang.String title,
                              java.lang.String message)
Specified by:
showMessageDialog in interface org.mockcentral.editor.dialogs.IMockCentralDialogFactory

showConfirmDialog

public int showConfirmDialog(java.lang.String title,
                             java.lang.String message)
Specified by:
showConfirmDialog in interface org.mockcentral.editor.dialogs.IMockCentralDialogFactory

showInputDialog

public java.lang.String showInputDialog(java.lang.String title,
                                        java.lang.String message,
                                        java.lang.String defaultValue,
                                        org.mockcentral.editor.dialogs.IMockCentralDialogInputValidator validator)
Specified by:
showInputDialog in interface org.mockcentral.editor.dialogs.IMockCentralDialogFactory

getMockCentralDialog

public org.mockcentral.editor.dialogs.IMockCentralDialog getMockCentralDialog(org.mockcentral.editor.dialogs.MockCentralDialogType type,
                                                                              java.lang.Object... args)
Specified by:
getMockCentralDialog in interface org.mockcentral.editor.dialogs.IMockCentralDialogFactory

closeDialog

public void closeDialog()
Closes the currently open Dialog, if any.