public class JavaPreferencesNode extends java.lang.Object implements PreferencesNode
Constructor and Description |
---|
JavaPreferencesNode(java.lang.String nodeName) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
flush() |
java.lang.String |
get(java.lang.String key,
java.lang.String def) |
boolean |
getBoolean(java.lang.String name,
boolean value) |
byte[] |
getByteArray(java.lang.String name,
byte[] value) |
java.awt.Color |
getColor(java.lang.String key,
java.awt.Color def) |
double |
getDouble(java.lang.String name,
double value) |
float |
getFloat(java.lang.String name,
float value) |
int |
getInt(java.lang.String name,
int value) |
long |
getLong(java.lang.String name,
long value) |
java.lang.String[] |
keys() |
java.lang.String |
name() |
void |
put(java.lang.String name,
java.lang.String value) |
void |
putBoolean(java.lang.String name,
boolean value) |
void |
putByteArray(java.lang.String name,
byte[] value) |
void |
putDouble(java.lang.String name,
double value) |
void |
putFloat(java.lang.String name,
float value) |
void |
putInt(java.lang.String name,
int value) |
void |
putLong(java.lang.String name,
long value) |
void |
remove(java.lang.String key) |
void |
sync() |
public java.lang.String name()
name
in interface PreferencesNode
public void clear() throws java.lang.Exception
clear
in interface PreferencesNode
java.lang.Exception
public void flush() throws java.lang.Exception
flush
in interface PreferencesNode
java.lang.Exception
public java.lang.String[] keys() throws java.lang.Exception
keys
in interface PreferencesNode
java.lang.Exception
public java.lang.String get(java.lang.String key, java.lang.String def)
get
in interface PreferencesNode
public void remove(java.lang.String key)
remove
in interface PreferencesNode
public void sync() throws java.lang.Exception
sync
in interface PreferencesNode
java.lang.Exception
public java.awt.Color getColor(java.lang.String key, java.awt.Color def)
getColor
in interface PreferencesNode
public boolean getBoolean(java.lang.String name, boolean value)
getBoolean
in interface PreferencesNode
public byte[] getByteArray(java.lang.String name, byte[] value)
getByteArray
in interface PreferencesNode
public double getDouble(java.lang.String name, double value)
getDouble
in interface PreferencesNode
public float getFloat(java.lang.String name, float value)
getFloat
in interface PreferencesNode
public int getInt(java.lang.String name, int value)
getInt
in interface PreferencesNode
public long getLong(java.lang.String name, long value)
getLong
in interface PreferencesNode
public void put(java.lang.String name, java.lang.String value)
put
in interface PreferencesNode
public void putBoolean(java.lang.String name, boolean value)
putBoolean
in interface PreferencesNode
public void putByteArray(java.lang.String name, byte[] value)
putByteArray
in interface PreferencesNode
public void putDouble(java.lang.String name, double value)
putDouble
in interface PreferencesNode
public void putFloat(java.lang.String name, float value)
putFloat
in interface PreferencesNode
public void putInt(java.lang.String name, int value)
putInt
in interface PreferencesNode
public void putLong(java.lang.String name, long value)
putLong
in interface PreferencesNode