org.topbraidcomposer.ui.views
Interface IStatementProvider

All Known Subinterfaces:
IAssignableRowEditor, IRowEditor, ITextRowEditor
All Known Implementing Classes:
AbstractComboBoxEditor, AbstractRowEditor, AbstractTextRowEditor, BasketTableViewer, BooleanEditor, ClassEditor, ComboBoxEditor, ConstructedGraphTableViewer, FindReferencesView, InstanceEditor, LiteralEditor, RDFListEditor, StatementTableViewer, StringEditor, WorkspaceStatementTableViewer

public interface IStatementProvider

An interface for user interface components that can provide a Statement. This can be used to support drag and drop from generic components into the basket (and elsewhere): implementations can check whether the drag source implements IStatementProvider.

Author:
Holger Knublauch

Method Summary
 com.hp.hpl.jena.rdf.model.Statement[] getStatements()
          Gets the selected statements that can be copied or moved.
 boolean isReadOnly()
          Checks if the statements are meant to be read-only.
 

Method Detail

getStatements

com.hp.hpl.jena.rdf.model.Statement[] getStatements()
Gets the selected statements that can be copied or moved.

Returns:
the Statements

isReadOnly

boolean isReadOnly()
Checks if the statements are meant to be read-only. If a statement provider is read-only, then the drag target should only perform a copy operation instead of a move operation.

Returns:
true if this is read-only (such as the basket)