|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PartEditor
Interface to be implemented by part editors.
A PartEditor instance is instanciated through a PartEditorFactory.
| 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). |
| Method Detail |
|---|
Form getForm(org.outerj.daisy.repository.schema.PartTypeUse partTypeUse,
DocumentEditorForm documentEditorForm,
org.outerj.daisy.repository.Repository repository)
throws java.lang.Exception
java.lang.Exceptionjava.lang.String getFormTemplate()
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
java.lang.Exception
void save(Form form,
org.outerj.daisy.repository.Document document)
throws java.lang.Exception
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.
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||