public class XULDOMParser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.w3c.dom.Document |
document |
static java.lang.String |
EMBED_PREFIX
The emnbedded script default prefix.
|
protected java.net.URL |
parent |
protected java.net.URL |
script |
protected ScriptListener |
scriptListener |
protected javax.swing.LookAndFeel |
selectedLF |
protected XULDocument |
xuldocument |
Constructor and Description |
---|
XULDOMParser(ScriptManager manager,
java.lang.String name,
java.net.URL script)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.net.URL,ScriptHandle> |
getExternalScripts()
Return the external Javascript scripts referenced in the XUL Script.
|
XULDocument |
getScript()
Return the XUL Document after parsing.
|
boolean |
parse(boolean isValidating)
Parse the XUL Script.
|
void |
parse(javax.xml.parsers.SAXParser parser)
Parse the XUL Script.
|
void |
setLookAndFeel(javax.swing.LookAndFeel lf) |
void |
setScriptListener(ScriptListener scriptListener) |
public static final java.lang.String EMBED_PREFIX
protected java.net.URL script
protected java.net.URL parent
protected org.w3c.dom.Document document
protected XULDocument xuldocument
protected javax.swing.LookAndFeel selectedLF
protected ScriptListener scriptListener
public XULDOMParser(ScriptManager manager, java.lang.String name, java.net.URL script)
manager
- the ScriptManagername
- the XUL Script namescript
- the XUL Script Filepublic boolean parse(boolean isValidating)
isValidating
- true for a validating parserpublic void parse(javax.xml.parsers.SAXParser parser) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException
parser
- the parent parserorg.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
public XULDocument getScript()
public void setScriptListener(ScriptListener scriptListener)
public void setLookAndFeel(javax.swing.LookAndFeel lf)
public java.util.Map<java.net.URL,ScriptHandle> getExternalScripts()
Copyright © 2008-2020 Herve Girod. All Rights Reserved. Documentation and source under the LGPL licence