Package org.jjazz.midi.api.synths
Class FavoriteInstruments
java.lang.Object
org.jjazz.midi.api.synths.FavoriteInstruments
Store favorite instruments as preferences.
-
Field Summary
Modifier and TypeFieldDescriptionstatic String
oldValue=instrument if removed, newValue=instrument if added. -
Method Summary
Modifier and TypeMethodDescriptionboolean
addInstrument
(Instrument ins) Add a favorite instrument.void
boolean
contains
(Instrument ins) static FavoriteInstruments
All the favorite instruments.getInstruments
(MidiSynth synth) The favorite instruments for the specified MidiSynth.boolean
Remove a favorite instrument.void
-
Field Details
-
PROP_FAVORITE_INSTRUMENT
oldValue=instrument if removed, newValue=instrument if added.
-
-
Method Details
-
getInstance
-
addInstrument
Add a favorite instrument.- Parameters:
ins
-- Returns:
- True if added successfully (ins was not already present).
-
removeInstrument
Remove a favorite instrument.- Parameters:
ins
-- Returns:
- True if removed successfully (ins was present).
-
contains
-
getInstruments
All the favorite instruments.- Returns:
-
getInstruments
The favorite instruments for the specified MidiSynth.- Parameters:
synth
-- Returns:
-
addPropertyListener
-
removePropertyListener
-