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 interfaceSoundConfigurer.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 voidchooseClip()protected SoundConfigurer.AudioClipFactorycreateAudioClipFactory()ComponentgetControls()GUI interface for setting the option in an editing windowStringgetValueString()voidplay()voidsetValue(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:ConfigurerGUI interface for setting the option in an editing window- Specified by:
getControlsin classConfigurer
-
getValueString
- Specified by:
getValueStringin classConfigurer- Returns:
- a String representation of the Object value
-
setValue
Description copied from class:ConfigurerSet the Object value from a String- Specified by:
setValuein classConfigurer
-
createAudioClipFactory
-
play
public void play() -
chooseClip
public void chooseClip()
-