|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.rssowl.dao.SettingsLoader
public class SettingsLoader
The SettingsLoader class is responsible to load all settings and favorites into RSSOwl.
| Field Summary | |
|---|---|
private org.jdom.Element |
root
The root element of the settings document |
private GUI |
rssOwlGui
Main Controller |
| Constructor Summary | |
|---|---|
SettingsLoader(GUI rssOwlGui)
Instantiate a new SettingsFactory |
|
SettingsLoader(GUI rssOwlGui,
org.jdom.Document document)
Instantiate a new SettingsFactory with a Document |
|
| Method Summary | |
|---|---|
private org.jdom.Document |
buildSettingsDocument()
Build the document holding the settings of RSSOwl |
boolean |
getBoolean(java.lang.String element,
boolean init)
Get the state of a value from the user.xml |
java.lang.String |
getValue(java.lang.String element,
java.lang.String attribute)
Load a value from the XML settings document |
java.lang.String |
getValue(java.lang.String element,
java.lang.String attribute,
java.lang.String init)
Load a value from the XML settings document |
java.lang.String |
getValue(java.lang.String element,
java.lang.String attribute,
java.lang.String init,
boolean trim)
Load a value from the XML settings document |
private Category |
loadCategory(Category rssOwlCategory,
org.jdom.Element catOrFav)
Load a category from the Element |
RGB |
loadColor(java.lang.String element,
RGB init)
Load the color |
private Favorite |
loadFavorite(Category rssOwlCategory,
org.jdom.Element catOrFav)
Load a favorite from the Element |
void |
loadFavorites()
Load user favorites and categorys in the RSSOwlFavTree. |
private void |
loadFavorites(Category rssOwlCategory,
org.jdom.Element element)
Load categories and favorites from the XML. |
Font |
loadFont(Font font,
java.lang.String fontName,
boolean isHotLoad)
Load a font from the settings |
void |
loadHotKeys()
Load the hotkeys |
void |
loadProxySettings()
Load the proxy settings |
void |
loadRatings()
Load all ratings that have not yet been submitted |
void |
loadReopenFeeds()
Load the feeds that RSSOwl shall reopen after application start. |
void |
loadSashWeights()
Load weights of the SashForms |
void |
loadShellBounds()
Load the bounds of the shell |
java.util.ArrayList |
loadSortOrder()
Load the sort Order to apply to News |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private org.jdom.Element root
private GUI rssOwlGui
| Constructor Detail |
|---|
public SettingsLoader(GUI rssOwlGui)
rssOwlGui - The Main Controller
public SettingsLoader(GUI rssOwlGui,
org.jdom.Document document)
rssOwlGui - The Main Controllerdocument - The configuration XML| Method Detail |
|---|
public boolean getBoolean(java.lang.String element,
boolean init)
element - The Name of the Elementinit - Initial value
public java.lang.String getValue(java.lang.String element,
java.lang.String attribute)
element - The element's nameattribute - The attribute's name
public java.lang.String getValue(java.lang.String element,
java.lang.String attribute,
java.lang.String init)
element - The element's nameattribute - The attribute's nameinit - The initial value if attribute is not found
public java.lang.String getValue(java.lang.String element,
java.lang.String attribute,
java.lang.String init,
boolean trim)
element - The element's nameattribute - The attribute's nameinit - The initial value if attribute is not foundtrim - If TRUE the text is trimmed
public RGB loadColor(java.lang.String element,
RGB init)
element - The element's nameinit - Init value if Color is null
public void loadFavorites()
public Font loadFont(Font font,
java.lang.String fontName,
boolean isHotLoad)
font - The Font to loadfontName - The name of the fontisHotLoad - TRUE if the settings are imported by the user from the
running program
public void loadHotKeys()
public void loadProxySettings()
public void loadRatings()
public void loadReopenFeeds()
public void loadSashWeights()
public void loadShellBounds()
public java.util.ArrayList loadSortOrder()
private org.jdom.Document buildSettingsDocument()
private Category loadCategory(Category rssOwlCategory,
org.jdom.Element catOrFav)
rssOwlCategory - The parent categorycatOrFav - The element to load the category from
private Favorite loadFavorite(Category rssOwlCategory,
org.jdom.Element catOrFav)
rssOwlCategory - The parent categorycatOrFav - The element to load the favorite from
private void loadFavorites(Category rssOwlCategory,
org.jdom.Element element)
rssOwlCategory - Current working categoryelement - Current working element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||