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

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


        });
    }

    protected IEventConflater getVisualChangeEventConflater() {
        return new VisualChangeEventConflater(this);
    }
View Full Code Here


public class VisualChangeEventConflaterTest {

    @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

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

        conflaterChain.add(conflater1);
        conflaterChain.add(conflater2);
    }
View Full Code Here

TOP

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

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.