|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable<Object,Object>
java.util.Properties
org.proteios.core.PreferencesFile
public final class PreferencesFile
Manages user preferences data stored in user preference file.
| Field Summary |
|---|
| Fields inherited from class java.util.Properties |
|---|
defaults |
| Constructor Summary | |
|---|---|
PreferencesFile(User owner)
Constructor for class PreferencesFile. |
|
| Method Summary | |
|---|---|
DbControl |
getDbControl()
Get the DbControl. |
FileWriter |
getFileWriter()
Get FileWriter instance to preferences file (Internal use only). |
String |
getFromName()
Get the "from" name to use for e-mail notification. |
int |
getNotificationMode()
Get the notification mode. |
String |
getPreferencesFilePath()
Get preferences file path. |
String |
getSmtpHost()
Get the SMTP host to use for e-mail notification. |
List<TablePreferences> |
getTablePreferencesList()
Get the table preferences list. |
int |
getTablePreferencesMode()
Get the table preferences mode. |
String |
getToAddress()
Get the "to" address to use for e-mail notification. |
User |
getUser()
Get the user the preferences file is intended for. |
void |
resetTablePreferences()
Resets user preferences for tables stored in instance variables. |
void |
save()
Saves settings in user preferences file. |
void |
saveBackupFile()
Save backup copy of user preferences file. |
void |
setDbControl(DbControl dbControl)
Set the DbControl. |
void |
setFromName(String fromName)
Set the "from" name to use for e-mail notification. |
void |
setNotificationMode(int notificationMode)
Set the notification mode. |
void |
setSmtpHost(String smtpHost)
Set the SMTP host to use for e-mail notification. |
void |
setTablePreferencesList(List<TablePreferences> tablePreferencesList)
Set the table preferences list. |
void |
setTablePreferencesMode(int tablePreferencesMode)
Set the table preferences mode. |
void |
setToAddress(String toAddress)
Set the "to" address to use for e-mail notification. |
void |
setUser(User user)
Set the user the preferences file is intended for. |
| Methods inherited from class java.util.Properties |
|---|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames |
| Methods inherited from class java.util.Hashtable |
|---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PreferencesFile(User owner)
owner - User The user to load preferences for.| Method Detail |
|---|
public User getUser()
public void setUser(User user)
user - User The user the preferences file is intended for.public DbControl getDbControl()
public void setDbControl(DbControl dbControl)
dbControl - DbControl The DbControl to use.public String getPreferencesFilePath()
public String getSmtpHost()
public void setSmtpHost(String smtpHost)
smtpHost - String The SMTP host to use for e-mail notification.public String getFromName()
public void setFromName(String fromName)
fromName - String The "from" name to use for e-mail notification.public String getToAddress()
public void setToAddress(String toAddress)
toAddress - String The "to" address to use for e-mail notification.public int getNotificationMode()
public void setNotificationMode(int notificationMode)
notificationMode - int The notification mode to use.public int getTablePreferencesMode()
public void setTablePreferencesMode(int tablePreferencesMode)
tablePreferencesMode - int The table preferences mode to use.public List<TablePreferences> getTablePreferencesList()
public void setTablePreferencesList(List<TablePreferences> tablePreferencesList)
tablePreferencesList - Listpublic FileWriter getFileWriter()
public void saveBackupFile()
public void resetTablePreferences()
public void save()
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||