WebObjects 5.4.2

com.webobjects.eoapplication
Interface EOModalDialogController.ModalActions

All Known Implementing Classes:
EOFormController, EOListController
Enclosing class:
EOModalDialogController

public static interface EOModalDialogController.ModalActions

The EOModalDialogController.ModalActions interface defines the methods subcontrollers of modal dialog controllers have to implement to handle closing of the dialog.


Method Summary
 void cancel()
          The action method invoked when the user cancels the modal dialog.
 boolean modalDialogShouldClose()
          This method is invoked by the modal dialog controller on its subcontrollers when the user attempts to close the modal dialog with the dialog's close button (not the usual ok/cancel buttons).
 boolean ok()
          The action method invoked when the user wants to finish the modal dialog.
 

Method Detail

ok

boolean ok()
The action method invoked when the user wants to finish the modal dialog.

Returns:
true if the dialog can be closed (the operation was performed successfully); false otherwise.

cancel

void cancel()
The action method invoked when the user cancels the modal dialog.


modalDialogShouldClose

boolean modalDialogShouldClose()
This method is invoked by the modal dialog controller on its subcontrollers when the user attempts to close the modal dialog with the dialog's close button (not the usual ok/cancel buttons). Subcontrollers return whether the dialog can be closed (which corresponds to a cancel operation) or not.

Returns:
true if the dialog can be closed (the operation can be cancelled); false otherwise.

Last updated June 2008

Copyright © 2000-2008 Apple Inc.