|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.rssowl.dao.SettingsSaver
public class SettingsSaver
The SettingsSaver class is responsible to save all settings and favorites into the user.xml settings file.
| Field Summary | |
|---|---|
private org.jdom.Document |
document
|
private org.jdom.Element |
root
|
private GUI |
rssOwlGui
|
| Constructor Summary | |
|---|---|
SettingsSaver(GUI rssOwlGui)
Instantiate a new SettingsSaver |
|
| Method Summary | |
|---|---|
private void |
saveBoolean(java.lang.String name,
boolean state)
Save a Boolean value to the user.xml |
private void |
saveColor(java.lang.String elementName,
RGB color)
Save a color |
(package private) void |
saveFavoritesOrCategorys(java.util.Hashtable categorys,
org.jdom.Element element)
Save Categorys and Favorits to the XML. |
private void |
saveFont(java.lang.String name,
Font font)
Save the selected font |
private void |
saveHotkeys()
Save hotkeys |
private void |
saveProxySettings()
Save Proxysettings |
private void |
saveRatings()
Save all ratings that have not yet been submitted |
private void |
saveReopenFeeds(java.util.Vector feeds)
Save the feeds that RSSOwl shall reopen after application start. |
private void |
saveSashWeights()
Save weights of the SashForms |
private void |
saveShellBounds()
Save Shell Bounds |
private void |
saveSortOrder(java.util.ArrayList sortOrderVector)
Save the sort Order to apply to News |
void |
saveUserSettings(boolean fromShutDownHook)
Save all Settings. |
private void |
saveValue(java.lang.String elementName,
java.lang.String value)
Save a setting to the settings XML file |
private void |
saveValue(java.lang.String elementName,
java.lang.String attribute,
java.lang.String value)
Save a setting to the settings XML file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private org.jdom.Document document
private org.jdom.Element root
private GUI rssOwlGui
| Constructor Detail |
|---|
public SettingsSaver(GUI rssOwlGui)
rssOwlGui - The Main Controller| Method Detail |
|---|
public void saveUserSettings(boolean fromShutDownHook)
fromShutDownHook - If TRUE, this Method is called from the Shutdown
Hook.
private void saveBoolean(java.lang.String name,
boolean state)
name - Name of the elementstate - TRUE or FALSE
private void saveColor(java.lang.String elementName,
RGB color)
elementName - The name of the elementcolor - The color to save
private void saveFont(java.lang.String name,
Font font)
name - Font namefont - The font to saveprivate void saveHotkeys()
private void saveProxySettings()
private void saveRatings()
private void saveReopenFeeds(java.util.Vector feeds)
feeds - Vector with URLs of the feedsprivate void saveSashWeights()
private void saveShellBounds()
private void saveSortOrder(java.util.ArrayList sortOrderVector)
sortOrderVector - The sort order
private void saveValue(java.lang.String elementName,
java.lang.String value)
elementName - Name of the elementvalue - Value of the element
private void saveValue(java.lang.String elementName,
java.lang.String attribute,
java.lang.String value)
elementName - Name of the elementattribute - Attribute name of the elementvalue - Attribute value of the element
void saveFavoritesOrCategorys(java.util.Hashtable categorys,
org.jdom.Element element)
categorys - Current working Categoryselement - Current working Element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||