Table 3 |
|
Integrating Seahawk into other Java code. Complete Java code required to integrate Seahawk into a DOM-based application. The developer might also want to add rules specific to their application. |
|
import ca.ucalgary.seahawk.util.MobyUtils; |
|
import ca.ucalgary.seahawk.gui.MobyContentGUI; |
|
MobyContentGUI mGUI = MobyUtils.getMobyContentGUI(null); |
|
//Pick W3C DOM node 'contextNode' for rules eval, then... |
|
popup = new JPopupMenu(); |
|
//Evaluate Seahawk's XPath rules, from that node |
|
mGUI.addPopupOptions(contextNode, popup, true);//true=async |
|
popup.setVisible(true); |
|
|
|
Gordon and Sensen BMC Bioinformatics 2007 8:208 doi:10.1186/1471-2105-8-208 |