. 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
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.