|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lib.Configuration
public class Configuration
The configuration class encapsulates the abilities to modify program settings and attributes and store them to file.
Field Summary | |
---|---|
private static java.util.ArrayList |
sections
|
Constructor Summary | |
---|---|
private |
Configuration()
Private constructor to prevent instanciation |
Method Summary | |
---|---|
static java.util.ArrayList |
getByKey(java.lang.String path)
Look up a configuration file section by a slash delimited path |
static java.awt.Color |
getRGB(java.lang.String key)
Load a colour value from the configuration |
private static java.util.ArrayList |
recurse(java.util.ArrayList input,
int index)
Recursively load elements |
private static java.lang.String |
recurseList(boolean first,
java.util.ArrayList list,
int depth)
Recurse the list and generate output |
static void |
update()
Update configuration file and save changes to disk |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static java.util.ArrayList sections
Constructor Detail |
---|
private Configuration()
Method Detail |
---|
private static java.util.ArrayList recurse(java.util.ArrayList input, int index)
input
- Array of LispBlob objects that must be traversedindex
- Recusive depth inside listspublic static java.util.ArrayList getByKey(java.lang.String path)
path
- Path in configuration to load
public static void update()
private static java.lang.String recurseList(boolean first, java.util.ArrayList list, int depth)
first
- Is this the first level element?list
- List to recursively build fromdepth
- Recursive depth in lists
public static java.awt.Color getRGB(java.lang.String key)
Path
- to find the colour at
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |