org.netbeans.modules.editor.lib/3 3.23.0 19

org.netbeans.editor
Class WeakTimerListener

java.lang.Object
  extended by 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.


Constructor Summary
WeakTimerListener(ActionListener source)
          Construct new listener with automatic timer stopping.
WeakTimerListener(ActionListener source, boolean stopTimer)
          Construct new listener.
 
Method Summary
 void actionPerformed(ActionEvent evt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

actionPerformed

public void actionPerformed(ActionEvent evt)
Specified by:
actionPerformed in interface ActionListener

org.netbeans.modules.editor.lib/3 3.23.0 19

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.