public interface IPreferenceStore
Modifier and Type | Method and Description |
---|---|
void |
addPreferenceChildNode(IPreferenceNode node)
Add a new child to this PreferenceStore, that can contain new preferences.
|
IPreferenceNode |
getPreferenceChildNode(String key)
Get one child of the PreferncesStore, that belongs to the key.
|
HashMap |
getPreferenceChildNodes()
Get the HashMap, that contains all childs of the PreferenceStore.
|
void |
loadPreferences(String path)
Load all information about preferences from a XML file.
|
void |
removePreferenceChildNode(String key)
Remove one child of this PreferenceStore from the HashMap with all those
nodes.
|
void |
savePreferences()
Save all information about preferences in a XML file.
|
void |
savePreferences(String path)
Save all information about preferences in a XML file.
|
void addPreferenceChildNode(IPreferenceNode node)
node
- the node you want to add to this PreferenceNodevoid removePreferenceChildNode(String key)
key
- the name of the child, that should be removed from the storeHashMap getPreferenceChildNodes()
IPreferenceNode getPreferenceChildNode(String key)
key
- the name of the child, that should be returnedvoid savePreferences()
void savePreferences(String path)
path
- the path, where you want to store the file or null if you want to store at
a default pathvoid loadPreferences(String path)
path
- the path, from where the file will be loaded
if path = null the methode will try to load from a default path