vooga.levelEditor.xml.menu
Interface MenuElementBuilder
interface MenuElementBuilder
Classes that implement MenuElementBuilder
are capable of
constructing a JMenuItem
given a parent menu and an XML element.
- Author:
- Phil Puryear
Method Summary |
javax.swing.JMenuItem |
build(javax.swing.JMenu parent,
org.w3c.dom.Element xmlElement)
Creates a menu element given a parent menu and an XML node. |
build
javax.swing.JMenuItem build(javax.swing.JMenu parent,
org.w3c.dom.Element xmlElement)
- Creates a menu element given a parent menu and an XML node.
- Parameters:
parent
- The parent menu for this item. May be null
.xmlElement
- An XML element corresponding to the menu item to be created
- Returns:
- The menu item IF
parent
is unmodified,
null
otherwise.