net.sourceforge.pmd.util.viewer.gui.menu

Class XPathFragmentAddingItem

public class XPathFragmentAddingItem extends JMenuItem implements ActionListener

adds the given path fragment to the XPath expression upon action

Version: $Id: XPathFragmentAddingItem.java 4217 2006-02-10 14:15:31Z tomcopeland $

Author: Boris Gruschko ( boris at gruschko.org )

Constructor Summary
XPathFragmentAddingItem(String caption, ViewerModel model, String fragment)
constructs the item
Method Summary
voidactionPerformed(ActionEvent e)

Constructor Detail

XPathFragmentAddingItem

public XPathFragmentAddingItem(String caption, ViewerModel model, String fragment)
constructs the item

Parameters: caption menu item's caption model model to refer to fragment XPath expression fragment to be added upon action

Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)

See Also: java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)