wicket.extensions.ajax.markup.html.modal
Interface ModalWindow.CloseButtonCallback

All Superinterfaces:
java.io.Serializable
Enclosing class:
ModalWindow

public static interface ModalWindow.CloseButtonCallback
extends java.io.Serializable

Callback for close button that contains a method that is invoked after the button has been clicked. If no callback instance is specified using ModalWindow.setCloseButtonCallback(ModalWindow.CloseButtonCallback), no ajax request will be fired. Clicking the button will just close the window.

Author:
Matej Knopp

Method Summary
 boolean onCloseButtonClicked(wicket.ajax.AjaxRequestTarget target)
          Methods invoked after the button has been clicked.
 

Method Detail

onCloseButtonClicked

boolean onCloseButtonClicked(wicket.ajax.AjaxRequestTarget target)
Methods invoked after the button has been clicked. The invokation is done using an ajax call, so AjaxRequestTarget instance is available.

Parameters:
target - AjaxRequestTarget instance bound with the ajax reuqest.
Returns:
True if the window can be closed (will close the window), false otherwise


Copyright © 2004-2008 Wicket developers. All Rights Reserved.