Package org.omegat.util.gui
Class SoundActionListener
java.lang.Object
org.omegat.util.gui.SoundActionListener
- All Implemented Interfaces:
EventListener,HyperlinkListener
Handles A tag with file:// media link.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhyperlinkUpdate(HyperlinkEvent hyperlinkEvent) When got .wav or *.WAV file, play it.static voidPlay specified file on default device.
-
Constructor Details
-
SoundActionListener
public SoundActionListener()
-
-
Method Details
-
playSound
Play specified file on default device.- Parameters:
file- media file.
-
hyperlinkUpdate
When got .wav or *.WAV file, play it.Unknown file types and protocols silently ignored.
- Specified by:
hyperlinkUpdatein interfaceHyperlinkListener- Parameters:
hyperlinkEvent- event on editor panes such as dictionary.
-