public abstract class XmlHandler
extends java.lang.Object
XmlChooser
.
The two primary subclasses are the WmsHandler
and the ThreddsHandler
Modifier and Type | Field and Description |
---|---|
protected XmlChooser |
chooser
The chooser we are handling xml docs for
|
protected java.lang.String |
path
This is the url or file path pointing to the xml
|
protected org.w3c.dom.Element |
root
The root of the xml document
|
protected XmlTree |
tree
Most of the subclasses use the
XmlTree
to display the xml. |
Constructor and Description |
---|
XmlHandler(XmlChooser chooser,
org.w3c.dom.Element root,
java.lang.String path)
Create the handler
|
Modifier and Type | Method and Description |
---|---|
abstract void |
doLoad()
The user has pressed the 'Load' button.
|
protected abstract javax.swing.JComponent |
doMakeContents()
Overwritten by derived classes to actually create
the GUI
|
javax.swing.JComponent |
getContents()
Return the GUI contents
|
java.lang.String |
getPath()
Return the url or file path to the xml document
|
protected void |
updateStatus()
_more_
|
protected XmlChooser chooser
protected org.w3c.dom.Element root
protected java.lang.String path
public XmlHandler(XmlChooser chooser, org.w3c.dom.Element root, java.lang.String path)
chooser
- The chooser we are inroot
- The root of the xml treepath
- The url path of the xml documentprotected void updateStatus()
public java.lang.String getPath()
public final javax.swing.JComponent getContents()
protected abstract javax.swing.JComponent doMakeContents()
public abstract void doLoad()