Package org.eclipse.nebula.widgets.nattable.conflation

Examples of org.eclipse.nebula.widgets.nattable.conflation.EventConflaterChain


    @Test
    public void shouldAccumulateEvents() throws Exception {
        NatTableFixture natTable = new NatTableFixture();
        VisualChangeEventConflater conflater = new VisualChangeEventConflater(
                natTable);
        EventConflaterChain chain = new EventConflaterChain();
        chain.add(conflater);

        conflater.addEvent(new LayerEventFixture());
        conflater.addEvent(new LayerEventFixture());
        assertEquals(2, conflater.getCount());

        chain.start();
        Thread.sleep(EventConflaterChain.DEFAULT_INITIAL_DELAY + 100);

        assertEquals(0, conflater.getCount());
    }
View Full Code Here


    private VisualChangeEventConflater conflater2;
    private NatTableFixture natTableFixture;

    @Before
    public void setup() {
        conflaterChain = new EventConflaterChain(10, 10);
        natTableFixture = new NatTableFixture();
        conflater1 = new VisualChangeEventConflater(natTableFixture);
        conflater2 = new VisualChangeEventConflater(natTableFixture);

        conflaterChain.add(conflater1);
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.conflation.EventConflaterChain

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.