use of org.eclipse.nebula.widgets.nattable.conflation.VisualChangeEventConflater in project nebula.widgets.nattable by eclipse.
the class VisualChangeEventConflaterTest method shouldAccumulateEvents.
@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());
}
use of org.eclipse.nebula.widgets.nattable.conflation.VisualChangeEventConflater in project nebula.widgets.nattable by eclipse.
the class EventConflaterChainTest method setup.
@Before
public void setup() {
this.conflaterChain = new EventConflaterChain(10, 10);
this.natTableFixture = new NatTableFixture();
this.conflater1 = new VisualChangeEventConflater(this.natTableFixture);
this.conflater2 = new VisualChangeEventConflater(this.natTableFixture);
this.conflaterChain.add(this.conflater1);
this.conflaterChain.add(this.conflater2);
}
Aggregations