fdda.dialog
Class StatisticsDialogControl

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

public class StatisticsDialogControl
extends Object
implements DialogControl

Controls the statistics dialog.

Author:
Jörg Rüdenauer

Field Summary
static int COMMAND_REFRESH
          Command: refresh the statistics.
 
Constructor Summary
StatisticsDialogControl(Dialog dialog, Statistics statistics)
          Constructor
 
Method Summary
 boolean canClose(boolean closedByOK)
          Always returns true.
 void executeCommand(int command)
          Executes a command (e.g. the user pressed a button).
 String getErrors()
          Returns null (no errors ever).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMAND_REFRESH

public static final int COMMAND_REFRESH
Command: refresh the statistics. Currently without action

See Also:
Constant Field Values
Constructor Detail

StatisticsDialogControl

public StatisticsDialogControl(Dialog dialog,
                               Statistics statistics)
Constructor

Parameters:
dialog - the dialog
statistics - the statistics
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)
Always returns true.

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
See Also:
DialogControl.canClose(boolean)

getErrors

public String getErrors()
Returns null (no errors ever).

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.