@Test public void testSetScrollbar() { WWindow window = new WWindow(); Assert.assertFalse("Window should not have scrollbar by default", window.isScrollable()); window.setScrollable(true); Assert.assertTrue("Window should have scrollbar after setScrollable(true)", window. isScrollable()); window.setScrollable(false); Assert.assertFalse("Window should not have scrollbar after setScrollable(false)", window. isScrollable()); }
window.setWidth(width); window.setHeight(height); window.setScrollable(true); window.setLocked(true);
final WWindow window1 = new WWindow(new TreeTableExample()); window1.setTitle("Functional content, round-trip"); window1.setScrollable(true); final WWindow window2 = new WWindow(ajaxExamples); window2.setTitle("Functional content, AJAX-enabled"); window2.setScrollable(true);