Package org.eclipse.nebula.widgets.nattable.grid.data

Examples of org.eclipse.nebula.widgets.nattable.grid.data.DummyBodyDataProvider


    public DummyGridLayerStack() {
        this(20, 20);
    }

    public DummyGridLayerStack(int columnCount, int rowCount) {
        this(new DummyBodyDataProvider(columnCount, rowCount));
    }
View Full Code Here


    private DataLayer dataLayer;

    @Before
    public void setup() {
        dataLayer = new DataLayer(new DummyBodyDataProvider(10, 10));
    }
View Full Code Here

    private DataLayer dataLayer;

    @Before
    public void setup() {
        dataLayer = new DataLayer(new DummyBodyDataProvider(10, 10));
    }
View Full Code Here

    private DataLayer dataLayer;

    @Before
    public void setup() {
        dataLayer = new DataLayer(new DummyBodyDataProvider(10, 10));
    }
View Full Code Here

    };

    @Test
    public void testCalculateInBackgroundWithCoordsKey() throws Exception {
        this.valueCache = new CalculatedValueCache(new DataLayer(
                new DummyBodyDataProvider(10, 10)), true, true);

        Object result = this.valueCache.getCalculatedValue(0, 0, true,
                calculator);
        // as calculation is performed in background, the immediate return value
        // is null
View Full Code Here

    }

    @Test
    public void testCalculateInSameThreadWithCoordsKey() throws Exception {
        this.valueCache = new CalculatedValueCache(new DataLayer(
                new DummyBodyDataProvider(10, 10)), true, true);

        Object result = this.valueCache.getCalculatedValue(0, 0, false,
                calculator);
        assertEquals(Integer.valueOf(42), Integer.valueOf(result.toString()));
    }
View Full Code Here

    @Test
    public void testCalculateInBackgroundWithCoordsKeyClearSmooth()
            throws Exception {
        this.valueCache = new CalculatedValueCache(new DataLayer(
                new DummyBodyDataProvider(10, 10)), true, true);

        Object result = this.valueCache.getCalculatedValue(0, 0, true,
                calculator);
        // as calculation is performed in background, the immediate return value
        // is null
View Full Code Here

    @Test
    public void testCalculateInBackgroundWithCoordsKeyClearNonSmooth()
            throws Exception {
        this.valueCache = new CalculatedValueCache(new DataLayer(
                new DummyBodyDataProvider(10, 10)), true, true, false);

        Object result = this.valueCache.getCalculatedValue(0, 0, true,
                calculator);
        // as calculation is performed in background, the immediate return value
        // is null
View Full Code Here

    @Test
    public void testCalculateInBackgroundWithCoordsKeyKillSmooth()
            throws Exception {
        this.valueCache = new CalculatedValueCache(new DataLayer(
                new DummyBodyDataProvider(10, 10)), true, true);

        Object result = this.valueCache.getCalculatedValue(0, 0, true,
                calculator);
        // as calculation is performed in background, the immediate return value
        // is null
View Full Code Here

    }

    @Test
    public void testCalculateInBackgroundWithColumnKey() throws Exception {
        this.valueCache = new CalculatedValueCache(new DataLayer(
                new DummyBodyDataProvider(10, 10)), true, false);

        Object result = this.valueCache.getCalculatedValue(0, 0, true,
                calculator);
        // as calculation is performed in background, the immediate return value
        // is null
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.grid.data.DummyBodyDataProvider

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.