Package com.cedarsolutions.client.gwt.custom.tab

Examples of com.cedarsolutions.client.gwt.custom.tab.TabLayoutPanel


    }

    /** Test setContext(). */
    public void testSetContext() {
        ConcreteModuleTabView view = new ConcreteModuleTabView();
        TabLayoutPanel parentPanel = new TabLayoutPanel(10, Unit.CM);
        view.setContext(parentPanel, 1);
        assertSame(parentPanel, view.getParentPanel());
        assertEquals(1, view.getTabIndex());
        // unfortunately, can't verify that the selection handler was set properly
    }
View Full Code Here


    public void testSelectionHandler() {
        Handler initHandler = new Handler();
        Handler selectedHandler = new Handler();

        ConcreteModuleTabView view = new ConcreteModuleTabView();
        TabLayoutPanel parentPanel = new TabLayoutPanel(10, Unit.CM);
        view.setContext(parentPanel, 1);
        view.setInitializationEventHandler(initHandler);
        view.setSelectedEventHandler(selectedHandler);

        SelectionHandler handler = new SelectionHandler(view);
View Full Code Here

TOP

Related Classes of com.cedarsolutions.client.gwt.custom.tab.TabLayoutPanel

Copyright © 2018 www.massapicom. 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.