Package org.eclipse.nebula.widgets.nattable.viewport

Examples of org.eclipse.nebula.widgets.nattable.viewport.VerticalScrollBarHandler


    @Before
    public void init() {
        viewport = new ViewportLayerFixture();
        scrollBar = ViewportLayerFixture.DEFAULT_SCROLLABLE.getVerticalBar();
        scrollHandler = new VerticalScrollBarHandler(viewport, scrollBar);

        assertEquals(0, viewport.getRowIndexByPosition(0));
        assertEquals(1, viewport.getRowIndexByPosition(1));
    }
View Full Code Here


    }

    @Test
    public void verticalScrollbarThumbSize() throws Exception {
        viewport = new ViewportLayerFixture(new Rectangle(0, 0, 250, 100));
        scrollHandler = new VerticalScrollBarHandler(viewport, scrollBar);

        assertEquals(250, viewport.getWidth());
        scrollHandler.recalculateScrollBarSize();

        // Fixture data - viewport height (100px), scrollable height (365px)
View Full Code Here

    @Test
    public void verticalScrollbarThumbSizeCalcNoScrollingNeeded()
            throws Exception {
        viewport = new ViewportLayerFixture(new Rectangle(0, 0, 500, 500));
        scrollHandler = new VerticalScrollBarHandler(viewport, scrollBar);

        assertEquals(465, viewport.getWidth());
        assertEquals(465, viewport.getWidth());

        scrollHandler.recalculateScrollBarSize();
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.viewport.VerticalScrollBarHandler

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.