Package org.omegat.util.gui
Class SoundActionListener
- java.lang.Object
-
- org.omegat.util.gui.SoundActionListener
-
- All Implemented Interfaces:
java.util.EventListener
,javax.swing.event.HyperlinkListener
public class SoundActionListener extends java.lang.Object implements javax.swing.event.HyperlinkListener
Handles A tag with file:// media link.
-
-
Constructor Summary
Constructors Constructor Description SoundActionListener()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
hyperlinkUpdate(javax.swing.event.HyperlinkEvent hyperlinkEvent)
When got .wav or *.WAV file, play it.static void
playSound(java.io.File file)
Play specified file on default device.
-
-
-
Method Detail
-
playSound
public static void playSound(java.io.File file)
Play specified file on default device.- Parameters:
file
- media file.
-
hyperlinkUpdate
public void hyperlinkUpdate(javax.swing.event.HyperlinkEvent hyperlinkEvent)
When got .wav or *.WAV file, play it.Unknown file types and protocols silently ignored.
- Specified by:
hyperlinkUpdate
in interfacejavax.swing.event.HyperlinkListener
- Parameters:
hyperlinkEvent
- event on editor panes such as dictionary.
-
-