List of usage examples for org.apache.wicket.extensions.ajax.markup.html.modal ModalWindow getInitialHeight
public int getInitialHeight()
From source file:gr.interamerican.wicket.factories.TestModalWindowFactory.java
License:Open Source License
/** * // ww w .j av a2 s .c o m */ @Test public void testCreateModalWindow() { String path = "/gr/interamerican/wicket/factories/sample.properties"; //$NON-NLS-1$ ModalWindow modalWindow = ModalWindowFactory.createModalWindow(path); Assert.assertSame(ModalWindow.class, modalWindow.getClass()); Assert.assertEquals("userNotAuthorizedWindow", modalWindow.getId()); //$NON-NLS-1$ Assert.assertEquals(400, modalWindow.getInitialWidth()); Assert.assertEquals(200, modalWindow.getInitialHeight()); Assert.assertEquals("PX", modalWindow.getWidthUnit()); //$NON-NLS-1$ Assert.assertEquals("PX", modalWindow.getHeightUnit()); //$NON-NLS-1$ Assert.assertFalse(modalWindow.isResizable()); Assert.assertTrue(modalWindow.isUseInitialHeight()); Assert.assertEquals("Authorization Failed", modalWindow.getTitle().getObject()); //$NON-NLS-1$ }
From source file:org.dcm4chee.web.war.folder.InstanceViewPage.java
License:LGPL
public InstanceViewPage(ModalWindow modalWindow, InstanceModel instanceModel) { this.instanceModel = instanceModel; height = modalWindow.getInitialHeight() - 100; add(new Label("info", new StringResourceModel("folder.instanceview.info", this, null, getInfoParams(), null))); wadoRenderType = WADODelegate.getInstance().getRenderType(instanceModel.getSopClassUID()); if (wadoRenderType == WADODelegate.IMAGE) { add(new ImageFragment("fragment", instanceModel, modalWindow.getInitialWidth() - 100, height)); } else {/*from w w w.jav a 2s. com*/ add(new MimeFragment("fragment", instanceModel)); } }