jAudioFeatureExtractor.actions
Class PlayNowAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by jAudioFeatureExtractor.actions.PlayNowAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class PlayNowAction
extends javax.swing.AbstractAction

Play a file from a reference. This playback can be stopped.

Author:
Daniel McEnnis
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
PlayNowAction(Controller c)
          Contructor that sets menu text and keeps a reference to the controller
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Play back the file.
 void setTable(javax.swing.JTable recordings_table)
          Sets references to the recording table.
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlayNowAction

public PlayNowAction(Controller c)
Contructor that sets menu text and keeps a reference to the controller

Parameters:
c - near global controller
Method Detail

setTable

public void setTable(javax.swing.JTable recordings_table)
Sets references to the recording table. Needed to find out which recording to play.

Parameters:
recordings_table - table containing the list of recordings.

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Play back the file.