|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.mospace.swing.event.Aggregator
public class Aggregator
When the same runnable is invoked several times through an Aggregator's
aggregatedInvokeLater method during a predefined delay
it is executed only once. This facility can be used for example to
reduce the frequency of costly GUI updates after changes to the
displayed data.
| Constructor Summary | |
|---|---|
Aggregator(long aggregationTime,
boolean reset)
Constructs a new aggregator with the specified delay and reset behavior. |
|
| Method Summary | |
|---|---|
void |
aggregatedInvokeLater(Runnable r)
Schedules the specified runnable for execution after the aggregation delay. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Aggregator(long aggregationTime,
boolean reset)
aggregationTime - the period of time the aggregator waits for further
calls to aggregatedInvokeLater(java.lang.Runnable) before an invoked runnable
is executed.reset - wether to reset the timer waiting for further calls to
aggregatedInvokeLater when aggregatedInvokeLater
is invoked a second time with the same argument during
the aggregation period| Method Detail |
|---|
public void aggregatedInvokeLater(Runnable r)
r - the runnable to schedule
|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||