Class RhythmDirsLocatorImpl
java.lang.Object
org.jjazz.rhythm.api.RhythmDirsLocatorImpl
- All Implemented Interfaces:
RhythmDirsLocator
A parameterized implementation of the RhythmDirsLocator interface.
-
Field Summary
Fields inherited from interface org.jjazz.rhythm.spi.RhythmDirsLocator
DEFAULT_RHYTHMS_SUBDIR, PROP_RHYTHM_USER_DIRECTORY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidGet the user base directory for Rhythm files.voidvoidSet the user base directory where to find rhythm files.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jjazz.rhythm.spi.RhythmDirsLocator
getDefaultRhythmsDirectory
-
Constructor Details
-
RhythmDirsLocatorImpl
- Parameters:
defaultUserRhythmDir- Path to the default user rhythm directory.prefs- Preferences to store a customized user rhythm directory
-
-
Method Details
-
getUserRhythmsDirectory
Description copied from interface:RhythmDirsLocatorGet the user base directory for Rhythm files.Create the directory if required.
- Specified by:
getUserRhythmsDirectoryin interfaceRhythmDirsLocator- Returns:
- An existing directory
-
setUserRhythmsDirectory
Description copied from interface:RhythmDirsLocatorSet the user base directory where to find rhythm files.If changed the method fires a PROP_RHYTHM_USER_DIRECTORY property change event.
- Specified by:
setUserRhythmsDirectoryin interfaceRhythmDirsLocator- Parameters:
dir- Must exist
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListenerin interfaceRhythmDirsLocator
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListenerin interfaceRhythmDirsLocator
-