LinkListener ll = new LinkListener(root.panel.view);
LinkListener ll = new LinkListener(root.panel.view) { public void linkClicked(String uri) { if (uri.startsWith("demoNav")) { String pg = uri.split(":")[1]; if (pg.equals("back")) { navigateToPriorDemo(); } else { navigateToNextDemo(); } } else { super.linkClicked(uri); } } };
    public void createActions() {        if (Configuration.isTrue("xr.use.listeners", true)) {            SelectionMouseListener ma = new SelectionMouseListener();            root.panel.view.addMouseListener(ma);            root.panel.view.addMouseMotionListener(ma);                // XXX Is this necessary?  Basically identical code            // appears in XHTMLPanel.setupListeners().            HoverListener hl = new HoverListener(root.panel.view);            root.panel.view.addMouseListener(hl);            root.panel.view.addMouseMotionListener(hl);            LinkListener ll = new LinkListener(root.panel.view);            root.panel.view.addMouseListener(ll);            root.panel.view.addMouseMotionListener(ll);        }    }