Package VASSAL.configure
Class SoundConfigurer
java.lang.Object
VASSAL.configure.Configurer
VASSAL.configure.SoundConfigurer
public class SoundConfigurer extends Configurer
Configurer for specifying a Clip. This class is intended to allow
players to override a default sound with their own sound file on their
local file system.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interface
SoundConfigurer.AudioClipFactory
-
Field Summary
Fields inherited from class VASSAL.configure.Configurer
changeSupport, frozen, key, name, NAME_PROPERTY, noUpdate, value
-
Constructor Summary
Constructors Constructor Description SoundConfigurer(String key, String name, String defaultResource)
-
Method Summary
Modifier and Type Method Description void
chooseClip()
protected SoundConfigurer.AudioClipFactory
createAudioClipFactory()
Component
getControls()
GUI interface for setting the option in an editing windowString
getValueString()
void
play()
void
setValue(String s)
Set the Object value from a StringMethods inherited from class VASSAL.configure.Configurer
addPropertyChangeListener, fireUpdate, getKey, getName, getValue, isFrozen, removePropertyChangeListener, setFrozen, setName, setValue
-
Field Details
-
DEFAULT
- See Also:
- Constant Field Values
-
-
Constructor Details
-
SoundConfigurer
-
-
Method Details
-
getControls
Description copied from class:Configurer
GUI interface for setting the option in an editing window- Specified by:
getControls
in classConfigurer
-
getValueString
- Specified by:
getValueString
in classConfigurer
- Returns:
- a String representation of the Object value
-
setValue
Description copied from class:Configurer
Set the Object value from a String- Specified by:
setValue
in classConfigurer
-
createAudioClipFactory
-
play
public void play() -
chooseClip
public void chooseClip()
-