Package org.eclipse.nebula.widgets.nattable.test.fixture.layer

Examples of org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture


    }

    @SuppressWarnings("boxing")
    @Test
    public void getHeightForMultipleRowsReordering() throws Exception {
        underlyingLayer = new DataLayerFixture();
        rowReorderLayer = new RowReorderLayer(underlyingLayer);

        // 0 1 2 3 4 - see DataLayerFixture
        rowReorderLayer.reorderMultipleRowPositions(Arrays.asList(1, 2), 7);
View Full Code Here


        assertEquals(25, rowReorderLayer.getRowHeightByPosition(6));
    }

    @Test
    public void getStartYForReorderedRow() throws Exception {
        underlyingLayer = new DataLayerFixture();
        rowReorderLayer = new RowReorderLayer(underlyingLayer);

        // 0 1 2 3 4 - see DataLayerFixture
        rowReorderLayer.reorderRowPosition(0, 5);
View Full Code Here

    private DataLayerFixture dataLayer;
    private SelectionLayer selectionLayer;

    @Before
    public void setup() {
        dataLayer = new DataLayerFixture(10, 10);
        DefaultBodyLayerStack bodyLayer = new DefaultBodyLayerStack(dataLayer);

        selectionLayer = bodyLayer.getSelectionLayer();
        selectionModel = selectionLayer.getSelectionModel();
    }
View Full Code Here

    private DataLayerFixture dataLayer;
    private ViewportLayer viewportLayer;

    @Before
    public void before() {
        dataLayer = new DataLayerFixture(20, 20, 100, 40);
        viewportLayer = new ViewportLayer(dataLayer);
        viewportLayer.setClientAreaProvider(new IClientAreaProvider() {

            public Rectangle getClientArea() {
                return new Rectangle(0, 0, 800, 400);
View Full Code Here

    private BaseColumnReorderLayerFixture columnReorderLayer;

    @Before
    public void setUp() {
        columnReorderLayer = new BaseColumnReorderLayerFixture(
                new DataLayerFixture());
    }
View Full Code Here

     * Fix for http://nattable.org/jira/browse/NTBL-476
     */
    @Test
    public void reorderEventMustPropagateToTheTop() throws Exception {
        DefaultBodyLayerStack underlyingLayer = new DefaultBodyLayerStack(
                new DataLayerFixture(20, 10, 100, 20));
        NatTableFixture natTableFixture = new NatTableFixture(underlyingLayer);

        // Add listener
        LayerListenerFixture listenerFixture = new LayerListenerFixture();
        natTableFixture.addLayerListener(listenerFixture);
View Full Code Here

    }

    @Test
    public void reorderMultipleNotConsecutiveColumnsInHiddenState() {
        DefaultBodyLayerStack underlyingLayer = new DefaultBodyLayerStack(
                new DataLayerFixture(10, 10, 100, 20));
        NatTableFixture natTableFixture = new NatTableFixture(underlyingLayer,
                1000, 400, true);

        // Add listener
        LayerListenerFixture listenerFixture = new LayerListenerFixture();
View Full Code Here

public class ReorderRowEventTest {
    private BaseRowReorderLayerFixture rowReorderLayer;

    @Before
    public void setUp() {
        rowReorderLayer = new BaseRowReorderLayerFixture(new DataLayerFixture());
    }
View Full Code Here

    }

    @Test
    public void reorderEventMustPropagateToTheTop() throws Exception {
        DefaultBodyLayerStack underlyingLayer = new DefaultBodyLayerStack(
                new RowReorderLayer(new DataLayerFixture(10, 10, 100, 20)));
        NatTableFixture natTableFixture = new NatTableFixture(underlyingLayer);

        // Add listener
        LayerListenerFixture listenerFixture = new LayerListenerFixture();
        natTableFixture.addLayerListener(listenerFixture);
View Full Code Here

    private FilterList<RowDataFixture> filterList;
    private ConfigRegistry configRegistry;

    @Before
    public void setup() {
        columnHeaderLayer = new DataLayerFixture(10, 2, 100, 50);

        configRegistry = new ConfigRegistry();
        new DefaultNatTableStyleConfiguration()
                .configureRegistry(configRegistry);
        new DefaultFilterRowConfiguration().configureRegistry(configRegistry);
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture

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.