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

Examples of org.eclipse.nebula.widgets.nattable.test.fixture.data.RowDataFixture


                        // Random decision
                        boolean removeElements = (getRandomNumber(1000) % 2) == 0;

                        if (removeElements) {
                            final RowDataFixture remove = eventList
                                    .remove(elementIndexToRemove);
                            log("Removed record: " + remove.getSecurity_id());
                        } else {
                            final RowDataFixture added = RowDataFixture
                                    .getInstance("Added by test", ("AAA"));
                            eventList.add(added);
                            log("Added record: " + added.getSecurity_id());
                        }
                    } catch (Exception e) {
                        log("Ignoring exception: " + e.getMessage());
                    } finally {
                        eventList.getReadWriteLock().writeLock().unlock();
View Full Code Here


        Assert.assertEquals(values.get(9), dataProvider.getRowObject(7));
    }

    @Test
    public void testAddVisibleData() {
        RowDataFixture temp = RowDataListFixture.getList().get(8);
        values.add(8, temp);

        // now the AbstractFilterListDataProvider row count should be 10 again
        Assert.assertEquals(11, dataProvider.getRowCount());
        // as there is one invisible object before this position, the visible
View Full Code Here

        // AbstractFilterListDataProvider should return the object on real row
        // position 10
        Assert.assertEquals(values.get(10), dataProvider.getRowObject(8));

        // add an invisible item on position 8
        RowDataFixture temp = RowDataListFixture.getList().get(1);
        values.add(8, temp);

        // the AbstractFilterListDataProvider should still show 10 items
        Assert.assertEquals(10, dataProvider.getRowCount());
        // as we added an invisible item on position 8, now the access to the
View Full Code Here

        askPriceSummary = natTable.getDataValueByPosition(askPriceColumnIndex,
                4);
        assertEquals("110.0", askPriceSummary.toString());

        // Add data and fire event
        dataList.add(new RowDataFixture("SID", "SDesc", "A", new Date(),
                new PricingTypeBean("MN"), 2.0, 2.1, 100, true, 3.0, 1.0, 1.0,
                1000, 100000, 50000));
        dataLayer.fireLayerEvent(new RowInsertEvent(dataLayer, 4));

        // Trigger summary calculation - on the new summary row
View Full Code Here

        // the AbstractOverrider is set on the DataLayer. So on retrieving the
        dataLayer.setConfigLabelAccumulator(new AbstractOverrider() {
            @Override
            public void accumulateConfigLabels(LabelStack configLabels,
                    int columnPosition, int rowPosition) {
                RowDataFixture rowObject = dataProvider
                        .getRowObject(rowPosition);
                configLabels.addLabel("myLabel " + rowObject.security_id);
            }
        });
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.test.fixture.data.RowDataFixture

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.