|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.musicontroller.UserProperties
public class UserProperties
Implements loading, setting and saving user properties.
Nested Class Summary | |
---|---|
static class |
UserProperties.CandidateselectorPlayorder
Specifies the possible strategies of the CandidateSelector to play requested songs. |
Constructor Summary | |
---|---|
UserProperties()
|
Method Summary | |
---|---|
static void |
applyProperties(IUser user)
Load the user properties and apply them to the MusiController. |
static void |
applyProperties(IUser user,
DJ dj)
|
static java.util.Properties |
loadUserProperties(IUser user)
Loads the user properties from disk and returns them. |
static void |
setUserProperty(User user,
java.lang.String propName,
java.lang.String propValue)
Loads the users' properties file, sets the property specified in the propName parameter to the value specified in the propValue parameter and saves the properties file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserProperties()
Method Detail |
---|
public static java.util.Properties loadUserProperties(IUser user)
user
- Indicates the user whose properties should be loaded.
public static void applyProperties(IUser user)
user
- Specifies the user to apply the properties to.public static void applyProperties(IUser user, DJ dj)
public static void setUserProperty(User user, java.lang.String propName, java.lang.String propValue)
user
- The user.propName
- The key of the property to set.propValue
- The value of the property.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |