org.topbraidcomposer.editors.forms.layout.page
Class LayoutEditorPageFactory

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

public class LayoutEditorPageFactory
extends java.lang.Object
implements IResourceEditorPageFactory

The factory for LayoutEditorPages.

Author:
Holger Knublauch
See Also:
ResourceFormPage

Constructor Summary
LayoutEditorPageFactory()
           
 
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)
          LayoutEditorPages are suitable for classes only.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutEditorPageFactory

public LayoutEditorPageFactory()
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)
LayoutEditorPages are suitable for classes only.

Specified by:
isSuitable in interface IResourceEditorPageFactory
Parameters:
subject - the resource to test
Returns:
true if subject is a class