edu.stanford.smi.protegex.owl.ui
Interface TripleSelectable

All Superinterfaces:
edu.stanford.smi.protege.util.Selectable
All Known Implementing Classes:
ClassTree, InstancesList, MultiResourceList, SymbolTable

public interface TripleSelectable
extends edu.stanford.smi.protege.util.Selectable

A common interface for user interface components that can select triples from an ontology.

Author:
Holger Knublauch

Method Summary
 List getPrototypeTriples()
          Gets triples with an empty object or subject, indicating the typical values of this.
 List getSelectedTriples()
          Gets the selected triples in an order that is meaningful to the component.
 void setSelectedTriples(Collection triples)
          Attempts to select given Triples in this.
 
Methods inherited from interface edu.stanford.smi.protege.util.Selectable
addSelectionListener, clearSelection, getSelection, notifySelectionListeners, removeSelectionListener
 

Method Detail

getPrototypeTriples

public List getPrototypeTriples()
Gets triples with an empty object or subject, indicating the typical values of this. For example, if this component displays the rdfs:comment of the resource Person, then the result would be the Triple (Person, rdfs:comment, null).

Returns:
a List of Triples

getSelectedTriples

public List getSelectedTriples()
Gets the selected triples in an order that is meaningful to the component.

Returns:
a List of Triples

setSelectedTriples

public void setSelectedTriples(Collection triples)
Attempts to select given Triples in this. The method may just do nothing if none of the triple is not shown.

Parameters:
triples - the Triples to show