|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.rssowl.dao.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 |
|
SettingsSaver(GUI rssOwlGui,
org.jdom.Document document)
Instantiate a new SettingsSaver and use the given Document to save settings and/or favorites. |
Method Summary | |
private void |
saveBoolean(String name,
boolean state)
Save a Boolean value to the user.xml |
private void |
saveColor(String elementName,
org.eclipse.swt.graphics.RGB color)
Save a color |
(package private) void |
saveFavoritesOrCategorys(Hashtable categorys,
org.jdom.Element element)
Save Categorys and Favorits to the XML. |
private void |
saveFont(String name,
org.eclipse.swt.graphics.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(Vector feeds)
Save the feeds that RSSOwl shall reopen after application start. |
private void |
saveSashWeights(Hashtable sashWeights)
Save weights of the SashForms |
private void |
saveShellBounds(Hashtable shellBounds)
Save Shell Bounds |
private void |
saveSortOrder(Vector sortOrderVector)
Save the sort Order to apply to News |
void |
saveUserSettings()
Save all Settings |
private void |
saveValue(String elementName,
String value)
Save a setting to the settings XML file |
private void |
saveValue(String elementName,
String attribute,
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 Controllerpublic SettingsSaver(GUI rssOwlGui, org.jdom.Document document)
rssOwlGui
- The Main Controllerdocument
- The file to save settings intoMethod Detail |
public void saveUserSettings()
private void saveBoolean(String name, boolean state)
name
- Name of the elementstate
- TRUE or FALSEprivate void saveColor(String elementName, org.eclipse.swt.graphics.RGB color)
elementName
- The name of the elementcolor
- The color to saveprivate void saveFont(String name, org.eclipse.swt.graphics.Font font)
name
- Font namefont
- The font to saveprivate void saveHotkeys()
private void saveProxySettings()
private void saveRatings()
private void saveReopenFeeds(Vector feeds)
feeds
- Vector with URLs of the feedsprivate void saveSashWeights(Hashtable sashWeights)
sashWeights
- The sash weightsprivate void saveShellBounds(Hashtable shellBounds)
shellBounds
- The bounds of the shellprivate void saveSortOrder(Vector sortOrderVector)
sortOrderVector
- The sort orderprivate void saveValue(String elementName, String value)
elementName
- Name of the elementvalue
- Value of the elementprivate void saveValue(String elementName, String attribute, String value)
elementName
- Name of the elementattribute
- Attribute name of the elementvalue
- Attribute value of the elementvoid saveFavoritesOrCategorys(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 |