Java Code Examples for org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow#setWindowClosedCallback()
The following examples show how to use
org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow#setWindowClosedCallback() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AddOArtifactCommand.java From Orienteer with Apache License 2.0 | 6 votes |
@SuppressWarnings("unchecked") @Override protected void initializeContent(ModalWindow modal) { modal.setOutputMarkupPlaceholderTag(true); modal.setTitle(new ResourceModel(MODAL_WINDOW_TITLE)); modal.setPageCreator(new ModalWindow.PageCreator() { @Override public Page createPage() { return modalWindowPage; } }); modal.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() { @Override public void onClose(AjaxRequestTarget target) { target.add(table); } }); modal.setAutoSize(true); modal.setMinimalWidth(800); modal.setMinimalHeight(600); modalWindowPage.setModalWindow(modal); }
Example 2
Source File: OArchitectEditorWidget.java From Orienteer with Apache License 2.0 | 5 votes |
private ModalWindow createModalWindow(String id) { ModalWindow modal = new ModalWindow(id); modal.setOutputMarkupId(true); modal.setInitialWidth(MODAL_WINDOW_WIDTH); modal.setInitialHeight(MODAL_WINDOW_HEIGHT); modal.setMinimalWidth(MODAL_WINDOW_WIDTH); modal.setMinimalHeight(MODAL_WINDOW_HEIGHT); modal.setWindowClosedCallback(t -> t.appendJavaScript(OArchitectJsUtils.switchPageScroll(false))); return modal; }
Example 3
Source File: CloseModalWindowEvent.java From Orienteer with Apache License 2.0 | 4 votes |
@Override public void execute(ModalWindow modalWindow) { modalWindow.setWindowClosedCallback(callback::accept); modalWindow.close(target); }