org.topbraidcomposer.editors.pages
Interface IResourceEditorPageFactory

All Known Implementing Classes:
DiagramEditorPageFactory, GraphEditorPageFactory, LayoutEditorPageFactory, OverviewPageFactory, RDFSourcePageFactory, ResourceFormPageFactory, StatisticsPageFactory

public interface IResourceEditorPageFactory

A class describing a page in a ResourceEditor.

Author:
Holger Knublauch

Method Summary
 IResourceEditorPage createPage(ResourceEditor editor, java.lang.String id, java.lang.String title)
          Creates the IResourceEditorPage of this type.
 boolean isSuitable(com.hp.hpl.jena.rdf.model.Resource subject)
          Checks whether this type of page is suitable for a given resource.
 

Method Detail

createPage

IResourceEditorPage createPage(ResourceEditor editor,
                               java.lang.String id,
                               java.lang.String title)
Creates the IResourceEditorPage of this type. This method is usually called during the initialization of ResourceEditor.addPages().

Parameters:
editor - the ResourceEditor this page will live in
id - the ID that the page shall get
title - the title of the page
Returns:
a new IResourceEditorPage

isSuitable

boolean isSuitable(com.hp.hpl.jena.rdf.model.Resource subject)
Checks whether this type of page is suitable for a given resource.

Parameters:
subject - the resource shown in the editor
Returns:
true if the editor should contain a page of this type