Home » openjdk-7 » javax » swing » plaf » basic » [javadoc | source]
class: BasicLookAndFeel.AudioAction [javadoc | source]

All Implemented Interfaces:
    LineListener, Action, Cloneable, Serializable

Pass the name String to the super constructor. This is used later to identify the Action and decide whether to play it or not. Store the resource String. I is used to get the audio resource. In this case, the resource is an audio file.
Fields inherited from javax.swing.AbstractAction:
enabled,  changeSupport
 public AudioAction(String name,
    String resource) 
    The String is the name of the Action and points to the audio resource. The byte[] is a buffer of the audio bits.
Method from javax.swing.plaf.basic.BasicLookAndFeel$AudioAction Summary:
actionPerformed,   update
Methods from javax.swing.AbstractAction:
addPropertyChangeListener,   clone,   firePropertyChange,   getKeys,   getPropertyChangeListeners,   getValue,   hasSelectedKey,   isEnabled,   isSelected,   putValue,   removePropertyChangeListener,   setEnabled,   setEnabledFromAction,   setToolTipTextFromAction,   shouldReconfigure
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.plaf.basic.BasicLookAndFeel$AudioAction Detail:
 public  void actionPerformed(ActionEvent e) 
 public  void update(LineEvent event)