Enum Class JGUISounds

java.lang.Object
java.lang.Enum<JGUISounds>
org.sm.smtools.application.util.JGUISounds
All Implemented Interfaces:
Serializable, Comparable<JGUISounds>, Constable

public enum JGUISounds extends Enum<JGUISounds>
This class contains the filenames of the selected set of GUI sounds.

Note that this is a singleton class, with only one instance allowed.
The sounds' filenames are queries using the JGUISounds.kINSTANCE.getXXX() methods.

Version:
07/08/2019
Author:
Sven Maerivoet
  • Enum Constant Details

    • kINSTANCE

      public static final JGUISounds kINSTANCE
      The singleton instance.
  • Method Details

    • values

      public static JGUISounds[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static JGUISounds valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • selectDefault

      public void selectDefault()
      Selects the default sound set.
    • selectSoundSet

      public void selectSoundSet(JGUISounds.EGUISoundSet guiSoundSet)
      Selects a specified sound set.
      Parameters:
      guiSoundSet - the sound set to use for the GUI
    • getCurrentSoundSet

      public JGUISounds.EGUISoundSet getCurrentSoundSet()
      Returns the currently selected sound set.
      Returns:
      the currently selected sound set
    • getButtonSoundFilename

      public String getButtonSoundFilename()
      Returns the sound filename associated with a button click.
      Returns:
      the sound filename associated with a button click
    • getChangeLookAndFeelSoundFilename

      public String getChangeLookAndFeelSoundFilename()
      Returns the sound filename associated when the application's look and feel has changed.
      Returns:
      the sound filename associated when the application's look and feel has change
    • getMenuItemSoundFilename

      public String getMenuItemSoundFilename()
      Returns the sound filename associated with a selection of a menu item.
      Returns:
      the sound filename associated with a selection of a menu item
    • getMessageDialogSoundFilename

      public String getMessageDialogSoundFilename()
      Returns the sound filename associated with a message dialog popup.
      Returns:
      the sound filename associated with a message dialog popup
    • getWarningDialogSoundFilename

      public String getWarningDialogSoundFilename()
      Returns the sound filename associated with a warning dialog popup.
      Returns:
      the sound filename associated with a warning dialog popup
    • getWindowEventSoundFilename

      public String getWindowEventSoundFilename()
      Returns the sound filename associated when the application's GUI window is iconified or deiconified.
      Returns:
      the sound filename associated when the application's GUI window is iconified or deiconified