Package ucar.unidata.idv.chooser
Class XmlHandler
java.lang.Object
ucar.unidata.idv.chooser.XmlHandler
- Direct Known Subclasses:
MenuHandler,OpenSearchHandler,ThreddsHandler,WmsHandler
This is an abstract base class for defining different handlers
of xml documents for the
XmlChooser.
The two primary subclasses are the WmsHandler
and the ThreddsHandler- Version:
- $Revision: 1.14 $Date: 2007/07/09 22:59:59 $
- Author:
- IDV development team
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected XmlChooserThe chooser we are handling xml docs forprotected StringThis is the url or file path pointing to the xmlprotected ElementThe root of the xml documentprotected XmlTreeMost of the subclasses use theXmlTreeto display the xml. -
Constructor Summary
ConstructorsConstructorDescriptionXmlHandler(XmlChooser chooser, Element root, String path) Create the handler -
Method Summary
Modifier and TypeMethodDescriptionabstract voiddoLoad()The user has pressed the 'Load' button.protected abstract JComponentOverwritten by derived classes to actually create the GUIfinal JComponentReturn the GUI contentsgetPath()Return the url or file path to the xml documentprotected void_more_
-
Field Details
-
chooser
The chooser we are handling xml docs for -
root
The root of the xml document -
path
This is the url or file path pointing to the xml -
tree
Most of the subclasses use theXmlTreeto display the xml.
-
-
Constructor Details
-
XmlHandler
Create the handler- Parameters:
chooser- The chooser we are inroot- The root of the xml treepath- The url path of the xml document
-
-
Method Details
-
updateStatus
protected void updateStatus()_more_ -
getPath
Return the url or file path to the xml document- Returns:
- The url or file path
-
getContents
Return the GUI contents- Returns:
- The UI component
-
doMakeContents
Overwritten by derived classes to actually create the GUI- Returns:
- The GUI
-
doLoad
public abstract void doLoad()The user has pressed the 'Load' button. Check if a node is selected Needs to ber overwritten by derived classes.
-