|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.rssowl.dao.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(String element,
boolean init)
Get the state of a value from the user.xml |
String |
getValue(String element,
String attribute)
Load a value from the XML settings document |
String |
getValue(String element,
String attribute,
String init)
Load a value from the XML settings document |
String |
getValue(String element,
String attribute,
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 |
org.eclipse.swt.graphics.RGB |
loadColor(String element,
org.eclipse.swt.graphics.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. |
org.eclipse.swt.graphics.Font |
loadFont(org.eclipse.swt.graphics.Font font,
String fontName)
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. |
Hashtable |
loadSashWeights()
Load weights of the SashForms |
Hashtable |
loadShellBounds()
Load the bounds of the shell |
Vector |
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 Controllerpublic SettingsLoader(GUI rssOwlGui, org.jdom.Document document)
rssOwlGui
- The Main Controllerdocument
- The configuration XMLMethod Detail |
public boolean getBoolean(String element, boolean init)
element
- The Name of the Elementinit
- Initial value
public String getValue(String element, String attribute)
element
- The element's nameattribute
- The attribute's name
public String getValue(String element, String attribute, String init)
element
- The element's nameattribute
- The attribute's nameinit
- The initial value if attribute is not found
public String getValue(String element, String attribute, 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 org.eclipse.swt.graphics.RGB loadColor(String element, org.eclipse.swt.graphics.RGB init)
element
- The element's nameinit
- Init value if Color is null
public void loadFavorites()
public org.eclipse.swt.graphics.Font loadFont(org.eclipse.swt.graphics.Font font, String fontName)
font
- The Font to loadfontName
- The name of the font
public void loadHotKeys()
public void loadProxySettings()
public void loadRatings()
public void loadReopenFeeds()
public Hashtable loadSashWeights()
public Hashtable loadShellBounds()
public Vector 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 |