org.topbraidcomposer.editors.ontology.statistics
Class StatisticsPageFactory

java.lang.Object
  extended by org.topbraidcomposer.editors.ontology.statistics.StatisticsPageFactory
All Implemented Interfaces:
IResourceEditorPageFactory

public class StatisticsPageFactory
extends java.lang.Object
implements IResourceEditorPageFactory


Constructor Summary
StatisticsPageFactory()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticsPageFactory

public StatisticsPageFactory()
Method Detail

createPage

public IResourceEditorPage createPage(ResourceEditor editor,
                                      java.lang.String id,
                                      java.lang.String title)
Description copied from interface: IResourceEditorPageFactory
Creates the IResourceEditorPage of this type. This method is usually called during the initialization of ResourceEditor.addPages().

Specified by:
createPage in interface IResourceEditorPageFactory
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

public boolean isSuitable(com.hp.hpl.jena.rdf.model.Resource subject)
Description copied from interface: IResourceEditorPageFactory
Checks whether this type of page is suitable for a given resource.

Specified by:
isSuitable in interface IResourceEditorPageFactory
Parameters:
subject - the resource shown in the editor
Returns:
true if the editor should contain a page of this type