fdda.dialog
Class OptionsDialogControl

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

public class OptionsDialogControl
extends Object
implements DialogControl

Controls the option dialog

Author:
Jörg Rüdenauer

Constructor Summary
OptionsDialogControl(Dialog dialog)
          Constructor.
 
Method Summary
 boolean canClose(boolean closedByOK)
          Returns whether the dialog can be closed.
 void executeCommand(int command)
          Executes a command (e.g. the user pressed a button).
 String getErrors()
          If the dialog can't be closed because data is not valid, this method returns an error message for the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptionsDialogControl

public OptionsDialogControl(Dialog dialog)
Constructor.

Parameters:
dialog - the options dialog
Method Detail

executeCommand

public void executeCommand(int command)
                    throws NoSuchCommandException
Description copied from interface: DialogControl
Executes a command (e.g. the user pressed a button).

Specified by:
executeCommand in interface DialogControl
Parameters:
command - the command ID
Throws:
NoSuchCommandException - if no such command is supported by this dialog control

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()
Description copied from interface: DialogControl
If the dialog can't be closed because data is not valid, this method returns an error message for the user.

Specified by:
getErrors in interface DialogControl
Returns:
error message


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