lejos.nxt
Class SystemSettings
java.lang.Object
lejos.nxt.SystemSettings
public class SystemSettings
- extends Object
This class is designed for use by other lejos classes to
read persistent settings. User programs should use the Settings class
- Author:
- Lawrie Griffiths
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SystemSettings
public SystemSettings()
getStringSetting
public static String getStringSetting(String key,
String defaultValue)
- Get the value for a leJOS NXJ persistent setting as a String
- Parameters:
key
- the name of the settingdefaultValue
- the default value
- Returns:
- the value
getIntSetting
public static int getIntSetting(String key,
int defaultValue)
- Get the value for a leJOS NXJ persistent setting as an Integer
- Parameters:
key
- the name of the settingdefaultValue
- the default value
- Returns:
- the value