Package org.jjazz.midi.api.synths
Class FavoriteInstruments
java.lang.Object
org.jjazz.midi.api.synths.FavoriteInstruments
Store favorite instruments as preferences.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic StringoldValue=instrument if removed, newValue=instrument if added.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanaddInstrument(Instrument ins) Add a favorite instrument.voidbooleancontains(Instrument ins) static FavoriteInstrumentsAll the favorite instruments.getInstruments(MidiSynth synth) The favorite instruments for the specified MidiSynth.booleanRemove a favorite instrument.void
- 
Field Details- 
PROP_FAVORITE_INSTRUMENToldValue=instrument if removed, newValue=instrument if added.
 
- 
- 
Method Details- 
getInstance
- 
addInstrumentAdd a favorite instrument.- Parameters:
- ins-
- Returns:
- True if added successfully (ins was not already present).
 
- 
removeInstrumentRemove a favorite instrument.- Parameters:
- ins-
- Returns:
- True if removed successfully (ins was present).
 
- 
contains
- 
getInstrumentsAll the favorite instruments.- Returns:
 
- 
getInstrumentsThe favorite instruments for the specified MidiSynth.- Parameters:
- synth-
- Returns:
 
- 
addPropertyListener
- 
removePropertyListener
 
-