public class ThreddsHandler extends XmlHandler
XmlChooser
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NULL_STRING
More clear than then doing (String)null
|
chooser, path, root, tree
Constructor and Description |
---|
ThreddsHandler(XmlChooser chooser,
org.w3c.dom.Element root,
java.lang.String path)
Create the handler
|
Modifier and Type | Method and Description |
---|---|
void |
doLoad()
The user has pressed the 'Load' button.
|
protected javax.swing.JComponent |
doMakeContents()
Create the UI
|
void |
fetchImages(java.lang.String[] tuple)
Fetch the image url and update the tree.
|
protected java.lang.String |
getDocumentationLabel(org.w3c.dom.Element node)
For the given documentation node return the label that we use (eg:, Summary, rights, etc)
|
protected java.lang.String |
getDocumentationToolTip(org.w3c.dom.Element node)
Get the tooltip text to use for the given documentation node.
|
java.lang.String |
getPropertyAttributeFromChild(org.w3c.dom.Element parent,
java.lang.String nameValueLookingFor,
java.lang.String dflt)
Look for the named attribute contained by a child of the given element
with the given tag name.
|
static void |
main(java.lang.String[] args)
Test the html generation
|
void |
processNode(org.w3c.dom.Element node)
Process the given node
|
protected void |
updateStatus()
Update the status
|
getContents, getPath
public static final java.lang.String NULL_STRING
public ThreddsHandler(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()
updateStatus
in class XmlHandler
protected java.lang.String getDocumentationLabel(org.w3c.dom.Element node)
node
- The documentation nodeprotected java.lang.String getDocumentationToolTip(org.w3c.dom.Element node)
node
- The xml doc nodeprotected javax.swing.JComponent doMakeContents()
doMakeContents
in class XmlHandler
public void fetchImages(java.lang.String[] tuple)
tuple
- id and urlpublic void doLoad()
doLoad
in class XmlHandler
public void processNode(org.w3c.dom.Element node)
node
- nodepublic java.lang.String getPropertyAttributeFromChild(org.w3c.dom.Element parent, java.lang.String nameValueLookingFor, java.lang.String dflt)
parent
- The xml node to look within.nameValueLookingFor
- The value we are looking fordflt
- The default value returned.public static void main(java.lang.String[] args) throws java.lang.Exception
args
- Command line argsjava.lang.Exception
- problem occurred