org.outerj.daisy.frontend.editor
Class NavigationPartEditor

java.lang.Object
  extended by org.outerj.daisy.frontend.editor.NavigationPartEditor
All Implemented Interfaces:
PartEditor

public class NavigationPartEditor
extends java.lang.Object
implements PartEditor


Nested Class Summary
static class NavigationPartEditor.Factory
           
 
Method Summary
 Form getForm(org.outerj.daisy.repository.schema.PartTypeUse partTypeUse, DocumentEditorForm documentEditorForm, org.outerj.daisy.repository.Repository repository)
          Returns a form for the specified PartTypeUse.
 java.lang.String getFormTemplate()
          Returns the URI to the form template.
 void load(Form form, org.outerj.daisy.repository.Document document, org.outerj.daisy.repository.Part part, org.outerj.daisy.repository.Repository repository)
          Loads existing data into the part form.
 void save(Form form, org.outerj.daisy.repository.Document document)
          Saves the part data (could be removing the part if the editor is empty).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getForm

public Form getForm(org.outerj.daisy.repository.schema.PartTypeUse partTypeUse,
                    DocumentEditorForm documentEditorForm,
                    org.outerj.daisy.repository.Repository repository)
             throws java.lang.Exception
Description copied from interface: PartEditor
Returns a form for the specified PartTypeUse.

Specified by:
getForm in interface PartEditor
Throws:
java.lang.Exception

getFormTemplate

public java.lang.String getFormTemplate()
Description copied from interface: PartEditor
Returns the URI to the form template.

Specified by:
getFormTemplate in interface PartEditor

load

public void load(Form form,
                 org.outerj.daisy.repository.Document document,
                 org.outerj.daisy.repository.Part part,
                 org.outerj.daisy.repository.Repository repository)
          throws java.lang.Exception
Description copied from interface: PartEditor
Loads existing data into the part form.

Specified by:
load in interface PartEditor
Throws:
java.lang.Exception

save

public void save(Form form,
                 org.outerj.daisy.repository.Document document)
          throws java.lang.Exception
Description copied from interface: PartEditor
Saves the part data (could be removing the part if the editor is empty).

Note: the form has an attribute called "partType" that contains the PartType for which this editor serves. That way, you know which part this form represents.

Specified by:
save in interface PartEditor
Throws:
java.lang.Exception


Copyright © -2006 . All Rights Reserved.