org.eclipse.nebula.widgets.nattable.conflation
Class EventConflaterChain
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
EventConflaterChain
public EventConflaterChain()
EventConflaterChain
public EventConflaterChain(int refreshInterval,
int initialDelay)
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.