org.netbeans.editor
Class WeakTimerListener
java.lang.Object
org.netbeans.editor.WeakTimerListener
- All Implemented Interfaces:
- ActionListener, EventListener
public class WeakTimerListener
- extends Object
- implements ActionListener
Action listener that has a weak reference
to the source action listener so it doesn't prevent
it to be garbage collected.
The calls to the actionPerformed are automatically
propagated to the source action listener.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WeakTimerListener
public WeakTimerListener(ActionListener source)
- Construct new listener with automatic timer stopping.
WeakTimerListener
public WeakTimerListener(ActionListener source,
boolean stopTimer)
- Construct new listener.
- Parameters:
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.
actionPerformed
public void actionPerformed(ActionEvent evt)
- Specified by:
actionPerformed in interface ActionListener