Example usage for org.apache.wicket.extensions.ajax.markup.html.modal ModalWindow isResizable

List of usage examples for org.apache.wicket.extensions.ajax.markup.html.modal ModalWindow isResizable

Introduction

In this page you can find the example usage for org.apache.wicket.extensions.ajax.markup.html.modal ModalWindow isResizable.

Prototype

public boolean isResizable() 

Source Link

Document

Returns whether the window is resizable.

Usage

From source file:gr.interamerican.wicket.factories.TestModalWindowFactory.java

License:Open Source License

/**
 * //from ww w  .  j  a  va  2  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$

}