org.topbraidcomposer.editors.forms.page
Class ResourceFormPageFactory

java.lang.Object
  extended by org.topbraidcomposer.editors.forms.page.ResourceFormPageFactory
All Implemented Interfaces:
IResourceEditorPageFactory

public class ResourceFormPageFactory
extends java.lang.Object
implements IResourceEditorPageFactory

The factory for ResourceFormPages.

Author:
Holger Knublauch
See Also:
ResourceFormPage

Constructor Summary
ResourceFormPageFactory()
           
 
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)
          ResourceFormPages are by default suitable for all subjects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceFormPageFactory

public ResourceFormPageFactory()
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)
ResourceFormPages are by default suitable for all subjects.

Specified by:
isSuitable in interface IResourceEditorPageFactory
Parameters:
subject - the resource shown in the editor
Returns:
true