edu.stanford.smi.protegex.owl.ui.results
Interface HostResourceDisplay

All Known Subinterfaces:
NavigationHistoryTabWidget
All Known Implementing Classes:
ClassTree, InstancesList, OWLClassesTab, OWLFormsTab, OWLIndividualsTab, OWLMetadataTab, OWLPropertiesTab

public interface HostResourceDisplay

An interface that is typically implemented by TabWidgets, allowing them to interact with global actions such as searching. For example, if a user double clicks on the search results, a tab implementing this interface can navigate to the selected resource.

Author:
Holger Knublauch

Method Summary
 boolean displayHostResource(RDFResource resource)
          Called by actions such as the view action in the FindUsagePanel or the OWLTestResultsPanel.
 

Method Detail

displayHostResource

public boolean displayHostResource(RDFResource resource)
Called by actions such as the view action in the FindUsagePanel or the OWLTestResultsPanel. This can be implemented for special handling of this action - otherwise the system will pop up a new window showing the selected RDFResource.

Parameters:
resource - the resource to display
Returns:
true if the navigation was handled, false for default behavior