org.efaps.ui.wicket.components.modalwindow
Class UpdateParentCallback

java.lang.Object
  extended by org.efaps.ui.wicket.components.modalwindow.UpdateParentCallback
All Implemented Interfaces:
java.io.Serializable, org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow.WindowClosedCallback, org.apache.wicket.IClusterable

public class UpdateParentCallback
extends java.lang.Object
implements org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow.WindowClosedCallback

Class implements the WindowClosedCallback to be able to update the parent page on closing a modal window.

Version:
$Id: UpdateParentCallback.java 4533 2010-05-24 20:28:54Z jan.moxter $
Author:
The eFaps TEam
See Also:
Serialized Form

Constructor Summary
UpdateParentCallback(org.apache.wicket.Component _panel, ModalWindowContainer _modalwindow)
          Constructor setting the panel and the modal window.
UpdateParentCallback(org.apache.wicket.Component _panel, ModalWindowContainer _modalwindow, boolean _clearmodel)
          Constructor setting the panel and the modal window.
 
Method Summary
 void onClose(org.apache.wicket.ajax.AjaxRequestTarget _target)
          Method is executed on close of the modal window.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateParentCallback

public UpdateParentCallback(org.apache.wicket.Component _panel,
                            ModalWindowContainer _modalwindow)
Constructor setting the panel and the modal window.

Parameters:
_panel - Panel belonging to this call back
_modalwindow - modal window belonging to this call back
See Also:
UpdateParentCallback(Component, ModalWindowContainer, boolean)

UpdateParentCallback

public UpdateParentCallback(org.apache.wicket.Component _panel,
                            ModalWindowContainer _modalwindow,
                            boolean _clearmodel)
Constructor setting the panel and the modal window.

Parameters:
_panel - Panel belonging to this call back
_modalwindow - modal window belonging to this call back
_clearmodel - must the model of the page be updated
Method Detail

onClose

public void onClose(org.apache.wicket.ajax.AjaxRequestTarget _target)
Method is executed on close of the modal window.

Specified by:
onClose in interface org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow.WindowClosedCallback
Parameters:
_target - Target


Copyright © 2003-2010 The eFaps Team. All Rights Reserved.