Package org.sm.smtools.application.util
Enum Class JGUISounds
- All Implemented Interfaces:
Serializable
,Comparable<JGUISounds>
,Constable
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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The different GUI sound sets.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the sound filename associated with a button click.Returns the sound filename associated when the application's look and feel has changed.Returns the currently selected sound set.Returns the sound filename associated with a selection of a menu item.Returns the sound filename associated with a message dialog popup.Returns the sound filename associated with a warning dialog popup.Returns the sound filename associated when the application's GUI window is iconified or deiconified.void
Selects the default sound set.void
selectSoundSet
(JGUISounds.EGUISoundSet guiSoundSet) Selects a specified sound set.static JGUISounds
Returns the enum constant of this class with the specified name.static JGUISounds[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
kINSTANCE
The singleton instance.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
selectDefault
public void selectDefault()Selects the default sound set. -
selectSoundSet
Selects a specified sound set.- Parameters:
guiSoundSet
- the sound set to use for the GUI
-
getCurrentSoundSet
Returns the currently selected sound set.- Returns:
- the currently selected sound set
-
getButtonSoundFilename
Returns the sound filename associated with a button click.- Returns:
- the sound filename associated with a button click
-
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
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
Returns the sound filename associated with a message dialog popup.- Returns:
- the sound filename associated with a message dialog popup
-
getWarningDialogSoundFilename
Returns the sound filename associated with a warning dialog popup.- Returns:
- the sound filename associated with a warning dialog popup
-
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
-