org.mockcentral.editor.dialogs
Class SaveAsDialogAdapter

java.lang.Object
  extended by org.mockcentral.editor.dialogs.SaveAsDialogAdapter
All Implemented Interfaces:
org.mockcentral.editor.dialogs.IMockCentralDialog

public class SaveAsDialogAdapter
extends java.lang.Object
implements org.mockcentral.editor.dialogs.IMockCentralDialog

An adapter class for a SaveAsDialog that implements the IMockCentralDialog interface.

Author:
David Hutchinson

Field Summary
 
Fields inherited from interface org.mockcentral.editor.dialogs.IMockCentralDialog
CANCEL, OK
 
Constructor Summary
SaveAsDialogAdapter()
          Creates a new instance.
 
Method Summary
protected  void closeDialog()
          Closes the currently open Dialog, if any.
 java.lang.Object getResult()
           
 int open()
           
protected static void setBlockOnOpen(boolean blockOnOpen)
          Sets the value for whether IDialog instances should block on opening.
 void setDefaultValue(java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SaveAsDialogAdapter

public SaveAsDialogAdapter()
Creates a new instance.

Method Detail

setBlockOnOpen

protected 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.

getResult

public java.lang.Object getResult()
Specified by:
getResult in interface org.mockcentral.editor.dialogs.IMockCentralDialog

open

public int open()
Specified by:
open in interface org.mockcentral.editor.dialogs.IMockCentralDialog

setDefaultValue

public void setDefaultValue(java.lang.Object o)
Specified by:
setDefaultValue in interface org.mockcentral.editor.dialogs.IMockCentralDialog

closeDialog

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