org.mockcentral.editor.dialogs
Interface IMockCentralDialog


public interface IMockCentralDialog

Interface for the various dialogs provided by the application.

Author:
David Hutchinson

Field Summary
static int CANCEL
          Constant indicating that the user cancelled the dialog.
static int OK
          Constant indicating that the user finished the dialog.
 
Method Summary
 java.lang.Object getResult()
          Returns the dialog result, if any.
 int open()
          Opens the dialog, returning a constant value indicating whether the user finished or cancelled the dialog.
 void setDefaultValue(java.lang.Object defaultValue)
          Sets an initial default value or values for the dialog, if any.
 

Field Detail

OK

static final int OK
Constant indicating that the user finished the dialog.

See Also:
Constant Field Values

CANCEL

static final int CANCEL
Constant indicating that the user cancelled the dialog.

See Also:
Constant Field Values
Method Detail

open

int open()
Opens the dialog, returning a constant value indicating whether the user finished or cancelled the dialog.

Returns:
a constant value indicating whether the user finished or cancelled the dialog.

getResult

java.lang.Object getResult()
Returns the dialog result, if any.

Returns:
the dialog result, if any.

setDefaultValue

void setDefaultValue(java.lang.Object defaultValue)
Sets an initial default value or values for the dialog, if any.

Parameters:
defaultValue - an initial default value or values for the dialog, if any.