Examples of HorizontalScrollBarHandler


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

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

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

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

     * COLUMNS 0 1 |------|------| 250 250
     */
    @Test
    public void issueNTBL99MoveByColumn() throws Exception {
        viewport = new ViewportLayerFixture(2, 1, 250, 40);
        scrollHandler = new HorizontalScrollBarHandler(viewport, scrollBar);

        assertEquals(200, viewport.getClientAreaWidth());
        assertEquals(1, viewport.getColumnCount());

        assertEquals(0, viewport.getColumnIndexByPosition(0));
View Full Code Here

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

    }

    @Test
    public void issueNTBL99MoveByPage() throws Exception {
        viewport = new ViewportLayerFixture(2, 1, 250, 40);
        scrollHandler = new HorizontalScrollBarHandler(viewport, scrollBar);

        assertEquals(200, viewport.getClientAreaWidth());
        assertEquals(1, viewport.getColumnCount());

        assertEquals(0, viewport.getColumnIndexByPosition(0));
View Full Code Here

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

    }

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

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

        // Fixture data - viewport (250px), scrollable(465px)
View Full Code Here

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

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

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

        assertEquals(465, scrollHandler.scroller.getThumb());
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.