|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.upb.swtpra05.group03.companycontrol.Settings
Class for saving settings of an application
| Field Summary | |
private static boolean |
debug
No comment provided by developer, please add a comment to improve documentation. |
static java.lang.String |
FRAME_HEIGHT
No comment provided by developer, please add a comment to improve documentation. |
static java.lang.String |
FRAME_WIDTH
No comment provided by developer, please add a comment to improve documentation. |
private java.util.HashMap |
settings
No comment provided by developer, please add a comment to improve documentation. |
private java.io.File |
settingsFile
No comment provided by developer, please add a comment to improve documentation. |
| Constructor Summary | |
Settings(java.lang.String filename)
Constructor |
|
| Method Summary | |
void |
add(java.lang.String settingsName,
java.lang.String value)
No comment provided by developer, please add a comment to improve documentation. |
java.lang.String |
get(java.lang.String settingsName)
No comment provided by developer, please add a comment to improve documentation. |
boolean |
has(java.lang.String settingsName)
No comment provided by developer, please add a comment to improve documentation. |
void |
print()
prints the settings |
private void |
readSettings()
returns the resource file in a byte array reads the settings |
void |
remove(java.lang.String settingsName)
No comment provided by developer, please add a comment to improve documentation. |
void |
write()
No comment provided by developer, please add a comment to improve documentation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final boolean debug
private java.io.File settingsFile
private java.util.HashMap settings
public static final java.lang.String FRAME_WIDTH
public static final java.lang.String FRAME_HEIGHT
| Constructor Detail |
public Settings(java.lang.String filename)
filename - | Method Detail |
private void readSettings()
throws java.lang.Exception
java.lang.Exception - Exception description not providedpublic void write()
public java.lang.String get(java.lang.String settingsName)
settingsName - No description provided
public boolean has(java.lang.String settingsName)
settingsName - No description provided
public void add(java.lang.String settingsName,
java.lang.String value)
settingsName - No description providedvalue - No description providedpublic void remove(java.lang.String settingsName)
settingsName - No description providedpublic void print()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||