|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.idv.chooser.XmlHandler
ucar.unidata.idv.chooser.ThreddsHandler
public class ThreddsHandler
This handles the Thredds catalog xml for the
XmlChooser.
| Field Summary | |
|---|---|
static String |
NULL_STRING
More clear than then doing (String)null |
| Fields inherited from class ucar.unidata.idv.chooser.XmlHandler |
|---|
chooser, path, root, tree |
| Constructor Summary | |
|---|---|
ThreddsHandler(XmlChooser chooser,
Element root,
String path)
Create the handler |
|
| Method Summary | |
|---|---|
void |
doLoad()
The user has pressed the 'Load' button. |
protected JComponent |
doMakeContents()
Create the UI |
protected String |
getDocumentationLabel(Element node)
For the given documentation node return the label that we use (eg:, Summary, rights, etc) |
protected String |
getDocumentationToolTip(Element node)
Get the tooltip text to use for the given documentation node. |
String |
getPropertyAttributeFromChild(Element parent,
String nameValueLookingFor,
String dflt)
Look for the named attribute contained by a child of the given element with the given tag name. |
static void |
main(String[] args)
Test the html generation |
void |
processNode(Element node)
Process the given node |
protected void |
updateStatus()
|
| Methods inherited from class ucar.unidata.idv.chooser.XmlHandler |
|---|
getContents, getPath |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String NULL_STRING
| Constructor Detail |
|---|
public ThreddsHandler(XmlChooser chooser,
Element root,
String path)
chooser - The chooser we are inroot - The root of the xml treepath - The url path of the xml document| Method Detail |
|---|
protected void updateStatus()
updateStatus in class XmlHandlerprotected String getDocumentationLabel(Element node)
node - The documentation node
protected String getDocumentationToolTip(Element node)
node - The xml doc node
protected JComponent doMakeContents()
doMakeContents in class XmlHandlerpublic void doLoad()
doLoad in class XmlHandlerpublic void processNode(Element node)
node - node
public String getPropertyAttributeFromChild(Element parent,
String nameValueLookingFor,
String dflt)
parent - The xml node to look within.nameValueLookingFor - The value we are looking fordflt - The default value returned.
public static void main(String[] args)
args - Command line args
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||