fdda.dialog
Class AlgorithmDialogControl

java.lang.Object
  |
  +--fdda.dialog.AlgorithmDialogControl
All Implemented Interfaces:
DialogControl

public class AlgorithmDialogControl
extends Object
implements DialogControl

Controls the algorithm dialog

Author:
Jörg Rüdenauer

Constructor Summary
AlgorithmDialogControl(Dialog dialog)
          Constructor
 
Method Summary
 boolean canClose(boolean closedByOK)
          Returns whether the dialog can be closed.
 void executeCommand(int command)
          Always throws exception, there are no commands
 String getErrors()
          Returns null, there can be no errors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlgorithmDialogControl

public AlgorithmDialogControl(Dialog dialog)
Constructor

Parameters:
dialog - the dialog
Method Detail

executeCommand

public void executeCommand(int command)
                    throws NoSuchCommandException
Always throws exception, there are no commands

Specified by:
executeCommand in interface DialogControl
Parameters:
command - the command ID
Throws:
NoSuchCommandException - if no such command is supported by this dialog control
See Also:
DialogControl.executeCommand(int)

canClose

public boolean canClose(boolean closedByOK)
Description copied from interface: DialogControl
Returns whether the dialog can be closed. If parameter is true, checks should be performed whether the current data is valid. If the data is valid and the dialog can be closed, processing may occur before the dialog really closes. To avoid awkward situations, consider processing in an extra thread.

Specified by:
canClose in interface DialogControl
Parameters:
closedByOK - whether the user closed the dialog with a confirming choice
Returns:
whether the dialog can be closed

getErrors

public String getErrors()
Returns null, there can be no errors

Specified by:
getErrors in interface DialogControl
Returns:
error message
See Also:
DialogControl.getErrors()


API documentation for FDDA version 0.9. Generated on 17/02/2004 14:12.