|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.johnmunsch.hotsheet.HSSettings
Acts as a singleton repository of all the settings for the entire application. Handles loading and storing of those settings for the program.
| Method Summary | |
void |
copyFile(java.io.File source,
java.io.File dest)
Copy source file to destination file. |
java.io.File |
getChannelStoreFile()
Return the File object to the channelStore |
java.io.File |
getHSPath()
Return the File object to the HotSheet directory. |
static HSSettings |
getInstance()
Retrieve the instance of the HSSettings object |
java.io.File |
getItemHistoryFile()
Return the File object to the itemHistory |
java.io.File |
getItemStoreFile()
Return the File object to the itemStore |
java.io.File |
getOldChannelStoreFile()
Return the File object to the old channelStore |
java.io.File |
getOldItemHistoryFile()
Return the File object to the old itemHistory |
java.io.File |
getOldItemStoreFile()
Return the File object to the old itemStore |
java.util.Properties |
getProperties()
Returns the properties set for the application. |
java.io.File |
getUserHomePath()
Return the File object corresponding to the user's home directory |
void |
load()
Loads the properties for the application. |
boolean |
relocateSettings()
Relocate settings from the user's home directory to the hotsheet directory. |
void |
store()
Saves the current properties settings for the application. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static HSSettings getInstance()
public java.io.File getUserHomePath()
public java.io.File getHSPath()
public java.io.File getChannelStoreFile()
public java.io.File getItemHistoryFile()
public java.io.File getItemStoreFile()
public java.io.File getOldChannelStoreFile()
public java.io.File getOldItemHistoryFile()
public java.io.File getOldItemStoreFile()
public void load()
public void store()
public java.util.Properties getProperties()
public boolean relocateSettings()
public void copyFile(java.io.File source,
java.io.File dest)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||