Examples of TabPanelResizeHandler


Examples of com.cedarsolutions.client.gwt.module.view.ModuleTabPanelView.TabPanelResizeHandler

        int height = Window.getClientHeight();
        int scaledWidth = (int) (0.10 * (double) width);
        int scaledHeight = (int) (0.20 * (double) height);

        ConcreteModuleTabPanelView view = new ConcreteModuleTabPanelView();
        TabPanelResizeHandler handler = new TabPanelResizeHandler(view, 10.0, 20.0);
        assertNotNull(handler);
        assertSame(view, handler.getView());
        assertEquals(10.0, handler.getWidthScaling());
        assertEquals(20.0, handler.getHeightScaling());

        assertTrue(view.getOffsetWidth() >= scaledWidth);   // can't get back the "real" width
        assertTrue(view.getOffsetHeight() >= scaledHeight); // can't get back the "real" height
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.