public class WeakTimerListener extends Object implements ActionListener
actionPerformed
are automatically
propagated to the source action listener.Constructor and Description |
---|
WeakTimerListener(ActionListener source)
Construct new listener with automatic timer stopping.
|
WeakTimerListener(ActionListener source,
boolean stopTimer)
Construct new listener.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent evt) |
public WeakTimerListener(ActionListener source)
public WeakTimerListener(ActionListener source, boolean stopTimer)
source
- source action listener to which this listener delegates.stopTimer
- whether the timer should be stopped automatically when
the timer fires and the source listener was garbage collected.public void actionPerformed(ActionEvent evt)
actionPerformed
in interface ActionListener