org.wicketstuff.modalx
Interface ModalMgr

All Known Implementing Classes:
ModalXPage

public interface ModalMgr

Class Name : ModalMgr Diagram : Wicket Generic Modal Windows Project : Echobase framework Type : interface Manages the allocation and deallocation of modal windows. An application implements this method (typically in a base Page class) and provides for 'n' modalWindows. The markup for that base class should include the appropriate number of modal window . For example if the maxumum depth of modal windows was n = 2 then the base class markup should have:

and the constructor of the ModalMgr implementor should contain code like this: // Establish the ModalWindows modalContentWindows = new ModalContentWindow[MAX_MODALS]; for (int m = 0; m < MAX_MODALS; m++) { ModalContentWindow modalWindow = new PbModalWindow(this, "modalWindow_" + m, true); modalWindow.setInitialWidth(600); modalWindow.setInitialHeight(400); body.add(modalWindow); modalContentWindows[m] = modalWindow; }

Author:
Chris Colman

Method Summary
 ModalContentWindow allocateModalWindow()
          Allocates a ModalContentWindow.
 void releaseModalWindow(ModalContentWindow modalContentWindow)
          Releases a ModalContentWindow
 void trackModalVisit(IWicketModalVisit wicketModalVisit)
          Notifies the ModalMgr of wicket modal visit (which can be null if tracking is not required).
 

Method Detail

trackModalVisit

void trackModalVisit(IWicketModalVisit wicketModalVisit)
Notifies the ModalMgr of wicket modal visit (which can be null if tracking is not required).


releaseModalWindow

void releaseModalWindow(ModalContentWindow modalContentWindow)
Releases a ModalContentWindow


allocateModalWindow

ModalContentWindow allocateModalWindow()
Allocates a ModalContentWindow.



Copyright © 2007-2013. All Rights Reserved.