Examples of addLayerListener()


Examples of org.eclipse.nebula.widgets.nattable.test.fixture.NatTableFixture.addLayerListener()

                new DataLayerFixture(20, 10, 100, 20));
        NatTableFixture natTableFixture = new NatTableFixture(underlyingLayer);

        // Add listener
        LayerListenerFixture listenerFixture = new LayerListenerFixture();
        natTableFixture.addLayerListener(listenerFixture);

        assertEquals(6, natTableFixture.getColumnCount());
        assertEquals(1, natTableFixture.getColumnIndexByPosition(1));

        // Move to outside the visible range
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.test.fixture.NatTableFixture.addLayerListener()

        NatTableFixture natTableFixture = new NatTableFixture(underlyingLayer,
                1000, 400, true);

        // Add listener
        LayerListenerFixture listenerFixture = new LayerListenerFixture();
        natTableFixture.addLayerListener(listenerFixture);

        assertEquals(10, natTableFixture.getColumnCount());

        // hide some columns
        natTableFixture.doCommand(new MultiColumnHideCommand(natTableFixture,
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.test.fixture.NatTableFixture.addLayerListener()

                new RowReorderLayer(new DataLayerFixture(10, 10, 100, 20)));
        NatTableFixture natTableFixture = new NatTableFixture(underlyingLayer);

        // Add listener
        LayerListenerFixture listenerFixture = new LayerListenerFixture();
        natTableFixture.addLayerListener(listenerFixture);

        Assert.assertEquals(10, natTableFixture.getRowCount());
        Assert.assertEquals(1, natTableFixture.getRowIndexByPosition(1));

        // Move to outside the visible range
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.test.fixture.NatTableFixture.addLayerListener()

                new ConfigRegistry());

        NatTableFixture natTableFixture = new NatTableFixture(
                bodyLayerStackFixture);
        LayerListenerFixture listenerFixture = new LayerListenerFixture();
        natTableFixture.addLayerListener(listenerFixture);

        Assert.assertEquals(37, bodyLayerStackFixture.getBodyDataProvider()
                .getColumnCount());
        Assert.assertEquals(6, natTableFixture.getColumnCount());
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.test.fixture.NatTableFixture.addLayerListener()

                    }

                });
        LayerListenerFixture listener = new LayerListenerFixture();

        natTable.addLayerListener(listener);

        // Grid coordinates
        natTable.doCommand(new RowHideCommand(natTable, 5));

        assertEquals(1, listener.getReceivedEvents().size());
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.test.fixture.NatTableFixture.addLayerListener()

                                rowHeaderDataLayer, cornerDataLayer);
                    }

                }, 600, 120);
        LayerListenerFixture natTableListener = new LayerListenerFixture();
        natTable.addLayerListener(natTableListener);

        // Scroll to position 15 in grid/15 in body
        natTable.scrollToRow(15);
        assertEquals(15, natTable.getRowIndexByPosition(1));
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.test.fixture.NatTableFixture.addLayerListener()

    @Test
    public void shouldFireTheCorrectEventOnColumnHide() throws Exception {
        NatTable natTable = new NatTableFixture();
        LayerListenerFixture listener = new LayerListenerFixture();

        natTable.addLayerListener(listener);

        // Grid coordinates
        natTable.doCommand(new ColumnHideCommand(natTable, 5));

        assertEquals(1, listener.getReceivedEvents().size());
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.test.fixture.NatTableFixture.addLayerListener()

    @Test
    public void scrollAndHideTheLastColumn() throws Exception {
        // Total columns in fixture - 20 (index 0 - 19)
        NatTableFixture natTable = new NatTableFixture();
        LayerListenerFixture natTableListener = new LayerListenerFixture();
        natTable.addLayerListener(natTableListener);

        // Scroll to position 14 in grid/14 in body
        natTable.scrollToColumn(14);
        assertEquals(14, natTable.getColumnIndexByPosition(1));
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.