org.tbee.swing
Class DelayedActionEvent

java.lang.Object
  extended by org.tbee.swing.DelayedActionEvent
All Implemented Interfaces:
ActionListener, EventListener

public class DelayedActionEvent
extends Object
implements ActionListener

Catch an ActionEvent and hold until until a time expires and then continue executing it. Or when a new event comes in before the time expires, replace the event and restart the timer.

Author:
user

Constructor Summary
DelayedActionEvent(ActionListener actionListener)
           
DelayedActionEvent(int delay, ActionListener actionListener)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
          The original action occured, queue it
 ActionEvent getActionEvent()
          ActionEvent
 ActionListener getActionListener()
          ActionListener
 int getDelay()
          Delay
 void setActionEvent(ActionEvent value)
           
 void setActionListener(ActionListener value)
           
 void setDelay(int value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelayedActionEvent

public DelayedActionEvent(ActionListener actionListener)
Parameters:
actionListener -

DelayedActionEvent

public DelayedActionEvent(int delay,
                          ActionListener actionListener)
Parameters:
delay -
actionListener -
Method Detail

getDelay

public int getDelay()
Delay


setDelay

public void setDelay(int value)

getActionListener

public ActionListener getActionListener()
ActionListener


setActionListener

public void setActionListener(ActionListener value)

getActionEvent

public ActionEvent getActionEvent()
ActionEvent


setActionEvent

public void setActionEvent(ActionEvent value)

actionPerformed

public void actionPerformed(ActionEvent e)
The original action occured, queue it

Specified by:
actionPerformed in interface ActionListener


Copyright © 2011 KnowledgePlaza. All Rights Reserved.