|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfi.hut.tml.xsmiles.XMLConfigurer
Stores general browser configuration and provides access to read values.
| Field Summary | |
protected boolean |
changed
|
protected org.w3c.dom.Document |
doc
|
protected java.net.URL |
fileurl
|
protected XMLParser |
parser
|
protected java.lang.String |
parserName
|
protected org.w3c.dom.Element |
root
|
| Constructor Summary | |
XMLConfigurer()
A XML tree based configuration handler which gives back properties to XPath queries |
|
| Method Summary | |
void |
configChanged()
Config has chaged, change global options |
org.w3c.dom.Element |
createNode(java.lang.String path)
Creates the node represented by path |
org.w3c.dom.Element |
findElement(java.lang.String path)
|
boolean |
getBooleanProperty(java.lang.String path)
|
org.w3c.dom.Document |
getConfigDocument()
|
java.lang.String |
getGUIProperty(BrowserWindow browser,
java.lang.String prop)
|
java.lang.String |
getGUIProperty(java.lang.String guiName,
java.lang.String prop)
|
int |
getIntProperty(java.lang.String path)
|
java.lang.String |
getProperty(java.lang.String path)
|
void |
readConfig(java.net.URL m_url)
Read the config file specified by the url |
void |
setGUIProperty(BrowserWindow browser,
java.lang.String prop,
java.lang.String value)
Set a GUI property |
void |
setProperty(java.lang.String path,
java.lang.String value)
Set a config property |
void |
writeConfig()
Write the config file specified by the url |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected boolean changed
protected org.w3c.dom.Element root
protected org.w3c.dom.Document doc
protected java.net.URL fileurl
protected XMLParser parser
protected java.lang.String parserName
| Constructor Detail |
public XMLConfigurer()
cfg/config.xml| Method Detail |
public void configChanged()
public void readConfig(java.net.URL m_url)
throws java.net.MalformedURLException,
java.io.IOException,
org.xml.sax.SAXException,
java.lang.ClassNotFoundException
java.net.MalformedURLException
java.io.IOException
org.xml.sax.SAXException
java.lang.ClassNotFoundExceptionpublic void writeConfig()
public void setProperty(java.lang.String path,
java.lang.String value)
public int getIntProperty(java.lang.String path)
path - Get an integer value config property (e.g "gui/screendepth")
public boolean getBooleanProperty(java.lang.String path)
path - Get an boolean value config property (e.g "gui/screendepth")
public java.lang.String getGUIProperty(BrowserWindow browser,
java.lang.String prop)
prop - The gui property found under gui/properties/
public java.lang.String getGUIProperty(java.lang.String guiName,
java.lang.String prop)
guiName - The title of the GUIprop - The gui property found under gui/properties/
public void setGUIProperty(BrowserWindow browser,
java.lang.String prop,
java.lang.String value)
public java.lang.String getProperty(java.lang.String path)
path - Get a config property (e.g "main/homepage")
public org.w3c.dom.Element createNode(java.lang.String path)
public org.w3c.dom.Element findElement(java.lang.String path)
public org.w3c.dom.Document getConfigDocument()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||