org.eclipse.nebula.widgets.nattable.conflation
Class EventConflaterChain

java.lang.Object
  extended by org.eclipse.nebula.widgets.nattable.conflation.EventConflaterChain
All Implemented Interfaces:
IEventConflater

public class EventConflaterChain
extends Object
implements IEventConflater

A Chain of Conflaters. Every conflater in the chain is given the chance to queue an event. When the chain runs every conflater in the chain can run its own task to handle the events as it sees fit.


Field Summary
static int DEFAULT_INITIAL_DELAY
           
static int DEFAULT_REFRESH_INTERVAL
           
 
Constructor Summary
EventConflaterChain()
           
EventConflaterChain(int refreshInterval, int initialDelay)
           
 
Method Summary
 void add(IEventConflater conflater)
           
 void addEvent(ILayerEvent event)
           
 void clearQueue()
           
 Runnable getConflaterTask()
           
 int getCount()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_INITIAL_DELAY

public static final int DEFAULT_INITIAL_DELAY
See Also:
Constant Field Values

DEFAULT_REFRESH_INTERVAL

public static final int DEFAULT_REFRESH_INTERVAL
See Also:
Constant Field Values
Constructor Detail

EventConflaterChain

public EventConflaterChain()

EventConflaterChain

public EventConflaterChain(int refreshInterval,
                           int initialDelay)
Method Detail

add

public void add(IEventConflater conflater)

start

public void start()

stop

public void stop()

addEvent

public void addEvent(ILayerEvent event)
Specified by:
addEvent in interface IEventConflater

clearQueue

public void clearQueue()
Specified by:
clearQueue in interface IEventConflater

getCount

public int getCount()
Specified by:
getCount in interface IEventConflater
Returns:
Number of events currently waiting to be handled

getConflaterTask

public Runnable getConflaterTask()
Specified by:
getConflaterTask in interface IEventConflater


Copyright © 2015. All rights reserved.