public void actionPerformed(ActionEvent evt) { Cab2bHyperlink<JPageElement> hyperlink = (Cab2bHyperlink<JPageElement>) evt.getSource(); String hyperlinkText = hyperlink.getText(); JPageElement jPageElement = hyperlink.getUserObject(); PageElement pageElement = jPageElement.getPageElement(); /* Get the data row corresponding to the clicked element. */ Vector recordListUserObject = (Vector) pageElement.getUserObject(); DataRow dataRow = (DataRow) recordListUserObject.get(0); IRecord record = (IRecord) recordListUserObject.get(1); ViewSearchResultsSimplePanel currentPanel = (ViewSearchResultsSimplePanel) m_resultsPanel.getComponent(panelCount); /* * Refresh the breadcrumb vector, and pass that instance onto a new * instance of the breadcrumb panel. */ int currentCount = ++panelCount; m_vBreadCrumbs.add(currentCount + "#" + hyperlinkText); BreadcrumbPanel breadcrumbPanel = new BreadcrumbPanel(getBreadCrumbsAL(), m_vBreadCrumbs, this.searchPanel.viewPanel); currentBreadCrumbName = hyperlinkText; JXPanel detailsPanel = ResultPanelFactory.getSearchResultPanel( searchPanel, record, dataRow, currentPanel.getIncomingAssociationCollection(), currentPanel.getIntraModelAssociationCollection()); addBreadCrumbPanel(breadcrumbPanel, "" + currentCount); showBreadcrumbPanel("" + currentCount); addPanel(detailsPanel, "" + currentCount); showPanel("" + currentCount); }