Class SoundActionListener

java.lang.Object
org.omegat.util.gui.SoundActionListener
All Implemented Interfaces:
EventListener, HyperlinkListener

public class SoundActionListener extends Object implements HyperlinkListener
Handles A tag with file:// media link.
  • Constructor Details

    • SoundActionListener

      public SoundActionListener()
  • Method Details

    • playSound

      public static void playSound(File file)
      Play specified file on default device.
      Parameters:
      file - media file.
    • hyperlinkUpdate

      public void hyperlinkUpdate(HyperlinkEvent hyperlinkEvent)
      When got .wav or *.WAV file, play it.

      Unknown file types and protocols silently ignored.

      Specified by:
      hyperlinkUpdate in interface HyperlinkListener
      Parameters:
      hyperlinkEvent - event on editor panes such as dictionary.