Package ucar.unidata.idv.chooser
Class MenuHandler
java.lang.Object
ucar.unidata.idv.chooser.XmlHandler
ucar.unidata.idv.chooser.MenuHandler
This handles the menu bar xml (from idv/resources/defaultmenu.xml)
to include idv commands, etc, into a
XmlChooser chooser.- Version:
- $Revision: 1.10 $Date: 2007/06/28 17:13:04 $
- Author:
- IDV development team
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe action attribute in menuitemsstatic final StringXml tag name for menustatic final StringXml tag name for menuitemsstatic final StringXml tag name for menusFields inherited from class ucar.unidata.idv.chooser.XmlHandler
chooser, path, root, tree -
Constructor Summary
ConstructorsConstructorDescriptionMenuHandler(XmlChooser chooser, Element root, String path) Create the handler -
Method Summary
Modifier and TypeMethodDescriptionvoiddoLoad()The user has pressed the 'Load' button.Make the GUIMethods inherited from class ucar.unidata.idv.chooser.XmlHandler
getContents, getPath, updateStatus
-
Field Details
-
TAG_MENUS
Xml tag name for menus- See Also:
-
TAG_MENU
Xml tag name for menu- See Also:
-
TAG_MENUITEM
Xml tag name for menuitems- See Also:
-
ATTR_ACTION
The action attribute in menuitems- See Also:
-
-
Constructor Details
-
MenuHandler
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
-
doMakeContents
Make the GUI- Specified by:
doMakeContentsin classXmlHandler- Returns:
- The UI component
-
doLoad
public void doLoad()The user has pressed the 'Load' button. Check if a node is selected and process the xml action attribute- Specified by:
doLoadin classXmlHandler
-